X-Git-Url: https://git.auder.net/variants/Checkered/complete_rules.html?a=blobdiff_plain;f=variants%2FGiveaway%2Fclass.js;h=3f27e5f59fd7608cf7a96ea05b54159a1436d13c;hb=9aebe2aac02158a4f1c92ad0ac529f8ed245602e;hp=15a8998c965ca4e68b8e1f71536b0fec931483a7;hpb=f31de5e46015a93dca20765da61670035ce8f491;p=xogo.git diff --git a/variants/Giveaway/class.js b/variants/Giveaway/class.js index 15a8998..3f27e5f 100644 --- a/variants/Giveaway/class.js +++ b/variants/Giveaway/class.js @@ -42,7 +42,7 @@ export default class GiveawayRules extends ChessRules { let fen = ""; if (this.options["randomness"] == 0) - fen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w 0"; + fen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR"; else { let pieces = { w: new Array(8), b: new Array(8) }; for (let c of ["w", "b"]) { @@ -69,8 +69,7 @@ export default class GiveawayRules extends ChessRules { fen = ( pieces["b"].join("") + "/pppppppp/8/8/8/8/PPPPPPPP/" + - pieces["w"].join("").toUpperCase() + - " w 0" + pieces["w"].join("").toUpperCase() ); } return { fen: fen, o: {} }; @@ -81,10 +80,10 @@ export default class GiveawayRules extends ChessRules { super(o); } - underCheck(square, oppCol) { + underCheck(square_s, oppCol) { if (this.options["mode"] == "suicide") return false; - return super.underCheck(square, oppCol); + return super.underCheck(square_s, oppCol); } getCurrentScore() {