projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Janggi Spanish translation
[vchess.git]
/
client
/
src
/
variants
/
Vchess.js
diff --git
a/client/src/variants/Vchess.js
b/client/src/variants/Vchess.js
index
8b59c86
..
c12435c
100644
(file)
--- a/
client/src/variants/Vchess.js
+++ b/
client/src/variants/Vchess.js
@@
-1,6
+1,7
@@
import { ChessRules } from "@/base_rules";
export class VchessRules extends ChessRules {
import { ChessRules } from "@/base_rules";
export class VchessRules extends ChessRules {
+
static get PawnSpecs() {
return Object.assign(
{},
static get PawnSpecs() {
return Object.assign(
{},
@@
-9,6
+10,16
@@
export class VchessRules extends ChessRules {
);
}
);
}
+ isAttackedByPawn(sq, color) {
+ return this.isAttackedBySlideNJump(
+ sq,
+ color,
+ V.PAWN,
+ V.steps[V.BISHOP],
+ "oneStep"
+ );
+ }
+
getNotation(move) {
let notation = super.getNotation(move);
// If pawn captures backward, add an indication 'b'
getNotation(move) {
let notation = super.getNotation(move);
// If pawn captures backward, add an indication 'b'
@@
-23,4
+34,5
@@
export class VchessRules extends ChessRules {
}
return notation;
}
}
return notation;
}
+
};
};