X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FDynamo.js;h=4d443eb5d87432cf0e967b60181e5f5a937a2558;hp=4ec1927ca941c7c699a378aeb89da79fc6562efb;hb=2c5d7b20742b802d9c47916915c1114bcfc9a9c3;hpb=9edfb7146fdc4dd08914b2a117d2852e705353aa diff --git a/client/src/variants/Dynamo.js b/client/src/variants/Dynamo.js index 4ec1927c..4d443eb5 100644 --- 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]; - 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]; }