projects
/
xogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9133992
)
update
author
Benjamin Auder
<benjamin.auder@somewhere>
Tue, 7 Jun 2022 14:43:32 +0000
(16:43 +0200)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Tue, 7 Jun 2022 14:43:32 +0000
(16:43 +0200)
variants/Chakart/class.js
patch
|
blob
|
blame
|
history
diff --git
a/variants/Chakart/class.js
b/variants/Chakart/class.js
index
a9f11fb
..
0403624
100644
(file)
--- a/
variants/Chakart/class.js
+++ b/
variants/Chakart/class.js
@@
-144,8
+144,10
@@
export class ChakartRules extends ChessRules {
this.effect = "";
}
+ // For Toadette bonus
getDropMovesFrom([c, p]) {
- if (this.reserve[c][p] == 0) return [];
+ if (this.reserve[c][p] == 0)
+ return [];
let moves = [];
const start = (c == 'w' && p == 'p' ? 1 : 0);
const end = (color == 'b' && p == 'p' ? 7 : 8);