projects
/
xogo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix Chaining variant
[xogo.git]
/
variants
/
Avalam
/
class.js
diff --git
a/variants/Avalam/class.js
b/variants/Avalam/class.js
index
aaa2cf3
..
5fe5ed3
100644
(file)
--- a/
variants/Avalam/class.js
+++ b/
variants/Avalam/class.js
@@
-156,7
+156,7
@@
export default class AvalamRules extends ChessRules {
if (height == 5)
return [];
let moves = [];
- for (let s of this.pieces(
)['b'].moves
[0].steps) {
+ for (let s of this.pieces(
this.turn, x, y)['b'].both
[0].steps) {
const [i, j] = [x + s[0], y + s[1]];
if (
this.onBoard(i, j) &&