Fix typo in Sittuyin rules
authorBenjamin Auder <benjamin.auder@somewhere>
Wed, 8 Apr 2020 17:14:00 +0000 (19:14 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Wed, 8 Apr 2020 17:14:00 +0000 (19:14 +0200)
client/src/variants/Sittuyin.js

index 23ffcee..004d626 100644 (file)
@@ -195,7 +195,7 @@ export class SittuyinRules extends ChessRules {
       addPromotion([x - shiftX, y]);
       for (let step of V.steps[V.BISHOP]) {
         const [i, j] = [x + step[0], y + step[1]];
-        if (V.OnBoard(i, j) && this.board[i][j] != V.EMPTY)
+        if (V.OnBoard(i, j) && this.board[i][j] == V.EMPTY)
           addPromotion([i, j], "moveTo");
       }
     }