projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve Chakart computer play
[vchess.git]
/
client
/
src
/
variants
/
Knightrelay1.js
diff --git
a/client/src/variants/Knightrelay1.js
b/client/src/variants/Knightrelay1.js
index
f032e21
..
626519c
100644
(file)
--- a/
client/src/variants/Knightrelay1.js
+++ b/
client/src/variants/Knightrelay1.js
@@
-5,6
+5,8
@@
export class Knightrelay1Rules extends ChessRules {
return false;
}
return false;
}
+ // TODO: IsGoodPosition to check that 2 knights are on the board...
+
getPotentialMovesFrom([x, y]) {
let moves = super.getPotentialMovesFrom([x, y]);
getPotentialMovesFrom([x, y]) {
let moves = super.getPotentialMovesFrom([x, y]);
@@
-118,7
+120,8
@@
export class Knightrelay1Rules extends ChessRules {
const finalSquare = V.CoordsToSquare(move.end);
const piece = this.getPiece(move.start.x, move.start.y);
const finalSquare = V.CoordsToSquare(move.end);
const piece = this.getPiece(move.start.x, move.start.y);
- // Since pieces and pawns could move like knight, indicate start and end squares
+ // Since pieces and pawns could move like knight,
+ // indicate start and end squares
let notation =
piece.toUpperCase() +
initSquare +
let notation =
piece.toUpperCase() +
initSquare +