X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=base_rules.js;h=aea3f57bbf641d743e32e818f6cc8aadbdbde1ff;hb=b8950be593d0663202c886f4252513bf1a499ee1;hp=20ffbee4cdddfc6661f1c031782937800b289827;hpb=3e72fcf5c0b53fa0ad16114434c7ddd527892297;p=xogo.git diff --git a/base_rules.js b/base_rules.js index 20ffbee..aea3f57 100644 --- a/base_rules.js +++ b/base_rules.js @@ -1188,7 +1188,7 @@ export default class ChessRules { } pieces(color, x, y) { - const pawnShift = this.getPawnShift(color); + const pawnShift = this.getPawnShift(color || 'w'); return { 'p': { "class": "pawn",