projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix Empire Chess
[vchess.git]
/
client
/
src
/
variants
/
Knightrelay2.js
diff --git
a/client/src/variants/Knightrelay2.js
b/client/src/variants/Knightrelay2.js
index
0fc6c33
..
a8a796e
100644
(file)
--- a/
client/src/variants/Knightrelay2.js
+++ b/
client/src/variants/Knightrelay2.js
@@
-1,6
+1,7
@@
import { ChessRules } from "@/base_rules";
export class Knightrelay2Rules extends ChessRules {
import { ChessRules } from "@/base_rules";
export class Knightrelay2Rules extends ChessRules {
+
getPotentialMovesFrom([x, y]) {
let moves = super.getPotentialMovesFrom([x, y]);
getPotentialMovesFrom([x, y]) {
let moves = super.getPotentialMovesFrom([x, y]);
@@
-101,7
+102,8
@@
export class Knightrelay2Rules 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 +
@@
-119,4
+121,5
@@
export class Knightrelay2Rules extends ChessRules {
return notation;
}
return notation;
}
+
};
};