projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
White eye for the mammoth (was transparent)
[vchess.git]
/
client
/
src
/
variants
/
Knightrelay2.js
diff --git
a/client/src/variants/Knightrelay2.js
b/client/src/variants/Knightrelay2.js
index
9fa5dcc
..
1827acc
100644
(file)
--- a/
client/src/variants/Knightrelay2.js
+++ b/
client/src/variants/Knightrelay2.js
@@
-1,6
+1,6
@@
import { ChessRules } from "@/base_rules";
import { ChessRules } from "@/base_rules";
-export c
onst VariantRules = c
lass Knightrelay2Rules extends ChessRules {
+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
+101,8
@@
export const VariantRules = 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 +