projects
/
xogo.git
/ blame_incremental
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(non-incremental) |
history
|
HEAD
Untested draft refactor both/moves/attack for pieces specs
[xogo.git]
/
variants
/
_Berolina
/
pawnSpec.js
This page requires JavaScript to run. Use
this page
instead.
... / ...
Commit
Line
Data
1
export default BerolinaPawnSpec = (color) => {
2
3
const pawnShift = (color == "w" ? -1 : 1);
4
return {
5
moves: [
6
{
7
steps: [[pawnShift, 1], [pawnShift, -1]],
8
range: 1
9
}
10
],
11
attack: [
12
{
13
steps: [[pawnShift, 0]],
14
range: 1
15
}
16
]
17
};
18
19
};