projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Draft Royalrace variant
[vchess.git]
/
client
/
src
/
base_rules.js
diff --git
a/client/src/base_rules.js
b/client/src/base_rules.js
index
d5849f3
..
4f1478e
100644
(file)
--- a/
client/src/base_rules.js
+++ b/
client/src/base_rules.js
@@
-467,7
+467,7
@@
export const ChessRules = class ChessRules {
return { x: 8, y: 8 };
}
return { x: 8, y: 8 };
}
- // Color of thing on s
uq
are (i,j). 'undefined' if square is empty
+ // Color of thing on s
qu
are (i,j). 'undefined' if square is empty
getColor(i, j) {
return this.board[i][j].charAt(0);
}
getColor(i, j) {
return this.board[i][j].charAt(0);
}
@@
-543,7
+543,7
@@
export const ChessRules = class ChessRules {
////////////////////
// MOVES GENERATION
////////////////////
// MOVES GENERATION
- // All possible moves from selected square
(assumption: color is OK)
+ // All possible moves from selected square
getPotentialMovesFrom([x, y]) {
switch (this.getPiece(x, y)) {
case V.PAWN:
getPotentialMovesFrom([x, y]) {
switch (this.getPiece(x, y)) {
case V.PAWN: