projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add unambiguous section in the PGN + some fixes + code formatting and fix typos
[vchess.git]
/
client
/
src
/
variants
/
Dynamo.js
diff --git
a/client/src/variants/Dynamo.js
b/client/src/variants/Dynamo.js
index
4ec1927
..
4d443eb
100644
(file)
--- a/
client/src/variants/Dynamo.js
+++ b/
client/src/variants/Dynamo.js
@@
-66,7
+66,11
@@
export class DynamoRules extends ChessRules {
// Now step in the other direction: if end of the world, then attacked
rx = x - step[0];
ry = y - step[1];
// Now step in the other direction: if end of the world, then attacked
rx = x - step[0];
ry = y - step[1];
- while (V.OnBoard(rx, ry) && this.board[rx][ry] == V.EMPTY && !oneStep) {
+ while (
+ V.OnBoard(rx, ry) &&
+ this.board[rx][ry] == V.EMPTY &&
+ !oneStep
+ ) {
rx -= step[0];
ry -= step[1];
}
rx -= step[0];
ry -= step[1];
}