projects
/
vchess.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Add first draft of 'Victor Chess'
[vchess.git]
/
client
/
src
/
variants
/
Vchess.js
1
import
{
ChessRules
}
from
"@/base_rules"
;
2
3
export class
VchessRules
extends
ChessRules
{
4
static get
PawnSpecs
() {
5
return
Object
.
assign
(
6
{},
7
ChessRules
.
PawnSpecs
,
8
{
captureBackward
:
true
}
9
);
10
}
11
12
getNotation
(
move
) {
13
let
notation
=
super
.
getNotation
(
move
);
14
// TODO: if capture backwards, add an indication 'b'
15
return
notation
;
16
}
17
};