projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo
[vchess.git]
/
client
/
src
/
variants
/
Takenmake.js
diff --git
a/client/src/variants/Takenmake.js
b/client/src/variants/Takenmake.js
index
9549c2a
..
d37edf6
100644
(file)
--- a/
client/src/variants/Takenmake.js
+++ b/
client/src/variants/Takenmake.js
@@
-13,10
+13,9
@@
export class TakenmakeRules extends ChessRules {
const L = this.lastMoveEnd.length;
if (!asA && !!this.lastMoveEnd[L-1]) {
asA = this.lastMoveEnd[L-1].p;
const L = this.lastMoveEnd.length;
if (!asA && !!this.lastMoveEnd[L-1]) {
asA = this.lastMoveEnd[L-1].p;
- if (x != this.lastMoveEnd[L-1].x || y != this.lastMoveEnd[L-1].y)
{
+ if (x != this.lastMoveEnd[L-1].x || y != this.lastMoveEnd[L-1].y)
// A capture was played: wrong square
return [];
// A capture was played: wrong square
return [];
- }
}
let moves = [];
const piece = this.getPiece(x, y);
}
let moves = [];
const piece = this.getPiece(x, y);