projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo
[vchess.git]
/
client
/
src
/
variants
/
Twokings.js
diff --git
a/client/src/variants/Twokings.js
b/client/src/variants/Twokings.js
index
ce30d65
..
52aebc3
100644
(file)
--- a/
client/src/variants/Twokings.js
+++ b/
client/src/variants/Twokings.js
@@
-34,9
+34,10
@@
export class TwokingsRules extends CoregalRules {
}
// Not scanning king positions. In this variant, scan the board everytime.
}
// Not scanning king positions. In this variant, scan the board everytime.
- scanKings(
fen
) {}
+ scanKings() {}
- getCheckSquares(color) {
+ getCheckSquares() {
+ const color = this.turn;
let squares = [];
const oppCol = V.GetOppCol(color);
for (let i=0; i<V.size.x; i++) {
let squares = [];
const oppCol = V.GetOppCol(color);
for (let i=0; i<V.size.x; i++) {