projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some code cleaning + clarifying (TODO: work on variables names)
[vchess.git]
/
public
/
javascripts
/
variants
/
Crazyhouse.js
diff --git
a/public/javascripts/variants/Crazyhouse.js
b/public/javascripts/variants/Crazyhouse.js
index
88193ed
..
b297f1f
100644
(file)
--- a/
public/javascripts/variants/Crazyhouse.js
+++ b/
public/javascripts/variants/Crazyhouse.js
@@
-51,7
+51,7
@@
class CrazyhouseRules extends ChessRules
return color + VariantRules.RESERVE_PIECES[index];
}
return color + VariantRules.RESERVE_PIECES[index];
}
- //
Put an o
rdering on reserve pieces
+ //
O
rdering on reserve pieces
static get RESERVE_PIECES() {
const V = VariantRules;
return [V.PAWN,V.ROOK,V.KNIGHT,V.BISHOP,V.QUEEN];
static get RESERVE_PIECES() {
const V = VariantRules;
return [V.PAWN,V.ROOK,V.KNIGHT,V.BISHOP,V.QUEEN];
@@
-97,7
+97,7
@@
class CrazyhouseRules extends ChessRules
const sizeX = VariantRules.size[0];
if (x >= sizeX)
{
const sizeX = VariantRules.size[0];
if (x >= sizeX)
{
- // Reserves, outside of board: x == sizeX
+ // Reserves, outside of board: x == sizeX
(+1)
return this.getReserveMoves([x,y]);
}
// Standard moves
return this.getReserveMoves([x,y]);
}
// Standard moves