From e7b9cc24dd300fbd772e127e1316a0aa3ad67349 Mon Sep 17 00:00:00 2001 From: Ajay Vallurupalli Date: Tue, 10 Dec 2024 21:31:52 -0500 Subject: [PATCH] updated capitalism: sell to work also deleted names.nim since it doesn't do anything --- app.js | 9577 ++++++++++++++++++++++++------------------------ src/names.nim | 10 - src/piece.nim | 1 + src/powers.nim | 23 +- 4 files changed, 4807 insertions(+), 4804 deletions(-) delete mode 100644 src/names.nim diff --git a/app.js b/app.js index e6b9f25..17bfc7d 100644 --- a/app.js +++ b/app.js @@ -2,15 +2,15 @@ var framePtr = null; var excHandler = 0; var lastJSError = null; -var NTI553653869 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI553653859 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI553654185 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553652670 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553652660 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553652986 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI553648262 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI553650452 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553650043 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI1476395018 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI553648299 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI1946157088 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI553652399 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553651971 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI553648231 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; var NTI1728053650 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI536871233 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; @@ -18,8 +18,8 @@ var NTI754975006 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI553648173 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; var NTI553648172 = {size: 0,kind: 25,base: null,node: null,finalizer: null}; var NTI553648171 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI553650598 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI553650667 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553650189 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI553650239 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI1476395823 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI889192854 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI1577058309 = {size: 0, kind: 14, base: null, node: null, finalizer: null}; @@ -149,11 +149,11 @@ var NTI134217747 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NTI1728053541 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI553648169 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; var NTI1845495491 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1845496757 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1845498850 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI1090519119 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; var NTI1090519125 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; -var NTI1845496730 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; -var NTI1845496438 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1845498823 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; +var NTI1845498550 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI1728053260 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI1728053259 = {size: 0, kind: 24, base: null, node: null, finalizer: null}; var NTI1728053254 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; @@ -380,12 +380,12 @@ var NNI1728053254 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{ {kind: 1, offset: "Field2", len: 0, typ: NTI1728053259, name: "Field2", sons: null}, {kind: 1, offset: "Field3", len: 0, typ: NTI1728053260, name: "Field3", sons: null}]}; NTI1728053254.node = NNI1728053254; -NTI1845496438.base = NTI1476395011; -NTI1845496730.base = NTI1476395226; +NTI1845498550.base = NTI1476395011; +NTI1845498823.base = NTI1476395226; var NNI1090519125 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "a", len: 0, typ: NTI1090519119, name: "a", sons: null}, {kind: 1, offset: "b", len: 0, typ: NTI33554435, name: "b", sons: null}]}; NTI1090519125.node = NNI1090519125; -NTI1845496757.base = NTI1476395226; +NTI1845498850.base = NTI1476395226; NTI1845495491.base = NTI1476395238; var NNI553648169 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554466, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554450, name: "Field1", sons: null}]}; @@ -1272,13 +1272,14 @@ var NNI1476395027 = {kind: 2, len: 4, offset: 0, typ: null, name: null, sons: [{ NTI1476395027.node = NNI1476395027; NTI1476395129.base = NTI1476395027; NTI1476395033.base = NTI1476395079; -var NNI1476395037 = {kind: 2, len: 8, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "abilityTakes", len: 0, typ: NTI33554435, name: "abilityTakes", sons: null}, +var NNI1476395037 = {kind: 2, len: 9, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "abilityTakes", len: 0, typ: NTI33554435, name: "abilityTakes", sons: null}, {kind: 1, offset: "hasCastled", len: 0, typ: NTI33554466, name: "hasCastled", sons: null}, {kind: 1, offset: "dna", len: 0, typ: NTI1476395097, name: "dna", sons: null}, {kind: 1, offset: "transforms", len: 0, typ: NTI1476395100, name: "transforms", sons: null}, {kind: 1, offset: "wallet", len: 0, typ: NTI1476395106, name: "wallet", sons: null}, {kind: 1, offset: "buys", len: 0, typ: NTI1476395129, name: "buys", sons: null}, {kind: 1, offset: "piecesSold", len: 0, typ: NTI33554435, name: "piecesSold", sons: null}, +{kind: 1, offset: "piecesSoldThisTurn", len: 0, typ: NTI33554435, name: "piecesSoldThisTurn", sons: null}, {kind: 1, offset: "glass", len: 0, typ: NTI1476395033, name: "glass", sons: null}]}; NTI1476395037.node = NNI1476395037; NTI1476395095.base = NTI1476395037; @@ -1332,8 +1333,8 @@ var NNI1577058309 = {kind: 2, offset: 0, typ: null, name: null, len: 7, sons: {" NTI1577058309.node = NNI1577058309; NTI889192854.base = NTI33554449; NTI1476395823.base = NTI1476395011; -NTI553650667.base = NTI1476395011; -NTI553650598.base = NTI1476395028; +NTI553650239.base = NTI1476395011; +NTI553650189.base = NTI1476395028; var NNI553648171 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI553648172, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI553648173, name: "Field1", sons: null}]}; NTI553648171.node = NNI553648171; @@ -1343,15 +1344,15 @@ NTI1728053650.base = NTI1728053253; var NNI553648231 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "val", len: 0, typ: NTI1476395029, name: "val", sons: null}, {kind: 1, offset: "has", len: 0, typ: NTI33554466, name: "has", sons: null}]}; NTI553648231.node = NNI553648231; -NTI553652399.base = NTI33554449; +NTI553651971.base = NTI33554449; NTI1946157088.base = NTI1476395011; NTI553648299.base = NTI1476395011; NTI1476395018.base = NTI1476395011; -NTI553650452.base = NTI33554466; +NTI553650043.base = NTI33554466; NTI553648262.base = NTI553648142; -NTI553654185.base = NTI1728054356; -NTI553653859.base = NTI33554449; -NTI553653869.base = NTI1728053253; +NTI553652986.base = NTI1728054356; +NTI553652660.base = NTI33554449; +NTI553652670.base = NTI1728053253; function setConstr() { var result = {}; @@ -1653,7 +1654,7 @@ var calvary_1845494605 = {name: [67,97,108,118,97,114,121], technicalName: [], s var backStep_1845494721 = {name: [66,97,99,107,115,116,101,112], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("Your pawns receive some training. They can move one tile back. They cannot take this way."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494707, index: (-1), priority: 15}; var headStart_1845494736 = {name: [72,101,97,100,115,116,97,114,116], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your pawns can always move 2 forward. They still take like normal. It\'s kind of boring, don\'t you think?"), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494722, index: (-1), priority: 15}; var queenTrade_1845494748 = {name: [81,117,101,101,110,32,84,114,97,100,101], technicalName: [], synergy: false, tier: 2, rarity: 8, description: [84,104,101,32,112,97,116,114,105,97,114,99,104,121,32,99,111,110,116,105,110,117,101,115,46,32,66,111,116,104,32,113,117,101,101,110,115,32,109,121,115,116,101,114,105,111,117,115,108,121,32,100,105,101,46], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494737, index: (-1), priority: 20}; - var whiteQueen_1526726796 = {item: 1, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}; + var whiteQueen_1526726796 = {item: 1, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}; var lesbianPride_1845494798 = {name: [76,101,115,98,105,97,110,32,80,114,105,100,101], technicalName: [], synergy: false, tier: 3, rarity: 1, description: [240,159,167,161,240,159,164,141,240,159,169,183], icon: [108,101,115,98,105,97,110,112,114,105,100,101,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845494783, index: (-1), priority: 1}; var knightChargePower_1845494943 = {name: [75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], technicalName: [], synergy: false, tier: 2, rarity: 4, description: [67,72,65,82,71,69,33,32,89,111,117,114,32,107,110,105,103,104,116,115,32,115,116,97,114,116,32,51,32,116,105,108,101,115,32,97,104,101,97,100,46], icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494922, index: (-1), priority: 20}; var nightRider_1845495054 = {name: [78,105,103,104,116,114,105,100,101,114], technicalName: [], synergy: false, tier: 3, rarity: 8, description: [78,105,103,104,116,114,105,100,101,114,46], icon: [110,105,103,104,116,114,105,100,101,114,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495035, index: (-1), priority: 3}; @@ -1702,8 +1703,8 @@ var conversion_1845495989 = {name: [67,111,110,118,101,114,115,105,111,110], tec var americanDream_1845496048 = {name: [65,109,101,114,105,99,97,110,32,68,114,101,97,109], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("All pieces, you and your opponent, are killed when they promote. It\'s not real."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496039, index: (-1), priority: 30}; var sleeperAgent_1845496101 = {name: [83,108,101,101,112,101,114,32,65,103,101,110,116], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("The silent river collapses in pieces. \x0A One of your pawns is a sleeper agent. They can take forward."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845496049, index: (-1), priority: 30}; var capitalismPower_1845496229 = {name: [67,97,112,105,116,97,108,105,115,109], technicalName: [], synergy: false, tier: 1, rarity: 24, description: makeNimstrLit("The power of the free market is unmatched. \x0A All of your pieces get the ability to buy upgrades. \x0A You get 3 dollars for taking a piece.\x0A With 30 dollars, you can promote one piece. The promoted piece cannot move on the turn it is promoted."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496200, index: (-1), priority: 30}; -var skyGlass_1845496684 = {name: [71,108,97,115,115,58,32,83,107,121], technicalName: [], synergy: false, tier: 1, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Sky on any \x0A open tile. These pieces teleport to their selected tile when the cast completes. \x0A Pieces cannot try to teleport to a tile where they would check the king. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496671, index: (-1), priority: 15}; -var zeroGlass_1845496696 = {name: [71,108,97,115,115,58,32,90,101,114,111], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Zero on \x0A any non-king tile. Any piece on these tiles will die if the cast completes. Zero cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496685, index: (-1), priority: 15}; +var skyGlass_1845499540 = {name: [71,108,97,115,115,58,32,83,107,121], technicalName: [], synergy: false, tier: 1, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Sky on any \x0A open tile. These pieces teleport to their selected tile when the cast completes. \x0A Pieces cannot try to teleport to a tile where they would check the king. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499527, index: (-1), priority: 15}; +var zeroGlass_1845499552 = {name: [71,108,97,115,115,58,32,90,101,114,111], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Zero on \x0A any non-king tile. Any piece on these tiles will die if the cast completes. Zero cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499541, index: (-1), priority: 15}; function divInt(a_33557062, b_33557063) { if (b_33557063 == 0) raiseDivByZero(); @@ -1713,9 +1714,48 @@ function divInt(a_33557062, b_33557063) { } -var steelGlass_1845496708 = {name: [71,108,97,115,115,58,32,83,116,101,101,108], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 5 pieces to each cast Steel. \x0A If there is an enemy one tile in front of them when the cast completes, they take forward. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,116,101,101,108,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496697, index: (-1), priority: 15}; -var reverieGlass_1845497077 = {name: [71,108,97,115,115,58,32,82,101,118,101,114,105,101], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 3 pieces to each cast Reverie on \x0A an opponent tile. When the cast completes, \x0A they swap moves and takes with whatever piece is on that tile. If that piece \x0A is a king, the cast fails. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [114,101,118,101,114,105,101,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845497066, index: (-1), priority: 0}; -var daybreakGlass_1845497123 = {name: [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 1 pieces to cast Daybreak on \x0A any tile. When the cast completes, the piece on that tile promotes. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [100,97,121,98,114,101,97,107,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845497112, index: (-1), priority: 0}; +var steelGlass_1845499564 = {name: [71,108,97,115,115,58,32,83,116,101,101,108], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 5 pieces to each cast Steel. \x0A If there is an enemy one tile in front of them when the cast completes, they take forward. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,116,101,101,108,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499553, index: (-1), priority: 15}; +var reverieGlass_1845499898 = {name: [71,108,97,115,115,58,32,82,101,118,101,114,105,101], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 3 pieces to each cast Reverie on \x0A an opponent tile. When the cast completes, \x0A they swap moves and takes with whatever piece is on that tile. If that piece \x0A is a king, the cast fails. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [114,101,118,101,114,105,101,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499887, index: (-1), priority: 0}; +var daybreakGlass_1845499944 = {name: [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 1 pieces to cast Daybreak on \x0A any tile. When the cast completes, the piece on that tile promotes. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [100,97,121,98,114,101,97,107,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499933, index: (-1), priority: 0}; + +function nimBoolToStr(x_33556438) { + var result_33556439 = []; + + if (x_33556438) { + result_33556439 = nimCopy(null, [116,114,117,101], NTI33554449); + } + else { + result_33556439 = nimCopy(null, [102,97,108,115,101], NTI33554449); + } + + + return result_33556439; + +} + +function reprEnum(e_33557576, typ_33557577) { + var result_33557578 = []; + + var tmp_33557579 = false; + var item_33557580 = typ_33557577.node.sons[e_33557576]; + tmp_33557579 = item_33557580 !== undefined + if (tmp_33557579) { + result_33557578 = nimCopy(null, makeNimstrLit(item_33557580.name), NTI33554449); + } + else { + result_33557578 = nimCopy(null, (HEX24_385875976(e_33557576) || []).concat([32,40,105,110,118,97,108,105,100,32,100,97,116,97,33,41] || []), NTI33554449); + } + + + return result_33557578; + +} + +function addChar(x_33557415, c_33557416) { + x_33557415.push(c_33557416); + + +} var ConstSet2 = setConstr([88, 148]); var toTag_754975044 = ["#text", "#int", "#bool", "#vthunk", "#dthunk", "#component", "#verbatim", "html", "head", "title", "base", "link", "meta", "style", "script", "noscript", "body", "section", "nav", "article", "aside", "h1", "h2", "h3", "h4", "h5", "h6", "hgroup", "header", "footer", "address", "main", "p", "hr", "pre", "blockquote", "ol", "ul", "li", "dl", "dt", "dd", "figure", "figcaption", "div", "a", "em", "strong", "small", "s", "cite", "quote", "dfn", "abbr", "data", "time", "code", "var", "samp", "kbd", "sub", "sup", "i", "b", "u", "mark", "ruby", "rt", "rp", "bdi", "dbo", "span", "br", "wbr", "ins", "del", "img", "iframe", "embed", "object", "param", "video", "audio", "source", "track", "canvas", "map", "area", "animate", "animateMotion", "animateTransform", "circle", "clipPath", "defs", "desc", "discard", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "set", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "unknown", "use", "view", "maction", "math", "menclose", "merror", "mfenced", "mfrac", "mglyph", "mi", "mlabeledtr", "mmultiscripts", "mn", "mo", "mover", "mpadded", "mphantom", "mroot", "mrow", "ms", "mspace", "msqrt", "mstyle", "msub", "msubsup", "msup", "mtable", "mtd", "mtext", "mtr", "munder", "munderover", "semantics", "table", "caption", "colgroup", "col", "tbody", "thead", "tfoot", "tr", "td", "th", "form", "fieldset", "legend", "label", "input", "button", "select", "datalist", "optgroup", "option", "textarea", "keygen", "output", "progress", "meter", "details", "summary", "command", "menu", "bdo", "dialog", "slot", "template"]; var ConstSet3 = setConstr([149, 179]); @@ -1743,13 +1783,7 @@ function nimMin(a_33557104, b_33557105) { return result_33557106; } - -function addChar(x_33557415, c_33557416) { - x_33557415.push(c_33557416); - - -} - var myDebugPowers_553648224 = [{name: [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 1 pieces to cast Daybreak on \x0A any tile. When the cast completes, the piece on that tile promotes. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [100,97,121,98,114,101,97,107,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845497112, index: (-1), priority: 0}, {name: [69,109,112,114,101,115,115], technicalName: [], synergy: false, tier: 1, rarity: 8, description: [89,111,117,114,32,113,117,101,101,110,32,97,115,99,101,110,100,115,44,32,103,97,105,110,105,110,103,32,116,104,101,32,109,111,118,101,109,101,110,116,32,111,102,32,97,32,115,116,97,110,100,97,114,100,32,107,110,105,103,104,116,46,32], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494028, index: (-1), priority: 15}]; + var myDebugPowers_553648224 = [{name: [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 1 pieces to cast Daybreak on \x0A any tile. When the cast completes, the piece on that tile promotes. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [100,97,121,98,114,101,97,107,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499933, index: (-1), priority: 0}, {name: [69,109,112,114,101,115,115], technicalName: [], synergy: false, tier: 1, rarity: 8, description: [89,111,117,114,32,113,117,101,101,110,32,97,115,99,101,110,100,115,44,32,103,97,105,110,105,110,103,32,116,104,101,32,109,111,118,101,109,101,110,116,32,111,102,32,97,32,115,116,97,110,100,97,114,100,32,107,110,105,103,104,116,46,32], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494028, index: (-1), priority: 15}]; function nimMax(a_33557108, b_33557109) { var Temporary1; @@ -1771,8 +1805,8 @@ function nimMax(a_33557108, b_33557109) { return result_33557110; } - var rngPowers_1845497408 = [{name: [65,108,99,111,104,111,108,105,115,109], technicalName: [], synergy: false, tier: 3, rarity: 4, description: [89,111,117,39,114,101,32,102,97,109,105,108,105,101,115,32,97,110,100,32,102,114,105,101,110,100,115,32,109,105,115,115,32,121,111,117,46,32,84,104,101,32,114,101,97,108,32,121,111,117,46], icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495559, index: (-1), priority: 15}, {name: [68,114,117,110,107,32,75,110,105,103,104,116,115], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("Drunk riding is dangerous, your knights should be ashamed of themselves. \x0A After every other turn, they randomly move."), icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495549, index: (-1), priority: 15}, {name: [67,105,118,105,108,105,97,110,115], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Of course, a battle will have its civillians. And of course, the enemy won\'t kill them.\x0A 3 civillians spawn on the enemy side. They randomly move and cannot be taken."), icon: [99,105,118,105,108,105,97,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495776, index: (-1), priority: 30}, {name: [83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Have you seen the movie Slumdog Millionaire? It\'s kind of like that. \x0A Your pawns have a 1% chance of promoting whenever they move."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495902, index: (-1), priority: 15}, {name: [83,116,117,112,105,100,32,80,111,119,101,114], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("You have a 0.1% chance to automatically win each turn. Yeah, I\'m out of ideas. I\'m sorry."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495951, index: (-1), priority: 15}, {name: [83,108,101,101,112,101,114,32,65,103,101,110,116], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("The silent river collapses in pieces. \x0A One of your pawns is a sleeper agent. They can take forward."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845496049, index: (-1), priority: 30}, {name: [67,111,110,118,101,114,115,105,111,110], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("When your bishop takes a piece, it has a 15% chance to convert it to your color. \x0A When this happens, your bishop swaps places with it instead of taking it."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495984, index: (-1), priority: 15}]; - var experimentalPowers_1845497413 = [{name: [71,108,97,115,115,58,32,83,107,121], technicalName: [], synergy: false, tier: 1, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Sky on any \x0A open tile. These pieces teleport to their selected tile when the cast completes. \x0A Pieces cannot try to teleport to a tile where they would check the king. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496671, index: (-1), priority: 15}, {name: [71,108,97,115,115,58,32,90,101,114,111], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Zero on \x0A any non-king tile. Any piece on these tiles will die if the cast completes. Zero cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496685, index: (-1), priority: 15}, {name: [71,108,97,115,115,58,32,83,116,101,101,108], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 5 pieces to each cast Steel. \x0A If there is an enemy one tile in front of them when the cast completes, they take forward. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,116,101,101,108,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496697, index: (-1), priority: 15}, {name: [71,108,97,115,115,58,32,82,101,118,101,114,105,101], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 3 pieces to each cast Reverie on \x0A an opponent tile. When the cast completes, \x0A they swap moves and takes with whatever piece is on that tile. If that piece \x0A is a king, the cast fails. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [114,101,118,101,114,105,101,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845497066, index: (-1), priority: 0}, {name: [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 1 pieces to cast Daybreak on \x0A any tile. When the cast completes, the piece on that tile promotes. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [100,97,121,98,114,101,97,107,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845497112, index: (-1), priority: 0}]; + var rngPowers_1845500210 = [{name: [65,108,99,111,104,111,108,105,115,109], technicalName: [], synergy: false, tier: 3, rarity: 4, description: [89,111,117,39,114,101,32,102,97,109,105,108,105,101,115,32,97,110,100,32,102,114,105,101,110,100,115,32,109,105,115,115,32,121,111,117,46,32,84,104,101,32,114,101,97,108,32,121,111,117,46], icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495559, index: (-1), priority: 15}, {name: [68,114,117,110,107,32,75,110,105,103,104,116,115], technicalName: [], synergy: false, tier: 2, rarity: 8, description: makeNimstrLit("Drunk riding is dangerous, your knights should be ashamed of themselves. \x0A After every other turn, they randomly move."), icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495549, index: (-1), priority: 15}, {name: [67,105,118,105,108,105,97,110,115], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Of course, a battle will have its civillians. And of course, the enemy won\'t kill them.\x0A 3 civillians spawn on the enemy side. They randomly move and cannot be taken."), icon: [99,105,118,105,108,105,97,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495776, index: (-1), priority: 30}, {name: [83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("Have you seen the movie Slumdog Millionaire? It\'s kind of like that. \x0A Your pawns have a 1% chance of promoting whenever they move."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495902, index: (-1), priority: 15}, {name: [83,116,117,112,105,100,32,80,111,119,101,114], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("You have a 0.1% chance to automatically win each turn. Yeah, I\'m out of ideas. I\'m sorry."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495951, index: (-1), priority: 15}, {name: [83,108,101,101,112,101,114,32,65,103,101,110,116], technicalName: [], synergy: false, tier: 0, rarity: 8, description: makeNimstrLit("The silent river collapses in pieces. \x0A One of your pawns is a sleeper agent. They can take forward."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845496049, index: (-1), priority: 30}, {name: [67,111,110,118,101,114,115,105,111,110], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("When your bishop takes a piece, it has a 15% chance to convert it to your color. \x0A When this happens, your bishop swaps places with it instead of taking it."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495984, index: (-1), priority: 15}]; + var experimentalPowers_1845500215 = [{name: [71,108,97,115,115,58,32,83,107,121], technicalName: [], synergy: false, tier: 1, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Sky on any \x0A open tile. These pieces teleport to their selected tile when the cast completes. \x0A Pieces cannot try to teleport to a tile where they would check the king. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499527, index: (-1), priority: 15}, {name: [71,108,97,115,115,58,32,90,101,114,111], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 2 pieces to each cast Zero on \x0A any non-king tile. Any piece on these tiles will die if the cast completes. Zero cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499541, index: (-1), priority: 15}, {name: [71,108,97,115,115,58,32,83,116,101,101,108], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving, you can choose 5 pieces to each cast Steel. \x0A If there is an enemy one tile in front of them when the cast completes, they take forward. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [115,116,101,101,108,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499553, index: (-1), priority: 15}, {name: [71,108,97,115,115,58,32,82,101,118,101,114,105,101], technicalName: [], synergy: false, tier: 0, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 3 pieces to each cast Reverie on \x0A an opponent tile. When the cast completes, \x0A they swap moves and takes with whatever piece is on that tile. If that piece \x0A is a king, the cast fails. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [114,101,118,101,114,105,101,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499887, index: (-1), priority: 0}, {name: [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, instead of moving you can choose 1 pieces to cast Daybreak on \x0A any tile. When the cast completes, the piece on that tile promotes. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [100,97,121,98,114,101,97,107,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499933, index: (-1), priority: 0}]; var emptyPower_1728053310 = {name: [78,111,116,104,105,110,103,46,32,78,111,116,104,105,110,103,46,46,46], technicalName: [], synergy: false, tier: 0, rarity: 8, description: [84,104,105,115,32,100,111,101,115,32,110,111,116,104,105,110,103,46,32,85,110,108,117,99,107,121,33], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1728053305, index: 0, priority: 10}; function cstrToNimstr(c_33556898) { @@ -1812,24 +1846,6 @@ function cstrToNimstr(c_33556898) { -} - -function reprEnum(e_33557576, typ_33557577) { - var result_33557578 = []; - - var tmp_33557579 = false; - var item_33557580 = typ_33557577.node.sons[e_33557576]; - tmp_33557579 = item_33557580 !== undefined - if (tmp_33557579) { - result_33557578 = nimCopy(null, makeNimstrLit(item_33557580.name), NTI33554449); - } - else { - result_33557578 = nimCopy(null, (HEX24_385875976(e_33557576) || []).concat([32,40,105,110,118,97,108,105,100,32,100,97,116,97,33,41] || []), NTI33554449); - } - - - return result_33557578; - } var ConstSet6 = setConstr([48, 57]); var ConstSet7 = setConstr([48, 57]); @@ -1850,21 +1866,6 @@ function negInt(a_33557092) { return result_33557093; -} - -function nimBoolToStr(x_33556438) { - var result_33556439 = []; - - if (x_33556438) { - result_33556439 = nimCopy(null, [116,114,117,101], NTI33554449); - } - else { - result_33556439 = nimCopy(null, [102,97,108,115,101], NTI33554449); - } - - - return result_33556439; - } var toLowerRanges_1157628916 = new Int32Array([65, 90, 532, 192, 214, 532, 216, 222, 532, 393, 394, 705, 433, 434, 717, 904, 906, 537, 910, 911, 563, 913, 929, 532, 931, 939, 532, 1021, 1023, 370, 1024, 1039, 580, 1040, 1071, 532, 1329, 1366, 548, 4256, 4293, 7764, 5024, 5103, 39364, 5104, 5109, 508, 7312, 7354, (-2508), 7357, 7359, (-2508), 7944, 7951, 492, 7960, 7965, 492, 7976, 7983, 492, 7992, 7999, 492, 8008, 8013, 492, 8040, 8047, 492, 8072, 8079, 492, 8088, 8095, 492, 8104, 8111, 492, 8120, 8121, 492, 8122, 8123, 426, 8136, 8139, 414, 8152, 8153, 492, 8154, 8155, 400, 8168, 8169, 492, 8170, 8171, 388, 8184, 8185, 372, 8186, 8187, 374, 11264, 11310, 548, 11390, 11391, (-10315), 65313, 65338, 532, 66560, 66599, 540, 66736, 66771, 540, 68736, 68786, 564, 71840, 71871, 532, 93760, 93791, 532, 125184, 125217, 534]); var toLowerSinglets_1157628917 = new Int32Array([256, 501, 258, 501, 260, 501, 262, 501, 264, 501, 266, 501, 268, 501, 270, 501, 272, 501, 274, 501, 276, 501, 278, 501, 280, 501, 282, 501, 284, 501, 286, 501, 288, 501, 290, 501, 292, 501, 294, 501, 296, 501, 298, 501, 300, 501, 302, 501, 304, 301, 306, 501, 308, 501, 310, 501, 313, 501, 315, 501, 317, 501, 319, 501, 321, 501, 323, 501, 325, 501, 327, 501, 330, 501, 332, 501, 334, 501, 336, 501, 338, 501, 340, 501, 342, 501, 344, 501, 346, 501, 348, 501, 350, 501, 352, 501, 354, 501, 356, 501, 358, 501, 360, 501, 362, 501, 364, 501, 366, 501, 368, 501, 370, 501, 372, 501, 374, 501, 376, 379, 377, 501, 379, 501, 381, 501, 385, 710, 386, 501, 388, 501, 390, 706, 391, 501, 395, 501, 398, 579, 399, 702, 400, 703, 401, 501, 403, 705, 404, 707, 406, 711, 407, 709, 408, 501, 412, 711, 413, 713, 415, 714, 416, 501, 418, 501, 420, 501, 422, 718, 423, 501, 425, 718, 428, 501, 430, 718, 431, 501, 435, 501, 437, 501, 439, 719, 440, 501, 444, 501, 452, 502, 453, 501, 455, 502, 456, 501, 458, 502, 459, 501, 461, 501, 463, 501, 465, 501, 467, 501, 469, 501, 471, 501, 473, 501, 475, 501, 478, 501, 480, 501, 482, 501, 484, 501, 486, 501, 488, 501, 490, 501, 492, 501, 494, 501, 497, 502, 498, 501, 500, 501, 502, 403, 503, 444, 504, 501, 506, 501, 508, 501, 510, 501, 512, 501, 514, 501, 516, 501, 518, 501, 520, 501, 522, 501, 524, 501, 526, 501, 528, 501, 530, 501, 532, 501, 534, 501, 536, 501, 538, 501, 540, 501, 542, 501, 544, 370, 546, 501, 548, 501, 550, 501, 552, 501, 554, 501, 556, 501, 558, 501, 560, 501, 562, 501, 570, 11295, 571, 501, 573, 337, 574, 11292, 577, 501, 579, 305, 580, 569, 581, 571, 582, 501, 584, 501, 586, 501, 588, 501, 590, 501, 880, 501, 882, 501, 886, 501, 895, 616, 902, 538, 908, 564, 975, 508, 984, 501, 986, 501, 988, 501, 990, 501, 992, 501, 994, 501, 996, 501, 998, 501, 1000, 501, 1002, 501, 1004, 501, 1006, 501, 1012, 440, 1015, 501, 1017, 493, 1018, 501, 1120, 501, 1122, 501, 1124, 501, 1126, 501, 1128, 501, 1130, 501, 1132, 501, 1134, 501, 1136, 501, 1138, 501, 1140, 501, 1142, 501, 1144, 501, 1146, 501, 1148, 501, 1150, 501, 1152, 501, 1162, 501, 1164, 501, 1166, 501, 1168, 501, 1170, 501, 1172, 501, 1174, 501, 1176, 501, 1178, 501, 1180, 501, 1182, 501, 1184, 501, 1186, 501, 1188, 501, 1190, 501, 1192, 501, 1194, 501, 1196, 501, 1198, 501, 1200, 501, 1202, 501, 1204, 501, 1206, 501, 1208, 501, 1210, 501, 1212, 501, 1214, 501, 1216, 515, 1217, 501, 1219, 501, 1221, 501, 1223, 501, 1225, 501, 1227, 501, 1229, 501, 1232, 501, 1234, 501, 1236, 501, 1238, 501, 1240, 501, 1242, 501, 1244, 501, 1246, 501, 1248, 501, 1250, 501, 1252, 501, 1254, 501, 1256, 501, 1258, 501, 1260, 501, 1262, 501, 1264, 501, 1266, 501, 1268, 501, 1270, 501, 1272, 501, 1274, 501, 1276, 501, 1278, 501, 1280, 501, 1282, 501, 1284, 501, 1286, 501, 1288, 501, 1290, 501, 1292, 501, 1294, 501, 1296, 501, 1298, 501, 1300, 501, 1302, 501, 1304, 501, 1306, 501, 1308, 501, 1310, 501, 1312, 501, 1314, 501, 1316, 501, 1318, 501, 1320, 501, 1322, 501, 1324, 501, 1326, 501, 4295, 7764, 4301, 7764, 7680, 501, 7682, 501, 7684, 501, 7686, 501, 7688, 501, 7690, 501, 7692, 501, 7694, 501, 7696, 501, 7698, 501, 7700, 501, 7702, 501, 7704, 501, 7706, 501, 7708, 501, 7710, 501, 7712, 501, 7714, 501, 7716, 501, 7718, 501, 7720, 501, 7722, 501, 7724, 501, 7726, 501, 7728, 501, 7730, 501, 7732, 501, 7734, 501, 7736, 501, 7738, 501, 7740, 501, 7742, 501, 7744, 501, 7746, 501, 7748, 501, 7750, 501, 7752, 501, 7754, 501, 7756, 501, 7758, 501, 7760, 501, 7762, 501, 7764, 501, 7766, 501, 7768, 501, 7770, 501, 7772, 501, 7774, 501, 7776, 501, 7778, 501, 7780, 501, 7782, 501, 7784, 501, 7786, 501, 7788, 501, 7790, 501, 7792, 501, 7794, 501, 7796, 501, 7798, 501, 7800, 501, 7802, 501, 7804, 501, 7806, 501, 7808, 501, 7810, 501, 7812, 501, 7814, 501, 7816, 501, 7818, 501, 7820, 501, 7822, 501, 7824, 501, 7826, 501, 7828, 501, 7838, (-7115), 7840, 501, 7842, 501, 7844, 501, 7846, 501, 7848, 501, 7850, 501, 7852, 501, 7854, 501, 7856, 501, 7858, 501, 7860, 501, 7862, 501, 7864, 501, 7866, 501, 7868, 501, 7870, 501, 7872, 501, 7874, 501, 7876, 501, 7878, 501, 7880, 501, 7882, 501, 7884, 501, 7886, 501, 7888, 501, 7890, 501, 7892, 501, 7894, 501, 7896, 501, 7898, 501, 7900, 501, 7902, 501, 7904, 501, 7906, 501, 7908, 501, 7910, 501, 7912, 501, 7914, 501, 7916, 501, 7918, 501, 7920, 501, 7922, 501, 7924, 501, 7926, 501, 7928, 501, 7930, 501, 7932, 501, 7934, 501, 8025, 492, 8027, 492, 8029, 492, 8031, 492, 8124, 491, 8140, 491, 8172, 493, 8188, 491, 8486, (-7017), 8490, (-7883), 8491, (-7762), 8498, 528, 8579, 501, 11360, 501, 11362, (-10243), 11363, (-3314), 11364, (-10227), 11367, 501, 11369, 501, 11371, 501, 11373, (-10280), 11374, (-10249), 11375, (-10283), 11376, (-10282), 11378, 501, 11381, 501, 11392, 501, 11394, 501, 11396, 501, 11398, 501, 11400, 501, 11402, 501, 11404, 501, 11406, 501, 11408, 501, 11410, 501, 11412, 501, 11414, 501, 11416, 501, 11418, 501, 11420, 501, 11422, 501, 11424, 501, 11426, 501, 11428, 501, 11430, 501, 11432, 501, 11434, 501, 11436, 501, 11438, 501, 11440, 501, 11442, 501, 11444, 501, 11446, 501, 11448, 501, 11450, 501, 11452, 501, 11454, 501, 11456, 501, 11458, 501, 11460, 501, 11462, 501, 11464, 501, 11466, 501, 11468, 501, 11470, 501, 11472, 501, 11474, 501, 11476, 501, 11478, 501, 11480, 501, 11482, 501, 11484, 501, 11486, 501, 11488, 501, 11490, 501, 11499, 501, 11501, 501, 11506, 501, 42560, 501, 42562, 501, 42564, 501, 42566, 501, 42568, 501, 42570, 501, 42572, 501, 42574, 501, 42576, 501, 42578, 501, 42580, 501, 42582, 501, 42584, 501, 42586, 501, 42588, 501, 42590, 501, 42592, 501, 42594, 501, 42596, 501, 42598, 501, 42600, 501, 42602, 501, 42604, 501, 42624, 501, 42626, 501, 42628, 501, 42630, 501, 42632, 501, 42634, 501, 42636, 501, 42638, 501, 42640, 501, 42642, 501, 42644, 501, 42646, 501, 42648, 501, 42650, 501, 42786, 501, 42788, 501, 42790, 501, 42792, 501, 42794, 501, 42796, 501, 42798, 501, 42802, 501, 42804, 501, 42806, 501, 42808, 501, 42810, 501, 42812, 501, 42814, 501, 42816, 501, 42818, 501, 42820, 501, 42822, 501, 42824, 501, 42826, 501, 42828, 501, 42830, 501, 42832, 501, 42834, 501, 42836, 501, 42838, 501, 42840, 501, 42842, 501, 42844, 501, 42846, 501, 42848, 501, 42850, 501, 42852, 501, 42854, 501, 42856, 501, 42858, 501, 42860, 501, 42862, 501, 42873, 501, 42875, 501, 42877, (-34832), 42878, 501, 42880, 501, 42882, 501, 42884, 501, 42886, 501, 42891, 501, 42893, (-41780), 42896, 501, 42898, 501, 42902, 501, 42904, 501, 42906, 501, 42908, 501, 42910, 501, 42912, 501, 42914, 501, 42916, 501, 42918, 501, 42920, 501, 42922, (-41808), 42923, (-41819), 42924, (-41815), 42925, (-41805), 42926, (-41808), 42928, (-41758), 42929, (-41782), 42930, (-41761), 42931, 1428, 42932, 501, 42934, 501, 42936, 501, 42938, 501, 42940, 501, 42942, 501, 42946, 501, 42948, 452, 42949, (-41807), 42950, (-34884)]); @@ -2133,27 +2134,27 @@ var rarePowers_1728053327 = [[]]; var ultraRarePowers_1728053328 = [[]]; registerPower_1728054076(holy_1728053316); -function isAir_1476396035(p_1476396036) { - var result_1476396037 = false; +function isAir_1476396036(p_1476396037) { + var result_1476396038 = false; BeforeRet: { - result_1476396037 = (p_1476396036.item == 6); + result_1476396038 = (p_1476396037.item == 6); break BeforeRet; }; - return result_1476396037; + return result_1476396038; } -function isColor_1476396052(a_1476396053, b_1476396054) { - var result_1476396055 = false; +function isColor_1476396053(a_1476396054, b_1476396055) { + var result_1476396056 = false; BeforeRet: { - result_1476396055 = ((a_1476396053.color == b_1476396054) && !(isAir_1476396035(a_1476396053))); + result_1476396056 = ((a_1476396054.color == b_1476396055) && !(isAir_1476396036(a_1476396054))); break BeforeRet; }; - return result_1476396055; + return result_1476396056; } @@ -2165,15 +2166,15 @@ function add_1845493814(x_1845493816, x_1845493816_Idx, y_1845493817) { else { x_1845493816[x_1845493816_Idx].length = Temporary1; }; Label2: { var i_1845493836 = 0; - var colontmp__1845497430 = 0; - colontmp__1845497430 = (y_1845493817).length - 1; - var res_1845497431 = 0; + var colontmp__1845500232 = 0; + colontmp__1845500232 = (y_1845493817).length - 1; + var res_1845500233 = 0; Label3: { Label4: while (true) { - if (!(res_1845497431 <= colontmp__1845497430)) break Label4; - i_1845493836 = res_1845497431; + if (!(res_1845500233 <= colontmp__1845500232)) break Label4; + i_1845493836 = res_1845500233; x_1845493816[x_1845493816_Idx][chckIndx(addInt(xl_1845493821, i_1845493836), 0, (x_1845493816[x_1845493816_Idx]).length - 1)] = y_1845493817[chckIndx(i_1845493836, 0, (y_1845493817).length - 1)]; - res_1845497431 = addInt(res_1845497431, 1); + res_1845500233 = addInt(res_1845500233, 1); } }; }; @@ -2189,15 +2190,15 @@ function add_1845493841(x_1845493843, x_1845493843_Idx, y_1845493844) { else { x_1845493843[x_1845493843_Idx].length = Temporary1; }; Label2: { var i_1845493864 = 0; - var colontmp__1845497434 = 0; - colontmp__1845497434 = (y_1845493844).length - 1; - var res_1845497435 = 0; + var colontmp__1845500236 = 0; + colontmp__1845500236 = (y_1845493844).length - 1; + var res_1845500237 = 0; Label3: { Label4: while (true) { - if (!(res_1845497435 <= colontmp__1845497434)) break Label4; - i_1845493864 = res_1845497435; + if (!(res_1845500237 <= colontmp__1845500236)) break Label4; + i_1845493864 = res_1845500237; x_1845493843[x_1845493843_Idx][chckIndx(addInt(xl_1845493848, i_1845493864), 0, (x_1845493843[x_1845493843_Idx]).length - 1)] = y_1845493844[chckIndx(i_1845493864, 0, (y_1845493844).length - 1)]; - res_1845497435 = addInt(res_1845497435, 1); + res_1845500237 = addInt(res_1845500237, 1); } }; }; @@ -2210,22 +2211,22 @@ function buff_1845493778(piece_1845493779, side_1845493780, b_1845493781, s_1845 var i_1845493808 = 0; var j_1845493809 = 0; Label2: { - var i_1845497422 = 0; - var i_1845497423 = 0; + var i_1845500224 = 0; + var i_1845500225 = 0; Label3: { Label4: while (true) { - if (!(i_1845497423 < 8)) break Label4; - i_1845497422 = i_1845497423; + if (!(i_1845500225 < 8)) break Label4; + i_1845500224 = i_1845500225; Label5: { - var j_1845497426 = 0; - var i_1845497427 = 0; + var j_1845500228 = 0; + var i_1845500229 = 0; Label6: { Label7: while (true) { - if (!(i_1845497427 < 8)) break Label7; - j_1845497426 = i_1845497427; - i_1845493808 = i_1845497422; - j_1845493809 = j_1845497426; - if ((((b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)].item == piece_1845493779) || all_1845493807) && isColor_1476396052(b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)], side_1845493780))) { + if (!(i_1845500229 < 8)) break Label7; + j_1845500228 = i_1845500229; + i_1845493808 = i_1845500224; + j_1845493809 = j_1845500228; + if ((((b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)].item == piece_1845493779) || all_1845493807) && isColor_1476396053(b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)], side_1845493780))) { add_1845493814(b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)], "moves", moves_1845493787); add_1845493814(b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)], "takes", takes_1845493792); add_1845493841(b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)][chckIndx(j_1845493809, 0, (b_1845493781[chckIndx(i_1845493808, 0, (b_1845493781).length - 1)]).length - 1)], "onEndTurn", onEndturn_1845493797); @@ -2248,11 +2249,11 @@ function buff_1845493778(piece_1845493779, side_1845493780, b_1845493781, s_1845 } - i_1845497427 = addInt(i_1845497427, 1); + i_1845500229 = addInt(i_1845500229, 1); } }; }; - i_1845497423 = addInt(i_1845497423, 1); + i_1845500225 = addInt(i_1845500225, 1); } }; }; @@ -2353,7 +2354,7 @@ function addIfFree_1543503880(addTo_1543503881, addTo_1543503881_Idx, board_1543 BeforeRet: { var target_1543503887 = boardRef_1560281242(board_1543503882, shoot_1543503884(t_1543503883)); - if ((isSome_1543503892(target_1543503887) && isAir_1476396035(get_1543503909(target_1543503887)))) { + if ((isSome_1543503892(target_1543503887) && isAir_1476396036(get_1543503909(target_1543503887)))) { addTo_1543503881[addTo_1543503881_Idx].push(shoot_1543503884(t_1543503883));; result_1543503885 = true; break BeforeRet; @@ -2372,9 +2373,9 @@ function shooterFactory_1560281208(m_1560281209, n_1560281210) { function HEX3Aanonymous_1560281212(t_1560281213) { var result_1560281214 = {Field0: 0, Field1: 0}; - var colontmp__1845497437 = addInt(t_1560281213.Field0, m_1560281209); - var colontmp__1845497438 = addInt(t_1560281213.Field1, n_1560281210); - result_1560281214 = nimCopy(result_1560281214, {Field0: colontmp__1845497437, Field1: colontmp__1845497438}, NTI1476395011); + var colontmp__1845500239 = addInt(t_1560281213.Field0, m_1560281209); + var colontmp__1845500240 = addInt(t_1560281213.Field1, n_1560281210); + result_1560281214 = nimCopy(result_1560281214, {Field0: colontmp__1845500239, Field1: colontmp__1845500240}, NTI1476395011); return result_1560281214; @@ -2404,15 +2405,15 @@ function HEX3Aanonymous_1543504322(board_1543504323, p_1543504324) { } -function sameColor_1476396043(a_1476396044, b_1476396045) { - var result_1476396046 = false; +function sameColor_1476396044(a_1476396045, b_1476396046) { + var result_1476396047 = false; BeforeRet: { - result_1476396046 = (((a_1476396044.color == b_1476396045.color) && !(isAir_1476396035(a_1476396044))) && !(isAir_1476396035(b_1476396045))); + result_1476396047 = (((a_1476396045.color == b_1476396046.color) && !(isAir_1476396036(a_1476396045))) && !(isAir_1476396036(b_1476396046))); break BeforeRet; }; - return result_1476396046; + return result_1476396047; } @@ -2421,13 +2422,13 @@ function addIfTake_1543503979(addTo_1543503980, addTo_1543503980_Idx, board_1543 BeforeRet: { var target_1543503989 = boardRef_1560281242(board_1543503981, shoot_1543503984(t_1543503983)); - if (((isSome_1543503892(target_1543503989) && !(isAir_1476396035(get_1543503909(target_1543503989)))) && (!(sameColor_1476396043(initialPiece_1543503982, get_1543503909(target_1543503989))) || cannibalismFlag_1543503986))) { + if (((isSome_1543503892(target_1543503989) && !(isAir_1476396036(get_1543503909(target_1543503989)))) && (!(sameColor_1476396044(initialPiece_1543503982, get_1543503909(target_1543503989))) || cannibalismFlag_1543503986))) { addTo_1543503980[addTo_1543503980_Idx].push(shoot_1543503984(t_1543503983));; result_1543503987 = (false || throughFlag_1543503985); break BeforeRet; } - result_1543503987 = (isSome_1543503892(target_1543503989) && (isAir_1476396035(get_1543503909(target_1543503989)) || throughFlag_1543503985)); + result_1543503987 = (isSome_1543503892(target_1543503989) && (isAir_1476396036(get_1543503909(target_1543503989)) || throughFlag_1543503985)); break BeforeRet; }; @@ -2529,9 +2530,9 @@ function tileBelow_1560281233(t_1560281234) { var result_1560281235 = {Field0: 0, Field1: 0}; BeforeRet: { - var colontmp__1845497439 = t_1560281234.Field0; - var colontmp__1845497440 = addInt(t_1560281234.Field1, 1); - result_1560281235 = nimCopy(result_1560281235, {Field0: colontmp__1845497439, Field1: colontmp__1845497440}, NTI1476395011); + var colontmp__1845500241 = t_1560281234.Field0; + var colontmp__1845500242 = addInt(t_1560281234.Field1, 1); + result_1560281235 = nimCopy(result_1560281235, {Field0: colontmp__1845500241, Field1: colontmp__1845500242}, NTI1476395011); break BeforeRet; }; @@ -2573,9 +2574,9 @@ function tileAbove_1560281230(t_1560281231) { var result_1560281232 = {Field0: 0, Field1: 0}; BeforeRet: { - var colontmp__1845497441 = t_1560281231.Field0; - var colontmp__1845497442 = subInt(t_1560281231.Field1, 1); - result_1560281232 = nimCopy(result_1560281232, {Field0: colontmp__1845497441, Field1: colontmp__1845497442}, NTI1476395011); + var colontmp__1845500243 = t_1560281231.Field0; + var colontmp__1845500244 = subInt(t_1560281231.Field1, 1); + result_1560281232 = nimCopy(result_1560281232, {Field0: colontmp__1845500243, Field1: colontmp__1845500244}, NTI1476395011); break BeforeRet; }; @@ -2601,35 +2602,35 @@ function HEX3Aanonymous_1862271055(board_1862271056, p_1862271057) { } -function isAtEnd_1476396237(piece_1476396238) { - var result_1476396239 = false; +function isAtEnd_1476396238(piece_1476396239) { + var result_1476396240 = false; BeforeRet: { - result_1476396239 = (((piece_1476396238.tile.Field1 == 7) && (piece_1476396238.color == 0)) || ((piece_1476396238.tile.Field1 == 0) && (piece_1476396238.color == 1))); + result_1476396240 = (((piece_1476396239.tile.Field1 == 7) && (piece_1476396239.color == 0)) || ((piece_1476396239.tile.Field1 == 0) && (piece_1476396239.color == 1))); break BeforeRet; }; - return result_1476396239; + return result_1476396240; } function HEX3Aanonymous_1845494175(piece_1845494176, board_1845494177, state_1845494178) { - if ((isAtEnd_1476396237(piece_1845494176) && !(piece_1845494176.promoted))) { + if ((isAtEnd_1476396238(piece_1845494176) && !(piece_1845494176.promoted))) { Label1: { var xHEX60gensym26_1845494183 = null; - var i_1845497445 = 0; - var L_1845497446 = (piece_1845494176.onPromote).length; + var i_1845500247 = 0; + var L_1845500248 = (piece_1845494176.onPromote).length; Label2: { Label3: while (true) { - if (!(i_1845497445 < L_1845497446)) break Label3; - xHEX60gensym26_1845494183 = piece_1845494176.onPromote[chckIndx(i_1845497445, 0, (piece_1845494176.onPromote).length - 1)]; + if (!(i_1845500247 < L_1845500248)) break Label3; + xHEX60gensym26_1845494183 = piece_1845494176.onPromote[chckIndx(i_1845500247, 0, (piece_1845494176.onPromote).length - 1)]; xHEX60gensym26_1845494183(piece_1845494176, board_1845494177, state_1845494178); if (piece_1845494176.promoted) { break Label1; } - i_1845497445 += 1; - if (!(((piece_1845494176.onPromote).length == L_1845497446))) { + i_1845500247 += 1; + if (!(((piece_1845494176.onPromote).length == L_1845500248))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -2664,9 +2665,9 @@ function tileLeft_1560281236(t_1560281237) { var result_1560281238 = {Field0: 0, Field1: 0}; BeforeRet: { - var colontmp__1845497457 = subInt(t_1560281237.Field0, 1); - var colontmp__1845497458 = t_1560281237.Field1; - result_1560281238 = nimCopy(result_1560281238, {Field0: colontmp__1845497457, Field1: colontmp__1845497458}, NTI1476395011); + var colontmp__1845500259 = subInt(t_1560281237.Field0, 1); + var colontmp__1845500260 = t_1560281237.Field1; + result_1560281238 = nimCopy(result_1560281238, {Field0: colontmp__1845500259, Field1: colontmp__1845500260}, NTI1476395011); break BeforeRet; }; @@ -2678,9 +2679,9 @@ function tileRight_1560281239(t_1560281240) { var result_1560281241 = {Field0: 0, Field1: 0}; BeforeRet: { - var colontmp__1845497459 = addInt(t_1560281240.Field0, 1); - var colontmp__1845497460 = t_1560281240.Field1; - result_1560281241 = nimCopy(result_1560281241, {Field0: colontmp__1845497459, Field1: colontmp__1845497460}, NTI1476395011); + var colontmp__1845500261 = addInt(t_1560281240.Field0, 1); + var colontmp__1845500262 = t_1560281240.Field1; + result_1560281241 = nimCopy(result_1560281241, {Field0: colontmp__1845500261, Field1: colontmp__1845500262}, NTI1476395011); break BeforeRet; }; @@ -2742,18 +2743,18 @@ function HEX3Aanonymous_1845494088(piece_1845494089, board_1845494090, state_184 var resultHEX60gensym18_1845494096 = newSeq_1543504188(0); Label1: { var it_1845494100 = null; - var i_1845497450 = 0; - var L_1845497451 = (piece_1845494089.moves).length; + var i_1845500252 = 0; + var L_1845500253 = (piece_1845494089.moves).length; Label2: { Label3: while (true) { - if (!(i_1845497450 < L_1845497451)) break Label3; - it_1845494100 = piece_1845494089.moves[chckIndx(i_1845497450, 0, (piece_1845494089.moves).length - 1)]; + if (!(i_1845500252 < L_1845500253)) break Label3; + it_1845494100 = piece_1845494089.moves[chckIndx(i_1845500252, 0, (piece_1845494089.moves).length - 1)]; if (!((it_1845494100 == HEX3Aanonymous_1862271001))) { resultHEX60gensym18_1845494096.push(it_1845494100);; } - i_1845497450 += 1; - if (!(((piece_1845494089.moves).length == L_1845497451))) { + i_1845500252 += 1; + if (!(((piece_1845494089.moves).length == L_1845500253))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -2764,18 +2765,18 @@ function HEX3Aanonymous_1845494088(piece_1845494089, board_1845494090, state_184 var resultHEX60gensym20_1845494113 = newSeq_1543504188(0); Label4: { var it_1845494117 = null; - var i_1845497454 = 0; - var L_1845497455 = (piece_1845494089.takes).length; + var i_1845500256 = 0; + var L_1845500257 = (piece_1845494089.takes).length; Label5: { Label6: while (true) { - if (!(i_1845497454 < L_1845497455)) break Label6; - it_1845494117 = piece_1845494089.takes[chckIndx(i_1845497454, 0, (piece_1845494089.takes).length - 1)]; + if (!(i_1845500256 < L_1845500257)) break Label6; + it_1845494117 = piece_1845494089.takes[chckIndx(i_1845500256, 0, (piece_1845494089.takes).length - 1)]; if (!((it_1845494117 == HEX3Aanonymous_1862271006))) { resultHEX60gensym20_1845494113.push(it_1845494117);; } - i_1845497454 += 1; - if (!(((piece_1845494089.takes).length == L_1845497455))) { + i_1845500256 += 1; + if (!(((piece_1845494089.takes).length == L_1845500257))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -2783,7 +2784,7 @@ function HEX3Aanonymous_1845494088(piece_1845494089, board_1845494090, state_184 }; }; piece_1845494089.takes = nimCopy(null, resultHEX60gensym20_1845494113, NTI1543504114); - if (isColor_1476396052(piece_1845494089, 1)) { + if (isColor_1476396053(piece_1845494089, 1)) { add_1845493814(piece_1845494089, "moves", [HEX3Aanonymous_1862271050, HEX3Aanonymous_1862270981, HEX3Aanonymous_1862271011]); add_1845493814(piece_1845494089, "takes", [HEX3Aanonymous_1862271060, HEX3Aanonymous_1862270991, HEX3Aanonymous_1862271040]); } @@ -2872,60 +2873,60 @@ function HEX3Aanonymous_1845494271(side_1845494272, viewSide_1845494273, b_18454 } -function newIndex_1476395494(s_1476395495) { - var result_1476395496 = 0; +function newIndex_1476395495(s_1476395496) { + var result_1476395497 = 0; BeforeRet: { - s_1476395495.Field0.nextIndex = addInt(s_1476395495.Field0.nextIndex, 1); - result_1476395496 = s_1476395495.Field0.nextIndex; + s_1476395496.Field0.nextIndex = addInt(s_1476395496.Field0.nextIndex, 1); + result_1476395497 = s_1476395496.Field0.nextIndex; break BeforeRet; }; - return result_1476395496; + return result_1476395497; } -function pieceMove_1476395795(p_1476395796, rank_1476395797, file_1476395798, board_1476395799, state_1476395800) { - board_1476395799[chckIndx(rank_1476395797, 0, (board_1476395799).length - 1)][chckIndx(file_1476395798, 0, (board_1476395799[chckIndx(rank_1476395797, 0, (board_1476395799).length - 1)]).length - 1)] = nimCopy(board_1476395799[chckIndx(rank_1476395797, 0, (board_1476395799).length - 1)][chckIndx(file_1476395798, 0, (board_1476395799[chckIndx(rank_1476395797, 0, (board_1476395799).length - 1)]).length - 1)], board_1476395799[chckIndx(p_1476395796.tile.Field1, 0, (board_1476395799).length - 1)][chckIndx(p_1476395796.tile.Field0, 0, (board_1476395799[chckIndx(p_1476395796.tile.Field1, 0, (board_1476395799).length - 1)]).length - 1)], NTI1476395034); - board_1476395799[chckIndx(p_1476395796.tile.Field1, 0, (board_1476395799).length - 1)][chckIndx(p_1476395796.tile.Field0, 0, (board_1476395799[chckIndx(p_1476395796.tile.Field1, 0, (board_1476395799).length - 1)]).length - 1)] = nimCopy(board_1476395799[chckIndx(p_1476395796.tile.Field1, 0, (board_1476395799).length - 1)][chckIndx(p_1476395796.tile.Field0, 0, (board_1476395799[chckIndx(p_1476395796.tile.Field1, 0, (board_1476395799).length - 1)]).length - 1)], {index: newIndex_1476395494(state_1476395800), item: 6, tile: nimCopy(null, p_1476395796.tile, NTI1476395011), timesMoved: 0, piecesTaken: 0, promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, color: 0, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], casts: []}, NTI1476395034); - var colontmp__1845497461 = file_1476395798; - var colontmp__1845497462 = rank_1476395797; - board_1476395799[chckIndx(rank_1476395797, 0, (board_1476395799).length - 1)][chckIndx(file_1476395798, 0, (board_1476395799[chckIndx(rank_1476395797, 0, (board_1476395799).length - 1)]).length - 1)].tile = nimCopy(board_1476395799[chckIndx(rank_1476395797, 0, (board_1476395799).length - 1)][chckIndx(file_1476395798, 0, (board_1476395799[chckIndx(rank_1476395797, 0, (board_1476395799).length - 1)]).length - 1)].tile, {Field0: colontmp__1845497461, Field1: colontmp__1845497462}, NTI1476395011); +function pieceMove_1476395796(p_1476395797, rank_1476395798, file_1476395799, board_1476395800, state_1476395801) { + board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)][chckIndx(file_1476395799, 0, (board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)]).length - 1)] = nimCopy(board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)][chckIndx(file_1476395799, 0, (board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)]).length - 1)], board_1476395800[chckIndx(p_1476395797.tile.Field1, 0, (board_1476395800).length - 1)][chckIndx(p_1476395797.tile.Field0, 0, (board_1476395800[chckIndx(p_1476395797.tile.Field1, 0, (board_1476395800).length - 1)]).length - 1)], NTI1476395034); + board_1476395800[chckIndx(p_1476395797.tile.Field1, 0, (board_1476395800).length - 1)][chckIndx(p_1476395797.tile.Field0, 0, (board_1476395800[chckIndx(p_1476395797.tile.Field1, 0, (board_1476395800).length - 1)]).length - 1)] = nimCopy(board_1476395800[chckIndx(p_1476395797.tile.Field1, 0, (board_1476395800).length - 1)][chckIndx(p_1476395797.tile.Field0, 0, (board_1476395800[chckIndx(p_1476395797.tile.Field1, 0, (board_1476395800).length - 1)]).length - 1)], {index: newIndex_1476395495(state_1476395801), item: 6, tile: nimCopy(null, p_1476395797.tile, NTI1476395011), timesMoved: 0, piecesTaken: 0, promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, color: 0, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], casts: []}, NTI1476395034); + var colontmp__1845500263 = file_1476395799; + var colontmp__1845500264 = rank_1476395798; + board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)][chckIndx(file_1476395799, 0, (board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)]).length - 1)].tile = nimCopy(board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)][chckIndx(file_1476395799, 0, (board_1476395800[chckIndx(rank_1476395798, 0, (board_1476395800).length - 1)]).length - 1)].tile, {Field0: colontmp__1845500263, Field1: colontmp__1845500264}, NTI1476395011); } function HEX3Aanonymous_1845494323(side_1845494324, __1845494325, b_1845494326, s_1845494327) { if ((side_1845494324 == 0)) { - pieceMove_1476395795(b_1845494326[chckIndx(1, 0, (b_1845494326).length - 1)][chckIndx(3, 0, (b_1845494326[chckIndx(1, 0, (b_1845494326).length - 1)]).length - 1)], 2, 3, b_1845494326, s_1845494327); - pieceMove_1476395795(b_1845494326[chckIndx(1, 0, (b_1845494326).length - 1)][chckIndx(4, 0, (b_1845494326[chckIndx(1, 0, (b_1845494326).length - 1)]).length - 1)], 2, 4, b_1845494326, s_1845494327); + pieceMove_1476395796(b_1845494326[chckIndx(1, 0, (b_1845494326).length - 1)][chckIndx(3, 0, (b_1845494326[chckIndx(1, 0, (b_1845494326).length - 1)]).length - 1)], 2, 3, b_1845494326, s_1845494327); + pieceMove_1476395796(b_1845494326[chckIndx(1, 0, (b_1845494326).length - 1)][chckIndx(4, 0, (b_1845494326[chckIndx(1, 0, (b_1845494326).length - 1)]).length - 1)], 2, 4, b_1845494326, s_1845494327); } else { - pieceMove_1476395795(b_1845494326[chckIndx(6, 0, (b_1845494326).length - 1)][chckIndx(3, 0, (b_1845494326[chckIndx(6, 0, (b_1845494326).length - 1)]).length - 1)], 5, 3, b_1845494326, s_1845494327); - pieceMove_1476395795(b_1845494326[chckIndx(6, 0, (b_1845494326).length - 1)][chckIndx(4, 0, (b_1845494326[chckIndx(6, 0, (b_1845494326).length - 1)]).length - 1)], 5, 4, b_1845494326, s_1845494327); + pieceMove_1476395796(b_1845494326[chckIndx(6, 0, (b_1845494326).length - 1)][chckIndx(3, 0, (b_1845494326[chckIndx(6, 0, (b_1845494326).length - 1)]).length - 1)], 5, 3, b_1845494326, s_1845494327); + pieceMove_1476395796(b_1845494326[chckIndx(6, 0, (b_1845494326).length - 1)][chckIndx(4, 0, (b_1845494326[chckIndx(6, 0, (b_1845494326).length - 1)]).length - 1)], 5, 4, b_1845494326, s_1845494327); } } -function add_1476395537(x_1476395539, x_1476395539_Idx, y_1476395540) { +function add_1476395538(x_1476395540, x_1476395540_Idx, y_1476395541) { var Temporary1; - var xl_1476395545 = (x_1476395539[x_1476395539_Idx]).length; - if (x_1476395539[x_1476395539_Idx].length < (Temporary1 = chckRange(addInt(xl_1476395545, (y_1476395540).length), 0, 2147483647), Temporary1)) { for (var i = x_1476395539[x_1476395539_Idx].length ; i < Temporary1 ; ++i) x_1476395539[x_1476395539_Idx].push({Field0: 0, Field1: 0}); } - else { x_1476395539[x_1476395539_Idx].length = Temporary1; }; + var xl_1476395546 = (x_1476395540[x_1476395540_Idx]).length; + if (x_1476395540[x_1476395540_Idx].length < (Temporary1 = chckRange(addInt(xl_1476395546, (y_1476395541).length), 0, 2147483647), Temporary1)) { for (var i = x_1476395540[x_1476395540_Idx].length ; i < Temporary1 ; ++i) x_1476395540[x_1476395540_Idx].push({Field0: 0, Field1: 0}); } + else { x_1476395540[x_1476395540_Idx].length = Temporary1; }; Label2: { - var i_1476395561 = 0; - var colontmp__1845497464 = 0; - colontmp__1845497464 = (y_1476395540).length - 1; - var res_1845497465 = 0; + var i_1476395562 = 0; + var colontmp__1845500266 = 0; + colontmp__1845500266 = (y_1476395541).length - 1; + var res_1845500267 = 0; Label3: { Label4: while (true) { - if (!(res_1845497465 <= colontmp__1845497464)) break Label4; - i_1476395561 = res_1845497465; - x_1476395539[x_1476395539_Idx][chckIndx(addInt(xl_1476395545, i_1476395561), 0, (x_1476395539[x_1476395539_Idx]).length - 1)] = nimCopy(x_1476395539[x_1476395539_Idx][chckIndx(addInt(xl_1476395545, i_1476395561), 0, (x_1476395539[x_1476395539_Idx]).length - 1)], y_1476395540[chckIndx(i_1476395561, 0, (y_1476395540).length - 1)], NTI1476395011); - res_1845497465 = addInt(res_1845497465, 1); + if (!(res_1845500267 <= colontmp__1845500266)) break Label4; + i_1476395562 = res_1845500267; + x_1476395540[x_1476395540_Idx][chckIndx(addInt(xl_1476395546, i_1476395562), 0, (x_1476395540[x_1476395540_Idx]).length - 1)] = nimCopy(x_1476395540[x_1476395540_Idx][chckIndx(addInt(xl_1476395546, i_1476395562), 0, (x_1476395540[x_1476395540_Idx]).length - 1)], y_1476395541[chckIndx(i_1476395562, 0, (y_1476395541).length - 1)], NTI1476395011); + res_1845500267 = addInt(res_1845500267, 1); } }; }; @@ -2951,20 +2952,20 @@ function lineTakes_1543504059(board_1543504060, p_1543504061, shoot_1543504062, function HEX3Aanonymous_1862271112(board_1862271113, p_1862271114) { var result_1862271115 = [[]]; - add_1476395537(result_1862271115, 0, lineTakes_1543504059(board_1862271113, p_1862271114, shooterFactory_1560281208(1, 1), false, true)); - add_1476395537(result_1862271115, 0, lineTakes_1543504059(board_1862271113, p_1862271114, shooterFactory_1560281208((-1), 1), false, true)); - add_1476395537(result_1862271115, 0, lineTakes_1543504059(board_1862271113, p_1862271114, shooterFactory_1560281208(1, (-1)), false, true)); - add_1476395537(result_1862271115, 0, lineTakes_1543504059(board_1862271113, p_1862271114, shooterFactory_1560281208((-1), (-1)), false, true)); + add_1476395538(result_1862271115, 0, lineTakes_1543504059(board_1862271113, p_1862271114, shooterFactory_1560281208(1, 1), false, true)); + add_1476395538(result_1862271115, 0, lineTakes_1543504059(board_1862271113, p_1862271114, shooterFactory_1560281208((-1), 1), false, true)); + add_1476395538(result_1862271115, 0, lineTakes_1543504059(board_1862271113, p_1862271114, shooterFactory_1560281208(1, (-1)), false, true)); + add_1476395538(result_1862271115, 0, lineTakes_1543504059(board_1862271113, p_1862271114, shooterFactory_1560281208((-1), (-1)), false, true)); return result_1862271115[0]; } -function newSeq_1476395758(len_1476395760) { - var result_1476395761 = []; +function newSeq_1476395759(len_1476395761) { + var result_1476395762 = []; - result_1476395761 = new Array(len_1476395760); for (var i = 0 ; i < len_1476395760 ; ++i) { result_1476395761[i] = {Field0: 0, Field1: 0}; } - return result_1476395761; + result_1476395762 = new Array(len_1476395761); for (var i = 0 ; i < len_1476395761 ; ++i) { result_1476395762[i] = {Field0: 0, Field1: 0}; } + return result_1476395762; } @@ -2985,43 +2986,43 @@ function HEX3Aanonymous_1862271133(board_1862271134, p_1862271135) { Label1: { var i_1862271141 = 0; - var res_1845497472 = (-1); + var res_1845500274 = (-1); Label2: { Label3: while (true) { - if (!(res_1845497472 <= 1)) break Label3; - i_1862271141 = res_1845497472; + if (!(res_1845500274 <= 1)) break Label3; + i_1862271141 = res_1845500274; Label4: { var j_1862271146 = 0; - var res_1845497470 = (-1); + var res_1845500272 = (-1); Label5: { Label6: while (true) { - if (!(res_1845497470 <= 1)) break Label6; - j_1862271146 = res_1845497470; + if (!(res_1845500272 <= 1)) break Label6; + j_1862271146 = res_1845500272; var _ = addIfTake_1543503979(result_1862271136, 0, board_1862271134, p_1862271135, p_1862271135.tile, shooterFactory_1560281208(i_1862271141, j_1862271146), false, true); - res_1845497470 = addInt(res_1845497470, 1); + res_1845500272 = addInt(res_1845500272, 1); } }; }; - res_1845497472 = addInt(res_1845497472, 1); + res_1845500274 = addInt(res_1845500274, 1); } }; }; - var resultHEX60gensym0_1862271151 = newSeq_1476395758(0); + var resultHEX60gensym0_1862271151 = newSeq_1476395759(0); Label7: { var it_1862271155 = {Field0: 0, Field1: 0}; - var i_1845497476 = 0; - var L_1845497477 = (result_1862271136[0]).length; + var i_1845500278 = 0; + var L_1845500279 = (result_1862271136[0]).length; Label8: { Label9: while (true) { - if (!(i_1845497476 < L_1845497477)) break Label9; - it_1862271155 = result_1862271136[0][chckIndx(i_1845497476, 0, (result_1862271136[0]).length - 1)]; + if (!(i_1845500278 < L_1845500279)) break Label9; + it_1862271155 = result_1862271136[0][chckIndx(i_1845500278, 0, (result_1862271136[0]).length - 1)]; if (!(HEX3DHEX3D_1560281204(it_1862271155, p_1862271135.tile))) { var Temporary10 = nimCopy(null, it_1862271155, NTI1476395011); resultHEX60gensym0_1862271151.push(Temporary10);; } - i_1845497476 += 1; - if (!(((result_1862271136[0]).length == L_1845497477))) { + i_1845500278 += 1; + if (!(((result_1862271136[0]).length == L_1845500279))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -3037,10 +3038,10 @@ function HEX3Aanonymous_1862271133(board_1862271134, p_1862271135) { function HEX3Aanonymous_1862271091(board_1862271092, p_1862271093) { var result_1862271094 = [[]]; - add_1476395537(result_1862271094, 0, lineTakes_1543504059(board_1862271092, p_1862271093, tileAbove_1560281230, false, true)); - add_1476395537(result_1862271094, 0, lineTakes_1543504059(board_1862271092, p_1862271093, tileBelow_1560281233, false, true)); - add_1476395537(result_1862271094, 0, lineTakes_1543504059(board_1862271092, p_1862271093, tileLeft_1560281236, false, true)); - add_1476395537(result_1862271094, 0, lineTakes_1543504059(board_1862271092, p_1862271093, tileRight_1560281239, false, true)); + add_1476395538(result_1862271094, 0, lineTakes_1543504059(board_1862271092, p_1862271093, tileAbove_1560281230, false, true)); + add_1476395538(result_1862271094, 0, lineTakes_1543504059(board_1862271092, p_1862271093, tileBelow_1560281233, false, true)); + add_1476395538(result_1862271094, 0, lineTakes_1543504059(board_1862271092, p_1862271093, tileLeft_1560281236, false, true)); + add_1476395538(result_1862271094, 0, lineTakes_1543504059(board_1862271092, p_1862271093, tileRight_1560281239, false, true)); return result_1862271094[0]; @@ -3052,16 +3053,16 @@ function HEX3Aanonymous_1845494333(side_1845494334, __1845494335, b_1845494336, } -function pieceSwap_1476395834(p1_1476395835, p2_1476395836, board_1476395837) { - var temp_1476395838 = nimCopy(null, p1_1476395835, NTI1476395034); - board_1476395837[chckIndx(p1_1476395835.tile.Field1, 0, (board_1476395837).length - 1)][chckIndx(p1_1476395835.tile.Field0, 0, (board_1476395837[chckIndx(p1_1476395835.tile.Field1, 0, (board_1476395837).length - 1)]).length - 1)] = nimCopy(board_1476395837[chckIndx(p1_1476395835.tile.Field1, 0, (board_1476395837).length - 1)][chckIndx(p1_1476395835.tile.Field0, 0, (board_1476395837[chckIndx(p1_1476395835.tile.Field1, 0, (board_1476395837).length - 1)]).length - 1)], p2_1476395836, NTI1476395034); - board_1476395837[chckIndx(p2_1476395836.tile.Field1, 0, (board_1476395837).length - 1)][chckIndx(p2_1476395836.tile.Field0, 0, (board_1476395837[chckIndx(p2_1476395836.tile.Field1, 0, (board_1476395837).length - 1)]).length - 1)] = nimCopy(board_1476395837[chckIndx(p2_1476395836.tile.Field1, 0, (board_1476395837).length - 1)][chckIndx(p2_1476395836.tile.Field0, 0, (board_1476395837[chckIndx(p2_1476395836.tile.Field1, 0, (board_1476395837).length - 1)]).length - 1)], temp_1476395838, NTI1476395034); - var colontmp__1845497479 = p1_1476395835.tile.Field0; - var colontmp__1845497480 = p1_1476395835.tile.Field1; - board_1476395837[chckIndx(p1_1476395835.tile.Field1, 0, (board_1476395837).length - 1)][chckIndx(p1_1476395835.tile.Field0, 0, (board_1476395837[chckIndx(p1_1476395835.tile.Field1, 0, (board_1476395837).length - 1)]).length - 1)].tile = nimCopy(board_1476395837[chckIndx(p1_1476395835.tile.Field1, 0, (board_1476395837).length - 1)][chckIndx(p1_1476395835.tile.Field0, 0, (board_1476395837[chckIndx(p1_1476395835.tile.Field1, 0, (board_1476395837).length - 1)]).length - 1)].tile, {Field0: colontmp__1845497479, Field1: colontmp__1845497480}, NTI1476395011); - var colontmp__1845497481 = temp_1476395838.tile.Field0; - var colontmp__1845497482 = temp_1476395838.tile.Field1; - board_1476395837[chckIndx(temp_1476395838.tile.Field1, 0, (board_1476395837).length - 1)][chckIndx(temp_1476395838.tile.Field0, 0, (board_1476395837[chckIndx(temp_1476395838.tile.Field1, 0, (board_1476395837).length - 1)]).length - 1)].tile = nimCopy(board_1476395837[chckIndx(temp_1476395838.tile.Field1, 0, (board_1476395837).length - 1)][chckIndx(temp_1476395838.tile.Field0, 0, (board_1476395837[chckIndx(temp_1476395838.tile.Field1, 0, (board_1476395837).length - 1)]).length - 1)].tile, {Field0: colontmp__1845497481, Field1: colontmp__1845497482}, NTI1476395011); +function pieceSwap_1476395835(p1_1476395836, p2_1476395837, board_1476395838) { + var temp_1476395839 = nimCopy(null, p1_1476395836, NTI1476395034); + board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(p1_1476395836.tile.Field0, 0, (board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)] = nimCopy(board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(p1_1476395836.tile.Field0, 0, (board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)], p2_1476395837, NTI1476395034); + board_1476395838[chckIndx(p2_1476395837.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(p2_1476395837.tile.Field0, 0, (board_1476395838[chckIndx(p2_1476395837.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)] = nimCopy(board_1476395838[chckIndx(p2_1476395837.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(p2_1476395837.tile.Field0, 0, (board_1476395838[chckIndx(p2_1476395837.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)], temp_1476395839, NTI1476395034); + var colontmp__1845500281 = p1_1476395836.tile.Field0; + var colontmp__1845500282 = p1_1476395836.tile.Field1; + board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(p1_1476395836.tile.Field0, 0, (board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)].tile = nimCopy(board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(p1_1476395836.tile.Field0, 0, (board_1476395838[chckIndx(p1_1476395836.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)].tile, {Field0: colontmp__1845500281, Field1: colontmp__1845500282}, NTI1476395011); + var colontmp__1845500283 = temp_1476395839.tile.Field0; + var colontmp__1845500284 = temp_1476395839.tile.Field1; + board_1476395838[chckIndx(temp_1476395839.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(temp_1476395839.tile.Field0, 0, (board_1476395838[chckIndx(temp_1476395839.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)].tile = nimCopy(board_1476395838[chckIndx(temp_1476395839.tile.Field1, 0, (board_1476395838).length - 1)][chckIndx(temp_1476395839.tile.Field0, 0, (board_1476395838[chckIndx(temp_1476395839.tile.Field1, 0, (board_1476395838).length - 1)]).length - 1)].tile, {Field0: colontmp__1845500283, Field1: colontmp__1845500284}, NTI1476395011); } @@ -3078,7 +3079,7 @@ function HEX3Aanonymous_1845494381(side_1845494382, __1845494383, b_1845494384, } var rank_1845494390 = Temporary1; - pieceSwap_1476395834(b_1845494384[chckIndx(rank_1845494390, 0, (b_1845494384).length - 1)][chckIndx(2, 0, (b_1845494384[chckIndx(rank_1845494390, 0, (b_1845494384).length - 1)]).length - 1)], (Temporary2 = b_1845494384[chckIndx(addInt(rank_1845494390, 1), 0, (b_1845494384).length - 1)], Temporary2)[chckIndx(2, 0, (Temporary2).length - 1)], b_1845494384); + pieceSwap_1476395835(b_1845494384[chckIndx(rank_1845494390, 0, (b_1845494384).length - 1)][chckIndx(2, 0, (b_1845494384[chckIndx(rank_1845494390, 0, (b_1845494384).length - 1)]).length - 1)], (Temporary2 = b_1845494384[chckIndx(addInt(rank_1845494390, 1), 0, (b_1845494384).length - 1)], Temporary2)[chckIndx(2, 0, (Temporary2).length - 1)], b_1845494384); } @@ -3095,7 +3096,7 @@ function HEX3Aanonymous_1845494392(side_1845494393, __1845494394, b_1845494395, } var rank_1845494401 = Temporary1; - pieceSwap_1476395834(b_1845494395[chckIndx(rank_1845494401, 0, (b_1845494395).length - 1)][chckIndx(5, 0, (b_1845494395[chckIndx(rank_1845494401, 0, (b_1845494395).length - 1)]).length - 1)], (Temporary2 = b_1845494395[chckIndx(addInt(rank_1845494401, 1), 0, (b_1845494395).length - 1)], Temporary2)[chckIndx(5, 0, (Temporary2).length - 1)], b_1845494395); + pieceSwap_1476395835(b_1845494395[chckIndx(rank_1845494401, 0, (b_1845494395).length - 1)][chckIndx(5, 0, (b_1845494395[chckIndx(rank_1845494401, 0, (b_1845494395).length - 1)]).length - 1)], (Temporary2 = b_1845494395[chckIndx(addInt(rank_1845494401, 1), 0, (b_1845494395).length - 1)], Temporary2)[chckIndx(5, 0, (Temporary2).length - 1)], b_1845494395); } @@ -3112,7 +3113,7 @@ function HEX3Aanonymous_1845494359(side_1845494360, __1845494361, b_1845494362, } var rank_1845494368 = Temporary1; - pieceSwap_1476395834(b_1845494362[chckIndx(rank_1845494368, 0, (b_1845494362).length - 1)][chckIndx(0, 0, (b_1845494362[chckIndx(rank_1845494368, 0, (b_1845494362).length - 1)]).length - 1)], (Temporary2 = b_1845494362[chckIndx(addInt(rank_1845494368, 1), 0, (b_1845494362).length - 1)], Temporary2)[chckIndx(0, 0, (Temporary2).length - 1)], b_1845494362); + pieceSwap_1476395835(b_1845494362[chckIndx(rank_1845494368, 0, (b_1845494362).length - 1)][chckIndx(0, 0, (b_1845494362[chckIndx(rank_1845494368, 0, (b_1845494362).length - 1)]).length - 1)], (Temporary2 = b_1845494362[chckIndx(addInt(rank_1845494368, 1), 0, (b_1845494362).length - 1)], Temporary2)[chckIndx(0, 0, (Temporary2).length - 1)], b_1845494362); } @@ -3129,7 +3130,7 @@ function HEX3Aanonymous_1845494370(side_1845494371, __1845494372, b_1845494373, } var rank_1845494379 = Temporary1; - pieceSwap_1476395834(b_1845494373[chckIndx(rank_1845494379, 0, (b_1845494373).length - 1)][chckIndx(7, 0, (b_1845494373[chckIndx(rank_1845494379, 0, (b_1845494373).length - 1)]).length - 1)], (Temporary2 = b_1845494373[chckIndx(addInt(rank_1845494379, 1), 0, (b_1845494373).length - 1)], Temporary2)[chckIndx(7, 0, (Temporary2).length - 1)], b_1845494373); + pieceSwap_1476395835(b_1845494373[chckIndx(rank_1845494379, 0, (b_1845494373).length - 1)][chckIndx(7, 0, (b_1845494373[chckIndx(rank_1845494379, 0, (b_1845494373).length - 1)]).length - 1)], (Temporary2 = b_1845494373[chckIndx(addInt(rank_1845494379, 1), 0, (b_1845494373).length - 1)], Temporary2)[chckIndx(7, 0, (Temporary2).length - 1)], b_1845494373); } @@ -3138,19 +3139,19 @@ function HEX3Aanonymous_1845494403(piece_1845494404, board_1845494405, state_184 if ((piece_1845494404.piecesTaken == 3)) { Label1: { var xHEX60gensym33_1845494411 = null; - var i_1845497484 = 0; - var L_1845497485 = (piece_1845494404.onPromote).length; + var i_1845500286 = 0; + var L_1845500287 = (piece_1845494404.onPromote).length; Label2: { Label3: while (true) { - if (!(i_1845497484 < L_1845497485)) break Label3; - xHEX60gensym33_1845494411 = piece_1845494404.onPromote[chckIndx(i_1845497484, 0, (piece_1845494404.onPromote).length - 1)]; + if (!(i_1845500286 < L_1845500287)) break Label3; + xHEX60gensym33_1845494411 = piece_1845494404.onPromote[chckIndx(i_1845500286, 0, (piece_1845494404.onPromote).length - 1)]; xHEX60gensym33_1845494411(piece_1845494404, board_1845494405, state_1845494406); if (piece_1845494404.promoted) { break Label1; } - i_1845497484 += 1; - if (!(((piece_1845494404.onPromote).length == L_1845497485))) { + i_1845500286 += 1; + if (!(((piece_1845494404.onPromote).length == L_1845500287))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -3169,7 +3170,7 @@ function HEX3Aanonymous_1845494415(side_1845494416, __1845494417, b_1845494418, } -function HEX3Aanonymous_1476395449(piece_1476395450, board_1476395451, state_1476395452) { +function HEX3Aanonymous_1476395450(piece_1476395451, board_1476395452, state_1476395453) { } @@ -3197,7 +3198,7 @@ function HEX3Aanonymous_1845494425(side_1845494426, viewSide_1845494427, b_18454 b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271006, HEX3Aanonymous_1862271055, HEX3Aanonymous_1862271040], NTI1543504247); } - b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1476395449], NTI1526726697); + b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1476395450], NTI1526726697); b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].item = 7; b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].filePath = nimCopy(null, [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], NTI33554449); b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)][chckIndx(2, 0, (b_1845494428[chckIndx(rank_1845494434, 0, (b_1845494428).length - 1)]).length - 1)].colorable = false; @@ -3233,7 +3234,7 @@ function HEX3Aanonymous_1845494473(side_1845494474, viewSide_1845494475, b_18454 b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].takes = nimCopy(null, [HEX3Aanonymous_1862271006, HEX3Aanonymous_1862271055, HEX3Aanonymous_1862271040], NTI1543504247); } - b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1476395449], NTI1526726697); + b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].onPromote = nimCopy(null, [HEX3Aanonymous_1476395450], NTI1526726697); b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].item = 7; b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].filePath = nimCopy(null, [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], NTI33554449); b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)][chckIndx(5, 0, (b_1845494476[chckIndx(rank_1845494482, 0, (b_1845494476).length - 1)]).length - 1)].colorable = false; @@ -3296,22 +3297,22 @@ function change_1845493918(piece_1845493919, side_1845493920, b_1845493921, s_18 var i_1845493949 = 0; var j_1845493950 = 0; Label2: { - var i_1845497489 = 0; - var i_1845497490 = 0; + var i_1845500291 = 0; + var i_1845500292 = 0; Label3: { Label4: while (true) { - if (!(i_1845497490 < 8)) break Label4; - i_1845497489 = i_1845497490; + if (!(i_1845500292 < 8)) break Label4; + i_1845500291 = i_1845500292; Label5: { - var j_1845497493 = 0; - var i_1845497494 = 0; + var j_1845500295 = 0; + var i_1845500296 = 0; Label6: { Label7: while (true) { - if (!(i_1845497494 < 8)) break Label7; - j_1845497493 = i_1845497494; - i_1845493949 = i_1845497489; - j_1845493950 = j_1845497493; - if ((((b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].item == piece_1845493919) || all_1845493948) && isColor_1476396052(b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)], side_1845493920))) { + if (!(i_1845500296 < 8)) break Label7; + j_1845500295 = i_1845500296; + i_1845493949 = i_1845500291; + j_1845493950 = j_1845500295; + if ((((b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].item == piece_1845493919) || all_1845493948) && isColor_1476396053(b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)], side_1845493920))) { if (!(((moves_1845493927).length == 0))) { b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)][chckIndx(j_1845493950, 0, (b_1845493921[chckIndx(i_1845493949, 0, (b_1845493921).length - 1)]).length - 1)].moves = nimCopy(null, moves_1845493927, NTI1845493895); } @@ -3350,11 +3351,11 @@ function change_1845493918(piece_1845493919, side_1845493920, b_1845493921, s_18 } - i_1845497494 = addInt(i_1845497494, 1); + i_1845500296 = addInt(i_1845500296, 1); } }; }; - i_1845497490 = addInt(i_1845497490, 1); + i_1845500292 = addInt(i_1845500292, 1); } }; }; @@ -3415,42 +3416,42 @@ function HEX3Aanonymous_1862271181(board_1862271182, p_1862271183) { } -function HEX5BHEX5DHEX3D_1476395383(b_1476395384, tile_1476395385, newPiece_1476395386) { - b_1476395384[chckIndx(tile_1476395385.Field1, 0, (b_1476395384).length - 1)][chckIndx(tile_1476395385.Field0, 0, (b_1476395384[chckIndx(tile_1476395385.Field1, 0, (b_1476395384).length - 1)]).length - 1)] = nimCopy(b_1476395384[chckIndx(tile_1476395385.Field1, 0, (b_1476395384).length - 1)][chckIndx(tile_1476395385.Field0, 0, (b_1476395384[chckIndx(tile_1476395385.Field1, 0, (b_1476395384).length - 1)]).length - 1)], newPiece_1476395386, NTI1476395034); +function HEX5BHEX5DHEX3D_1476395384(b_1476395385, tile_1476395386, newPiece_1476395387) { + b_1476395385[chckIndx(tile_1476395386.Field1, 0, (b_1476395385).length - 1)][chckIndx(tile_1476395386.Field0, 0, (b_1476395385[chckIndx(tile_1476395386.Field1, 0, (b_1476395385).length - 1)]).length - 1)] = nimCopy(b_1476395385[chckIndx(tile_1476395386.Field1, 0, (b_1476395385).length - 1)][chckIndx(tile_1476395386.Field0, 0, (b_1476395385[chckIndx(tile_1476395386.Field1, 0, (b_1476395385).length - 1)]).length - 1)], newPiece_1476395387, NTI1476395034); } -function pieceCopy_1476395899(initial_1476395900, index_1476395901, item_1476395902, color_1476395903, timesMoved_1476395904, piecesTaken_1476395905, tile_1476395906, moves_1476395907, takes_1476395908, onMove_1476395909, onTake_1476395910, whenTaken_1476395911, onEndTurn_1476395916, onPromote_1476395921, promoted_1476395922, filePath_1476395923, colorable_1476395924, rotate_1476395925, drunk_1476395926) { - var result_1476395927 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); +function pieceCopy_1476395900(initial_1476395901, index_1476395902, item_1476395903, color_1476395904, timesMoved_1476395905, piecesTaken_1476395906, tile_1476395907, moves_1476395908, takes_1476395909, onMove_1476395910, onTake_1476395911, whenTaken_1476395912, onEndTurn_1476395917, onPromote_1476395922, promoted_1476395923, filePath_1476395924, colorable_1476395925, rotate_1476395926, drunk_1476395927) { + var result_1476395928 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); BeforeRet: { - result_1476395927 = nimCopy(result_1476395927, {index: index_1476395901, item: item_1476395902, color: color_1476395903, timesMoved: timesMoved_1476395904, piecesTaken: piecesTaken_1476395905, tile: nimCopy(null, tile_1476395906, NTI1476395011), moves: nimCopy(null, moves_1476395907, NTI1476395686), takes: nimCopy(null, takes_1476395908, NTI1476395687), onMove: onMove_1476395909, onTake: onTake_1476395910, whenTaken: whenTaken_1476395911, onEndTurn: nimCopy(null, onEndTurn_1476395916, NTI1476395688), onPromote: nimCopy(null, onPromote_1476395921, NTI1476395693), promoted: promoted_1476395922, filePath: nimCopy(null, filePath_1476395923, NTI33554449), rotate: rotate_1476395925, drunk: drunk_1476395926, colorable: colorable_1476395924, casts: []}, NTI1476395034); + result_1476395928 = nimCopy(result_1476395928, {index: index_1476395902, item: item_1476395903, color: color_1476395904, timesMoved: timesMoved_1476395905, piecesTaken: piecesTaken_1476395906, tile: nimCopy(null, tile_1476395907, NTI1476395011), moves: nimCopy(null, moves_1476395908, NTI1476395686), takes: nimCopy(null, takes_1476395909, NTI1476395687), onMove: onMove_1476395910, onTake: onTake_1476395911, whenTaken: whenTaken_1476395912, onEndTurn: nimCopy(null, onEndTurn_1476395917, NTI1476395688), onPromote: nimCopy(null, onPromote_1476395922, NTI1476395693), promoted: promoted_1476395923, filePath: nimCopy(null, filePath_1476395924, NTI33554449), rotate: rotate_1476395926, drunk: drunk_1476395927, colorable: colorable_1476395925, casts: []}, NTI1476395034); break BeforeRet; }; - return result_1476395927; + return result_1476395928; } -function pieceMove_1476395829(p_1476395830, t_1476395831, board_1476395832, state_1476395833) { - pieceMove_1476395795(p_1476395830, t_1476395831.tile.Field1, t_1476395831.tile.Field0, board_1476395832, state_1476395833); +function pieceMove_1476395830(p_1476395831, t_1476395832, board_1476395833, state_1476395834) { + pieceMove_1476395796(p_1476395831, t_1476395832.tile.Field1, t_1476395832.tile.Field0, board_1476395833, state_1476395834); } -function HEX3Aanonymous_1476395843(taken_1476395844, taker_1476395845, board_1476395846, state_1476395847) { - var result_1476395850 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; +function HEX3Aanonymous_1476395844(taken_1476395845, taker_1476395846, board_1476395847, state_1476395848) { + var result_1476395851 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; BeforeRet: { - pieceMove_1476395829(taker_1476395845, taken_1476395844, board_1476395846, state_1476395847); - var colontmp__1845497512 = nimCopy(null, taken_1476395844.tile, NTI1476395011); - var colontmp__1845497513 = true; - result_1476395850 = nimCopy(result_1476395850, {Field0: nimCopy(null, colontmp__1845497512, NTI1476395011), Field1: colontmp__1845497513}, NTI1476395641); + pieceMove_1476395830(taker_1476395846, taken_1476395845, board_1476395847, state_1476395848); + var colontmp__1845500314 = nimCopy(null, taken_1476395845.tile, NTI1476395011); + var colontmp__1845500315 = true; + result_1476395851 = nimCopy(result_1476395851, {Field0: nimCopy(null, colontmp__1845500314, NTI1476395011), Field1: colontmp__1845500315}, NTI1476395641); break BeforeRet; }; - return result_1476395850; + return result_1476395851; } @@ -3463,39 +3464,39 @@ function HEX3Aanonymous_1845494679(taken_1845494680, taker_1845494681, board_184 var i_1845494687 = 0; var j_1845494688 = 0; Label2: { - var i_1845497503 = 0; - var i_1845497504 = 0; + var i_1845500305 = 0; + var i_1845500306 = 0; Label3: { Label4: while (true) { - if (!(i_1845497504 < 8)) break Label4; - i_1845497503 = i_1845497504; + if (!(i_1845500306 < 8)) break Label4; + i_1845500305 = i_1845500306; Label5: { - var j_1845497507 = 0; - var i_1845497508 = 0; + var j_1845500309 = 0; + var i_1845500310 = 0; Label6: { Label7: while (true) { - if (!(i_1845497508 < 8)) break Label7; - j_1845497507 = i_1845497508; - i_1845494687 = i_1845497503; - j_1845494688 = j_1845497507; - if ((sameColor_1476396043(board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)], taken_1845494680) && !(board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)].promoted))) { + if (!(i_1845500310 < 8)) break Label7; + j_1845500309 = i_1845500310; + i_1845494687 = i_1845500305; + j_1845494688 = j_1845500309; + if ((sameColor_1476396044(board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)], taken_1845494680) && !(board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)].promoted))) { Label8: { var xHEX60gensym45_1845494693 = null; - var colontmp__1845497498 = []; - colontmp__1845497498 = board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)].onPromote; - var i_1845497499 = 0; - var L_1845497500 = (colontmp__1845497498).length; + var colontmp__1845500300 = []; + colontmp__1845500300 = board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)].onPromote; + var i_1845500301 = 0; + var L_1845500302 = (colontmp__1845500300).length; Label9: { Label10: while (true) { - if (!(i_1845497499 < L_1845497500)) break Label10; - xHEX60gensym45_1845494693 = colontmp__1845497498[chckIndx(i_1845497499, 0, (colontmp__1845497498).length - 1)]; + if (!(i_1845500301 < L_1845500302)) break Label10; + xHEX60gensym45_1845494693 = colontmp__1845500300[chckIndx(i_1845500301, 0, (colontmp__1845500300).length - 1)]; xHEX60gensym45_1845494693(board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)], board_1845494682, state_1845494683); if (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)][chckIndx(j_1845494688, 0, (board_1845494682[chckIndx(i_1845494687, 0, (board_1845494682).length - 1)]).length - 1)].promoted) { break Label8; } - i_1845497499 += 1; - if (!(((colontmp__1845497498).length == L_1845497500))) { + i_1845500301 += 1; + if (!(((colontmp__1845500300).length == L_1845500302))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -3504,23 +3505,23 @@ function HEX3Aanonymous_1845494679(taken_1845494680, taker_1845494681, board_184 }; } - i_1845497508 = addInt(i_1845497508, 1); + i_1845500310 = addInt(i_1845500310, 1); } }; }; - i_1845497504 = addInt(i_1845497504, 1); + i_1845500306 = addInt(i_1845500306, 1); } }; }; }; - HEX5BHEX5DHEX3D_1476395383(board_1845494682, taken_1845494680.tile, pieceCopy_1476395899(air_1526726831, taken_1845494680.index, 6, 1, 0, 0, taken_1845494680.tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false)); - var colontmp__1845497510 = nimCopy(null, taken_1845494680.tile, NTI1476395011); - var colontmp__1845497511 = false; - result_1845494686 = nimCopy(result_1845494686, {Field0: nimCopy(null, colontmp__1845497510, NTI1476395011), Field1: colontmp__1845497511}, NTI1845494628); + HEX5BHEX5DHEX3D_1476395384(board_1845494682, taken_1845494680.tile, pieceCopy_1476395900(air_1526726831, taken_1845494680.index, 6, 1, 0, 0, taken_1845494680.tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false)); + var colontmp__1845500312 = nimCopy(null, taken_1845494680.tile, NTI1476395011); + var colontmp__1845500313 = false; + result_1845494686 = nimCopy(result_1845494686, {Field0: nimCopy(null, colontmp__1845500312, NTI1476395011), Field1: colontmp__1845500313}, NTI1845494628); break BeforeRet; } else { - result_1845494686 = nimCopy(result_1845494686, HEX3Aanonymous_1476395843(taken_1845494680, taker_1845494681, board_1845494682, state_1845494683), NTI1845494628); + result_1845494686 = nimCopy(result_1845494686, HEX3Aanonymous_1476395844(taken_1845494680, taker_1845494681, board_1845494682, state_1845494683), NTI1845494628); break BeforeRet; } @@ -3641,30 +3642,30 @@ function HEX3Aanonymous_1845494737(side_1845494738, viewSide_1845494739, b_18454 var i_1845494742 = 0; var j_1845494743 = 0; Label2: { - var i_1845497516 = 0; - var i_1845497517 = 0; + var i_1845500318 = 0; + var i_1845500319 = 0; Label3: { Label4: while (true) { - if (!(i_1845497517 < 8)) break Label4; - i_1845497516 = i_1845497517; + if (!(i_1845500319 < 8)) break Label4; + i_1845500318 = i_1845500319; Label5: { - var j_1845497520 = 0; - var i_1845497521 = 0; + var j_1845500322 = 0; + var i_1845500323 = 0; Label6: { Label7: while (true) { - if (!(i_1845497521 < 8)) break Label7; - j_1845497520 = i_1845497521; - i_1845494742 = i_1845497516; - j_1845494743 = j_1845497520; + if (!(i_1845500323 < 8)) break Label7; + j_1845500322 = i_1845500323; + i_1845494742 = i_1845500318; + j_1845494743 = j_1845500322; if ((b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)].item == 1)) { - b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)] = nimCopy(b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)], pieceCopy_1476395899(air_1526726831, b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); + b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)] = nimCopy(b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)][chckIndx(j_1845494743, 0, (b_1845494740[chckIndx(i_1845494742, 0, (b_1845494740).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } - i_1845497521 = addInt(i_1845497521, 1); + i_1845500323 = addInt(i_1845500323, 1); } }; }; - i_1845497517 = addInt(i_1845497517, 1); + i_1845500319 = addInt(i_1845500319, 1); } }; }; @@ -3691,10 +3692,10 @@ function lineMoves_1543504053(board_1543504054, p_1543504055, shoot_1543504056) function HEX3Aanonymous_1543504270(board_1543504271, p_1543504272) { var result_1543504273 = [[]]; - add_1476395537(result_1543504273, 0, lineMoves_1543504053(board_1543504271, p_1543504272, shooterFactory_1560281208(1, 1))); - add_1476395537(result_1543504273, 0, lineMoves_1543504053(board_1543504271, p_1543504272, shooterFactory_1560281208((-1), 1))); - add_1476395537(result_1543504273, 0, lineMoves_1543504053(board_1543504271, p_1543504272, shooterFactory_1560281208(1, (-1)))); - add_1476395537(result_1543504273, 0, lineMoves_1543504053(board_1543504271, p_1543504272, shooterFactory_1560281208((-1), (-1)))); + add_1476395538(result_1543504273, 0, lineMoves_1543504053(board_1543504271, p_1543504272, shooterFactory_1560281208(1, 1))); + add_1476395538(result_1543504273, 0, lineMoves_1543504053(board_1543504271, p_1543504272, shooterFactory_1560281208((-1), 1))); + add_1476395538(result_1543504273, 0, lineMoves_1543504053(board_1543504271, p_1543504272, shooterFactory_1560281208(1, (-1)))); + add_1476395538(result_1543504273, 0, lineMoves_1543504053(board_1543504271, p_1543504272, shooterFactory_1560281208((-1), (-1)))); return result_1543504273[0]; @@ -3703,10 +3704,10 @@ function HEX3Aanonymous_1543504270(board_1543504271, p_1543504272) { function HEX3Aanonymous_1543504228(board_1543504229, p_1543504230) { var result_1543504231 = [[]]; - add_1476395537(result_1543504231, 0, lineMoves_1543504053(board_1543504229, p_1543504230, tileAbove_1560281230)); - add_1476395537(result_1543504231, 0, lineMoves_1543504053(board_1543504229, p_1543504230, tileBelow_1560281233)); - add_1476395537(result_1543504231, 0, lineMoves_1543504053(board_1543504229, p_1543504230, tileLeft_1560281236)); - add_1476395537(result_1543504231, 0, lineMoves_1543504053(board_1543504229, p_1543504230, tileRight_1560281239)); + add_1476395538(result_1543504231, 0, lineMoves_1543504053(board_1543504229, p_1543504230, tileAbove_1560281230)); + add_1476395538(result_1543504231, 0, lineMoves_1543504053(board_1543504229, p_1543504230, tileBelow_1560281233)); + add_1476395538(result_1543504231, 0, lineMoves_1543504053(board_1543504229, p_1543504230, tileLeft_1560281236)); + add_1476395538(result_1543504231, 0, lineMoves_1543504053(board_1543504229, p_1543504230, tileRight_1560281239)); return result_1543504231[0]; @@ -3717,24 +3718,24 @@ function HEX3Aanonymous_1543504105(board_1543504106, p_1543504107) { Label1: { var i_1543504113 = 0; - var res_1845497537 = (-1); + var res_1845500339 = (-1); Label2: { Label3: while (true) { - if (!(res_1845497537 <= 1)) break Label3; - i_1543504113 = res_1845497537; + if (!(res_1845500339 <= 1)) break Label3; + i_1543504113 = res_1845500339; Label4: { var j_1543504118 = 0; - var res_1845497535 = (-1); + var res_1845500337 = (-1); Label5: { Label6: while (true) { - if (!(res_1845497535 <= 1)) break Label6; - j_1543504118 = res_1845497535; + if (!(res_1845500337 <= 1)) break Label6; + j_1543504118 = res_1845500337; var _ = addIfFree_1543503880(result_1543504108, 0, board_1543504106, p_1543504107.tile, shooterFactory_1560281208(i_1543504113, j_1543504118)); - res_1845497535 = addInt(res_1845497535, 1); + res_1845500337 = addInt(res_1845500337, 1); } }; }; - res_1845497537 = addInt(res_1845497537, 1); + res_1845500339 = addInt(res_1845500339, 1); } }; }; @@ -3746,10 +3747,10 @@ function HEX3Aanonymous_1543504105(board_1543504106, p_1543504107) { function HEX3Aanonymous_1543504291(board_1543504292, p_1543504293) { var result_1543504294 = [[]]; - add_1476395537(result_1543504294, 0, lineTakes_1543504059(board_1543504292, p_1543504293, shooterFactory_1560281208(1, 1), false, false)); - add_1476395537(result_1543504294, 0, lineTakes_1543504059(board_1543504292, p_1543504293, shooterFactory_1560281208((-1), 1), false, false)); - add_1476395537(result_1543504294, 0, lineTakes_1543504059(board_1543504292, p_1543504293, shooterFactory_1560281208(1, (-1)), false, false)); - add_1476395537(result_1543504294, 0, lineTakes_1543504059(board_1543504292, p_1543504293, shooterFactory_1560281208((-1), (-1)), false, false)); + add_1476395538(result_1543504294, 0, lineTakes_1543504059(board_1543504292, p_1543504293, shooterFactory_1560281208(1, 1), false, false)); + add_1476395538(result_1543504294, 0, lineTakes_1543504059(board_1543504292, p_1543504293, shooterFactory_1560281208((-1), 1), false, false)); + add_1476395538(result_1543504294, 0, lineTakes_1543504059(board_1543504292, p_1543504293, shooterFactory_1560281208(1, (-1)), false, false)); + add_1476395538(result_1543504294, 0, lineTakes_1543504059(board_1543504292, p_1543504293, shooterFactory_1560281208((-1), (-1)), false, false)); return result_1543504294[0]; @@ -3758,10 +3759,10 @@ function HEX3Aanonymous_1543504291(board_1543504292, p_1543504293) { function HEX3Aanonymous_1543504249(board_1543504250, p_1543504251) { var result_1543504252 = [[]]; - add_1476395537(result_1543504252, 0, lineTakes_1543504059(board_1543504250, p_1543504251, tileAbove_1560281230, false, false)); - add_1476395537(result_1543504252, 0, lineTakes_1543504059(board_1543504250, p_1543504251, tileBelow_1560281233, false, false)); - add_1476395537(result_1543504252, 0, lineTakes_1543504059(board_1543504250, p_1543504251, tileLeft_1560281236, false, false)); - add_1476395537(result_1543504252, 0, lineTakes_1543504059(board_1543504250, p_1543504251, tileRight_1560281239, false, false)); + add_1476395538(result_1543504252, 0, lineTakes_1543504059(board_1543504250, p_1543504251, tileAbove_1560281230, false, false)); + add_1476395538(result_1543504252, 0, lineTakes_1543504059(board_1543504250, p_1543504251, tileBelow_1560281233, false, false)); + add_1476395538(result_1543504252, 0, lineTakes_1543504059(board_1543504250, p_1543504251, tileLeft_1560281236, false, false)); + add_1476395538(result_1543504252, 0, lineTakes_1543504059(board_1543504250, p_1543504251, tileRight_1560281239, false, false)); return result_1543504252[0]; @@ -3772,24 +3773,24 @@ function HEX3Aanonymous_1543504120(board_1543504121, p_1543504122) { Label1: { var i_1543504128 = 0; - var res_1845497543 = (-1); + var res_1845500345 = (-1); Label2: { Label3: while (true) { - if (!(res_1845497543 <= 1)) break Label3; - i_1543504128 = res_1845497543; + if (!(res_1845500345 <= 1)) break Label3; + i_1543504128 = res_1845500345; Label4: { var j_1543504133 = 0; - var res_1845497541 = (-1); + var res_1845500343 = (-1); Label5: { Label6: while (true) { - if (!(res_1845497541 <= 1)) break Label6; - j_1543504133 = res_1845497541; + if (!(res_1845500343 <= 1)) break Label6; + j_1543504133 = res_1845500343; var _ = addIfTake_1543503979(result_1543504123, 0, board_1543504121, p_1543504122, p_1543504122.tile, shooterFactory_1560281208(i_1543504128, j_1543504133), false, false); - res_1845497541 = addInt(res_1845497541, 1); + res_1845500343 = addInt(res_1845500343, 1); } }; }; - res_1845497543 = addInt(res_1845497543, 1); + res_1845500345 = addInt(res_1845500345, 1); } }; }; @@ -3798,24 +3799,24 @@ function HEX3Aanonymous_1543504120(board_1543504121, p_1543504122) { } -function pieceMove_1476395819(p_1476395820, t_1476395821, board_1476395822, state_1476395823) { - pieceMove_1476395795(p_1476395820, t_1476395821.Field1, t_1476395821.Field0, board_1476395822, state_1476395823); +function pieceMove_1476395820(p_1476395821, t_1476395822, board_1476395823, state_1476395824) { + pieceMove_1476395796(p_1476395821, t_1476395822.Field1, t_1476395822.Field0, board_1476395823, state_1476395824); } -function HEX3Aanonymous_1476395870(piece_1476395871, to_1476395872, b_1476395873, state_1476395874) { - piece_1476395871.timesMoved = addInt(piece_1476395871.timesMoved, 1); - pieceMove_1476395819(piece_1476395871, to_1476395872, b_1476395873, state_1476395874); +function HEX3Aanonymous_1476395871(piece_1476395872, to_1476395873, b_1476395874, state_1476395875) { + piece_1476395872.timesMoved = addInt(piece_1476395872.timesMoved, 1); + pieceMove_1476395820(piece_1476395872, to_1476395873, b_1476395874, state_1476395875); } -function HEX3Aanonymous_1476395881(piece_1476395882, taking_1476395883, board_1476395884, state_1476395885) { - piece_1476395882.timesMoved = addInt(piece_1476395882.timesMoved, 1); - var takeResult_1476395891 = board_1476395884[chckIndx(taking_1476395883.Field1, 0, (board_1476395884).length - 1)][chckIndx(taking_1476395883.Field0, 0, (board_1476395884[chckIndx(taking_1476395883.Field1, 0, (board_1476395884).length - 1)]).length - 1)].whenTaken(board_1476395884[chckIndx(taking_1476395883.Field1, 0, (board_1476395884).length - 1)][chckIndx(taking_1476395883.Field0, 0, (board_1476395884[chckIndx(taking_1476395883.Field1, 0, (board_1476395884).length - 1)]).length - 1)], piece_1476395882, board_1476395884, state_1476395885); - if (takeResult_1476395891.Field1) { - board_1476395884[chckIndx(takeResult_1476395891.Field0.Field1, 0, (board_1476395884).length - 1)][chckIndx(takeResult_1476395891.Field0.Field0, 0, (board_1476395884[chckIndx(takeResult_1476395891.Field0.Field1, 0, (board_1476395884).length - 1)]).length - 1)].piecesTaken = addInt(board_1476395884[chckIndx(takeResult_1476395891.Field0.Field1, 0, (board_1476395884).length - 1)][chckIndx(takeResult_1476395891.Field0.Field0, 0, (board_1476395884[chckIndx(takeResult_1476395891.Field0.Field1, 0, (board_1476395884).length - 1)]).length - 1)].piecesTaken, 1); +function HEX3Aanonymous_1476395882(piece_1476395883, taking_1476395884, board_1476395885, state_1476395886) { + piece_1476395883.timesMoved = addInt(piece_1476395883.timesMoved, 1); + var takeResult_1476395892 = board_1476395885[chckIndx(taking_1476395884.Field1, 0, (board_1476395885).length - 1)][chckIndx(taking_1476395884.Field0, 0, (board_1476395885[chckIndx(taking_1476395884.Field1, 0, (board_1476395885).length - 1)]).length - 1)].whenTaken(board_1476395885[chckIndx(taking_1476395884.Field1, 0, (board_1476395885).length - 1)][chckIndx(taking_1476395884.Field0, 0, (board_1476395885[chckIndx(taking_1476395884.Field1, 0, (board_1476395885).length - 1)]).length - 1)], piece_1476395883, board_1476395885, state_1476395886); + if (takeResult_1476395892.Field1) { + board_1476395885[chckIndx(takeResult_1476395892.Field0.Field1, 0, (board_1476395885).length - 1)][chckIndx(takeResult_1476395892.Field0.Field0, 0, (board_1476395885[chckIndx(takeResult_1476395892.Field0.Field1, 0, (board_1476395885).length - 1)]).length - 1)].piecesTaken = addInt(board_1476395885[chckIndx(takeResult_1476395892.Field0.Field1, 0, (board_1476395885).length - 1)][chckIndx(takeResult_1476395892.Field0.Field0, 0, (board_1476395885[chckIndx(takeResult_1476395892.Field0.Field1, 0, (board_1476395885).length - 1)]).length - 1)].piecesTaken, 1); } @@ -3827,34 +3828,34 @@ function HEX3Aanonymous_1845494783(side_1845494784, viewSide_1845494785, b_18454 var i_1845494788 = 0; var j_1845494789 = 0; Label2: { - var i_1845497525 = 0; - var i_1845497526 = 0; + var i_1845500327 = 0; + var i_1845500328 = 0; Label3: { Label4: while (true) { - if (!(i_1845497526 < 8)) break Label4; - i_1845497525 = i_1845497526; + if (!(i_1845500328 < 8)) break Label4; + i_1845500327 = i_1845500328; Label5: { - var j_1845497529 = 0; - var i_1845497530 = 0; + var j_1845500331 = 0; + var i_1845500332 = 0; Label6: { Label7: while (true) { - if (!(i_1845497530 < 8)) break Label7; - j_1845497529 = i_1845497530; - i_1845494788 = i_1845497525; - j_1845494789 = j_1845497529; - if (((b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].item == 0) && isColor_1476396052(b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)], side_1845494784))) { - b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)] = nimCopy(b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)], pieceCopy_1476395899(whiteQueen_1526726796, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].index, 0, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].color, 0, 0, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].tile, whiteQueen_1526726796.moves, whiteQueen_1526726796.takes, HEX3Aanonymous_1476395870, HEX3Aanonymous_1476395881, HEX3Aanonymous_1476395843, whiteQueen_1526726796.onEndTurn, whiteQueen_1526726796.onPromote, false, [113,117,101,101,110,46,115,118,103], true, true, false), NTI1476395034); + if (!(i_1845500332 < 8)) break Label7; + j_1845500331 = i_1845500332; + i_1845494788 = i_1845500327; + j_1845494789 = j_1845500331; + if (((b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].item == 0) && isColor_1476396053(b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)], side_1845494784))) { + b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)] = nimCopy(b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)], pieceCopy_1476395900(whiteQueen_1526726796, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].index, 0, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].color, 0, 0, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].tile, whiteQueen_1526726796.moves, whiteQueen_1526726796.takes, HEX3Aanonymous_1476395871, HEX3Aanonymous_1476395882, HEX3Aanonymous_1476395844, whiteQueen_1526726796.onEndTurn, whiteQueen_1526726796.onPromote, false, [113,117,101,101,110,46,115,118,103], true, true, false), NTI1476395034); } else { - if (((b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].item == 2) && isColor_1476396052(b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)], side_1845494784))) { - b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)] = nimCopy(b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)], pieceCopy_1476395899(air_1526726831, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); + if (((b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].item == 2) && isColor_1476396053(b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)], side_1845494784))) { + b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)] = nimCopy(b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)][chckIndx(j_1845494789, 0, (b_1845494786[chckIndx(i_1845494788, 0, (b_1845494786).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } } - i_1845497530 = addInt(i_1845497530, 1); + i_1845500332 = addInt(i_1845500332, 1); } }; }; - i_1845497526 = addInt(i_1845497526, 1); + i_1845500328 = addInt(i_1845500328, 1); } }; }; @@ -3878,31 +3879,31 @@ function HEX3Aanonymous_1845494922(side_1845494923, viewSide_1845494924, b_18454 var i_1845494932 = 0; var j_1845494933 = 0; Label3: { - var i_1845497547 = 0; - var i_1845497548 = 0; + var i_1845500349 = 0; + var i_1845500350 = 0; Label4: { Label5: while (true) { - if (!(i_1845497548 < 8)) break Label5; - i_1845497547 = i_1845497548; + if (!(i_1845500350 < 8)) break Label5; + i_1845500349 = i_1845500350; Label6: { - var j_1845497551 = 0; - var i_1845497552 = 0; + var j_1845500353 = 0; + var i_1845500354 = 0; Label7: { Label8: while (true) { - if (!(i_1845497552 < 8)) break Label8; - j_1845497551 = i_1845497552; - i_1845494932 = i_1845497547; - j_1845494933 = j_1845497551; - if ((((b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)].item == 5) && isColor_1476396052(b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)], side_1845494923)) && (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)].timesMoved == 0))) { + if (!(i_1845500354 < 8)) break Label8; + j_1845500353 = i_1845500354; + i_1845494932 = i_1845500349; + j_1845494933 = j_1845500353; + if ((((b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)].item == 5) && isColor_1476396053(b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)], side_1845494923)) && (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)].timesMoved == 0))) { b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)].timesMoved = addInt(b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)].timesMoved, 1); - pieceMove_1476395795(b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)], addInt(i_1845494932, offset_1845494931), j_1845494933, b_1845494925, s_1845494926); + pieceMove_1476395796(b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)][chckIndx(j_1845494933, 0, (b_1845494925[chckIndx(i_1845494932, 0, (b_1845494925).length - 1)]).length - 1)], addInt(i_1845494932, offset_1845494931), j_1845494933, b_1845494925, s_1845494926); } - i_1845497552 = addInt(i_1845497552, 1); + i_1845500354 = addInt(i_1845500354, 1); } }; }; - i_1845497548 = addInt(i_1845497548, 1); + i_1845500350 = addInt(i_1845500350, 1); } }; }; @@ -3914,14 +3915,14 @@ function HEX3Aanonymous_1845494922(side_1845494923, viewSide_1845494924, b_18454 function HEX3Aanonymous_1862271227(board_1862271228, p_1862271229) { var result_1862271230 = [[]]; - add_1476395537(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208(1, 2))); - add_1476395537(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208((-1), 2))); - add_1476395537(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208(2, 1))); - add_1476395537(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208(2, (-1)))); - add_1476395537(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208(1, (-2)))); - add_1476395537(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208((-1), (-2)))); - add_1476395537(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208((-2), 1))); - add_1476395537(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208((-2), (-1)))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208(1, 2))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208((-1), 2))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208(2, 1))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208(2, (-1)))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208(1, (-2)))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208((-1), (-2)))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208((-2), 1))); + add_1476395538(result_1862271230, 0, lineMoves_1543504053(board_1862271228, p_1862271229, shooterFactory_1560281208((-2), (-1)))); return result_1862271230[0]; @@ -3930,14 +3931,14 @@ function HEX3Aanonymous_1862271227(board_1862271228, p_1862271229) { function HEX3Aanonymous_1862271190(board_1862271191, p_1862271192) { var result_1862271193 = [[]]; - add_1476395537(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208(1, 2), false, true)); - add_1476395537(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208((-1), 2), false, true)); - add_1476395537(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208(2, 1), false, true)); - add_1476395537(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208(2, (-1)), false, true)); - add_1476395537(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208(1, (-2)), false, true)); - add_1476395537(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208((-1), (-2)), false, true)); - add_1476395537(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208((-2), 1), false, true)); - add_1476395537(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208((-2), (-1)), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208(1, 2), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208((-1), 2), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208(2, 1), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208(2, (-1)), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208(1, (-2)), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208((-1), (-2)), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208((-2), 1), false, true)); + add_1476395538(result_1862271193, 0, lineTakes_1543504059(board_1862271191, p_1862271192, shooterFactory_1560281208((-2), (-1)), false, true)); return result_1862271193[0]; @@ -3948,33 +3949,33 @@ function HEX3Aanonymous_1845495035(side_1845495036, viewSide_1845495037, b_18454 var i_1845495040 = 0; var j_1845495041 = 0; Label2: { - var i_1845497556 = 0; - var i_1845497557 = 0; + var i_1845500358 = 0; + var i_1845500359 = 0; Label3: { Label4: while (true) { - if (!(i_1845497557 < 8)) break Label4; - i_1845497556 = i_1845497557; + if (!(i_1845500359 < 8)) break Label4; + i_1845500358 = i_1845500359; Label5: { - var j_1845497560 = 0; - var i_1845497561 = 0; + var j_1845500362 = 0; + var i_1845500363 = 0; Label6: { Label7: while (true) { - if (!(i_1845497561 < 8)) break Label7; - j_1845497560 = i_1845497561; - i_1845495040 = i_1845497556; - j_1845495041 = j_1845497560; - if (((b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)].item == 5) && isColor_1476396052(b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)], side_1845495036))) { + if (!(i_1845500363 < 8)) break Label7; + j_1845500362 = i_1845500363; + i_1845495040 = i_1845500358; + j_1845495041 = j_1845500362; + if (((b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)].item == 5) && isColor_1476396053(b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)], side_1845495036))) { b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)].moves.push(HEX3Aanonymous_1862271227);; b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)].takes.push(HEX3Aanonymous_1862271190);; b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)].item = 7; b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)][chckIndx(j_1845495041, 0, (b_1845495038[chckIndx(i_1845495040, 0, (b_1845495038).length - 1)]).length - 1)].filePath = nimCopy(null, [110,105,103,104,116,114,105,100,101,114,46,115,118,103], NTI33554449); } - i_1845497561 = addInt(i_1845497561, 1); + i_1845500363 = addInt(i_1845500363, 1); } }; }; - i_1845497557 = addInt(i_1845497557, 1); + i_1845500359 = addInt(i_1845500359, 1); } }; }; @@ -3991,7 +3992,7 @@ function HEX3Aanonymous_1845495055(side_1845495056, viewSide_1845495057, b_18454 function HEX3Aanonymous_1526726832(piece_1526726833, board_1526726834, state_1526726835) { var HEX3Atmp_1526726836 = nimCopy(null, state_1526726835.Field1[chckIndx(piece_1526726833.color, 0, (state_1526726835.Field1).length - 1)].dna[chckIndx(1, 0, (state_1526726835.Field1[chckIndx(piece_1526726833.color, 0, (state_1526726835.Field1).length - 1)].dna).length - 1)], NTI1476395034); - piece_1526726833 = nimCopy(piece_1526726833, pieceCopy_1476395899(HEX3Atmp_1526726836, piece_1526726833.index, HEX3Atmp_1526726836.item, piece_1526726833.color, piece_1526726833.timesMoved, piece_1526726833.piecesTaken, piece_1526726833.tile, HEX3Atmp_1526726836.moves, HEX3Atmp_1526726836.takes, HEX3Atmp_1526726836.onMove, HEX3Atmp_1526726836.onTake, HEX3Atmp_1526726836.whenTaken, HEX3Atmp_1526726836.onEndTurn, HEX3Atmp_1526726836.onPromote, true, [113,117,101,101,110,46,115,118,103], HEX3Atmp_1526726836.colorable, HEX3Atmp_1526726836.rotate, HEX3Atmp_1526726836.drunk), NTI1476395034); + piece_1526726833 = nimCopy(piece_1526726833, pieceCopy_1476395900(HEX3Atmp_1526726836, piece_1526726833.index, HEX3Atmp_1526726836.item, piece_1526726833.color, piece_1526726833.timesMoved, piece_1526726833.piecesTaken, piece_1526726833.tile, HEX3Atmp_1526726836.moves, HEX3Atmp_1526726836.takes, HEX3Atmp_1526726836.onMove, HEX3Atmp_1526726836.onTake, HEX3Atmp_1526726836.whenTaken, HEX3Atmp_1526726836.onEndTurn, HEX3Atmp_1526726836.onPromote, true, [113,117,101,101,110,46,115,118,103], HEX3Atmp_1526726836.colorable, HEX3Atmp_1526726836.rotate, HEX3Atmp_1526726836.drunk), NTI1476395034); } @@ -4000,23 +4001,23 @@ function HEX3Aanonymous_1845495096(taken_1845495097, taker_1845495098, board_184 var result_1845495103 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; BeforeRet: { - if ((((((taker_1845495098.item == 0) && (taken_1845495097.item == 4)) && sameColor_1476396043(taken_1845495097, taker_1845495098)) && (taker_1845495098.timesMoved == 1)) && (taken_1845495097.timesMoved == 0))) { + if ((((((taker_1845495098.item == 0) && (taken_1845495097.item == 4)) && sameColor_1476396044(taken_1845495097, taker_1845495098)) && (taker_1845495098.timesMoved == 1)) && (taken_1845495097.timesMoved == 0))) { state_1845495100.Field1[chckIndx(taken_1845495097.color, 0, (state_1845495100.Field1).length - 1)].hasCastled = true; Label1: { var xHEX60gensym54_1845495116 = null; - var i_1845497564 = 0; - var L_1845497565 = (taken_1845495097.onPromote).length; + var i_1845500366 = 0; + var L_1845500367 = (taken_1845495097.onPromote).length; Label2: { Label3: while (true) { - if (!(i_1845497564 < L_1845497565)) break Label3; - xHEX60gensym54_1845495116 = taken_1845495097.onPromote[chckIndx(i_1845497564, 0, (taken_1845495097.onPromote).length - 1)]; + if (!(i_1845500366 < L_1845500367)) break Label3; + xHEX60gensym54_1845495116 = taken_1845495097.onPromote[chckIndx(i_1845500366, 0, (taken_1845495097.onPromote).length - 1)]; xHEX60gensym54_1845495116(taken_1845495097, board_1845495099, state_1845495100); if (taken_1845495097.promoted) { break Label1; } - i_1845497564 += 1; - if (!(((taken_1845495097.onPromote).length == L_1845497565))) { + i_1845500366 += 1; + if (!(((taken_1845495097.onPromote).length == L_1845500367))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -4025,25 +4026,25 @@ function HEX3Aanonymous_1845495096(taken_1845495097, taker_1845495098, board_184 }; var kingTile_1845495117 = nimCopy(null, taker_1845495098.tile, NTI1476395011); if ((taken_1845495097.tile.Field0 == 0)) { - pieceMove_1476395795(taker_1845495098, kingTile_1845495117.Field1, subInt(kingTile_1845495117.Field0, 2), board_1845495099, state_1845495100); - pieceMove_1476395795(taken_1845495097, kingTile_1845495117.Field1, subInt(kingTile_1845495117.Field0, 1), board_1845495099, state_1845495100); - var colontmp__1845497567 = {Field0: subInt(kingTile_1845495117.Field0, 1), Field1: kingTile_1845495117.Field1}; - var colontmp__1845497568 = false; - result_1845495103 = nimCopy(result_1845495103, {Field0: nimCopy(null, colontmp__1845497567, NTI1476395011), Field1: colontmp__1845497568}, NTI1845495013); + pieceMove_1476395796(taker_1845495098, kingTile_1845495117.Field1, subInt(kingTile_1845495117.Field0, 2), board_1845495099, state_1845495100); + pieceMove_1476395796(taken_1845495097, kingTile_1845495117.Field1, subInt(kingTile_1845495117.Field0, 1), board_1845495099, state_1845495100); + var colontmp__1845500369 = {Field0: subInt(kingTile_1845495117.Field0, 1), Field1: kingTile_1845495117.Field1}; + var colontmp__1845500370 = false; + result_1845495103 = nimCopy(result_1845495103, {Field0: nimCopy(null, colontmp__1845500369, NTI1476395011), Field1: colontmp__1845500370}, NTI1845495013); break BeforeRet; } else { - pieceMove_1476395795(taker_1845495098, kingTile_1845495117.Field1, addInt(kingTile_1845495117.Field0, 2), board_1845495099, state_1845495100); - pieceMove_1476395795(taken_1845495097, kingTile_1845495117.Field1, addInt(kingTile_1845495117.Field0, 1), board_1845495099, state_1845495100); - var colontmp__1845497569 = {Field0: addInt(kingTile_1845495117.Field0, 1), Field1: kingTile_1845495117.Field1}; - var colontmp__1845497570 = false; - result_1845495103 = nimCopy(result_1845495103, {Field0: nimCopy(null, colontmp__1845497569, NTI1476395011), Field1: colontmp__1845497570}, NTI1845495013); + pieceMove_1476395796(taker_1845495098, kingTile_1845495117.Field1, addInt(kingTile_1845495117.Field0, 2), board_1845495099, state_1845495100); + pieceMove_1476395796(taken_1845495097, kingTile_1845495117.Field1, addInt(kingTile_1845495117.Field0, 1), board_1845495099, state_1845495100); + var colontmp__1845500371 = {Field0: addInt(kingTile_1845495117.Field0, 1), Field1: kingTile_1845495117.Field1}; + var colontmp__1845500372 = false; + result_1845495103 = nimCopy(result_1845495103, {Field0: nimCopy(null, colontmp__1845500371, NTI1476395011), Field1: colontmp__1845500372}, NTI1845495013); break BeforeRet; } } else { - result_1845495103 = nimCopy(result_1845495103, HEX3Aanonymous_1476395843(taken_1845495097, taker_1845495098, board_1845495099, state_1845495100), NTI1845495013); + result_1845495103 = nimCopy(result_1845495103, HEX3Aanonymous_1476395844(taken_1845495097, taker_1845495098, board_1845495099, state_1845495100), NTI1845495013); break BeforeRet; } @@ -4059,15 +4060,15 @@ function HEX3Aanonymous_1845495121(side_1845495122, __1845495123, b_1845495124, } -function HEX5BHEX5D_1476395363(b_1476395364, tile_1476395365) { - var result_1476395366 = null; +function HEX5BHEX5D_1476395364(b_1476395365, tile_1476395366) { + var result_1476395367 = null; BeforeRet: { - result_1476395366 = b_1476395364[chckIndx(tile_1476395365.Field1, 0, (b_1476395364).length - 1)][chckIndx(tile_1476395365.Field0, 0, (b_1476395364[chckIndx(tile_1476395365.Field1, 0, (b_1476395364).length - 1)]).length - 1)]; + result_1476395367 = b_1476395365[chckIndx(tile_1476395366.Field1, 0, (b_1476395365).length - 1)][chckIndx(tile_1476395366.Field0, 0, (b_1476395365[chckIndx(tile_1476395366.Field1, 0, (b_1476395365).length - 1)]).length - 1)]; break BeforeRet; }; - return result_1476395366; + return result_1476395367; } @@ -4077,20 +4078,20 @@ function raiseDivByZero() { } -function applyTransforms_1476395990(piece_1476395991, board_1476395992, state_1476395993) { +function applyTransforms_1476395991(piece_1476395992, board_1476395993, state_1476395994) { Label1: { - var t_1476396016 = null; - var colontmp__1845497572 = []; - colontmp__1845497572 = state_1476395993.Field1[chckIndx(piece_1476395991.color, 0, (state_1476395993.Field1).length - 1)].transforms[chckIndx(piece_1476395991.item, 0, (state_1476395993.Field1[chckIndx(piece_1476395991.color, 0, (state_1476395993.Field1).length - 1)].transforms).length - 1)]; - var i_1845497573 = 0; - var L_1845497574 = (colontmp__1845497572).length; + var t_1476396017 = null; + var colontmp__1845500374 = []; + colontmp__1845500374 = state_1476395994.Field1[chckIndx(piece_1476395992.color, 0, (state_1476395994.Field1).length - 1)].transforms[chckIndx(piece_1476395992.item, 0, (state_1476395994.Field1[chckIndx(piece_1476395992.color, 0, (state_1476395994.Field1).length - 1)].transforms).length - 1)]; + var i_1845500375 = 0; + var L_1845500376 = (colontmp__1845500374).length; Label2: { Label3: while (true) { - if (!(i_1845497573 < L_1845497574)) break Label3; - t_1476396016 = colontmp__1845497572[chckIndx(i_1845497573, 0, (colontmp__1845497572).length - 1)]; - t_1476396016(piece_1476395991, board_1476395992, state_1476395993); - i_1845497573 += 1; - if (!(((colontmp__1845497572).length == L_1845497574))) { + if (!(i_1845500375 < L_1845500376)) break Label3; + t_1476396017 = colontmp__1845500374[chckIndx(i_1845500375, 0, (colontmp__1845500374).length - 1)]; + t_1476396017(piece_1476395992, board_1476395993, state_1476395994); + i_1845500375 += 1; + if (!(((colontmp__1845500374).length == L_1845500376))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -4104,13 +4105,13 @@ function applyTransforms_1476395990(piece_1476395991, board_1476395992, state_14 function HEX3Aanonymous_1845495131(piece_1845495132, to_1845495133, board_1845495134, state_1845495135) { var takeResults_1845495136 = board_1845495134[chckIndx(to_1845495133.Field1, 0, (board_1845495134).length - 1)][chckIndx(to_1845495133.Field0, 0, (board_1845495134[chckIndx(to_1845495133.Field1, 0, (board_1845495134).length - 1)]).length - 1)].whenTaken(board_1845495134[chckIndx(to_1845495133.Field1, 0, (board_1845495134).length - 1)][chckIndx(to_1845495133.Field0, 0, (board_1845495134[chckIndx(to_1845495133.Field1, 0, (board_1845495134).length - 1)]).length - 1)], piece_1845495132, board_1845495134, state_1845495135); var originalRookTile_1845495137 = nimCopy(null, piece_1845495132.tile, NTI1476395011); - HEX5BHEX5D_1476395363(board_1845495134, takeResults_1845495136.Field0).timesMoved = addInt(HEX5BHEX5D_1476395363(board_1845495134, takeResults_1845495136.Field0).timesMoved, 1); + HEX5BHEX5D_1476395364(board_1845495134, takeResults_1845495136.Field0).timesMoved = addInt(HEX5BHEX5D_1476395364(board_1845495134, takeResults_1845495136.Field0).timesMoved, 1); if (takeResults_1845495136.Field1) { - HEX5BHEX5D_1476395363(board_1845495134, takeResults_1845495136.Field0).piecesTaken = addInt(HEX5BHEX5D_1476395363(board_1845495134, takeResults_1845495136.Field0).piecesTaken, 1); - if ((modInt(HEX5BHEX5D_1476395363(board_1845495134, takeResults_1845495136.Field0).piecesTaken, 2) == 0)) { + HEX5BHEX5D_1476395364(board_1845495134, takeResults_1845495136.Field0).piecesTaken = addInt(HEX5BHEX5D_1476395364(board_1845495134, takeResults_1845495136.Field0).piecesTaken, 1); + if ((modInt(HEX5BHEX5D_1476395364(board_1845495134, takeResults_1845495136.Field0).piecesTaken, 2) == 0)) { var HEX3Atmp_1845495146 = nimCopy(null, state_1845495135.Field1[chckIndx(piece_1845495132.color, 0, (state_1845495135.Field1).length - 1)].dna[chckIndx(3, 0, (state_1845495135.Field1[chckIndx(piece_1845495132.color, 0, (state_1845495135.Field1).length - 1)].dna).length - 1)], NTI1476395034); - HEX5BHEX5DHEX3D_1476395383(board_1845495134, originalRookTile_1845495137, pieceCopy_1476395899(HEX3Atmp_1845495146, newIndex_1476395494(state_1845495135), HEX3Atmp_1845495146.item, HEX3Atmp_1845495146.color, HEX3Atmp_1845495146.timesMoved, HEX3Atmp_1845495146.piecesTaken, originalRookTile_1845495137, HEX3Atmp_1845495146.moves, HEX3Atmp_1845495146.takes, HEX3Atmp_1845495146.onMove, HEX3Atmp_1845495146.onTake, HEX3Atmp_1845495146.whenTaken, HEX3Atmp_1845495146.onEndTurn, HEX3Atmp_1845495146.onPromote, HEX3Atmp_1845495146.promoted, HEX3Atmp_1845495146.filePath, HEX3Atmp_1845495146.colorable, HEX3Atmp_1845495146.rotate, HEX3Atmp_1845495146.drunk)); - applyTransforms_1476395990(HEX5BHEX5D_1476395363(board_1845495134, originalRookTile_1845495137), board_1845495134, state_1845495135); + HEX5BHEX5DHEX3D_1476395384(board_1845495134, originalRookTile_1845495137, pieceCopy_1476395900(HEX3Atmp_1845495146, newIndex_1476395495(state_1845495135), HEX3Atmp_1845495146.item, HEX3Atmp_1845495146.color, HEX3Atmp_1845495146.timesMoved, HEX3Atmp_1845495146.piecesTaken, originalRookTile_1845495137, HEX3Atmp_1845495146.moves, HEX3Atmp_1845495146.takes, HEX3Atmp_1845495146.onMove, HEX3Atmp_1845495146.onTake, HEX3Atmp_1845495146.whenTaken, HEX3Atmp_1845495146.onEndTurn, HEX3Atmp_1845495146.onPromote, HEX3Atmp_1845495146.promoted, HEX3Atmp_1845495146.filePath, HEX3Atmp_1845495146.colorable, HEX3Atmp_1845495146.rotate, HEX3Atmp_1845495146.drunk)); + applyTransforms_1476395991(HEX5BHEX5D_1476395364(board_1845495134, originalRookTile_1845495137), board_1845495134, state_1845495135); } } @@ -4145,8 +4146,8 @@ function HEX3Aanonymous_1862271279(board_1862271280, p_1862271281) { } -function pieceMove_1476395824(p_1476395825, t_1476395826, board_1476395827, state_1476395828) { - pieceMove_1476395795(board_1476395827[chckIndx(p_1476395825.Field1, 0, (board_1476395827).length - 1)][chckIndx(p_1476395825.Field0, 0, (board_1476395827[chckIndx(p_1476395825.Field1, 0, (board_1476395827).length - 1)]).length - 1)], t_1476395826.Field1, t_1476395826.Field0, board_1476395827, state_1476395828); +function pieceMove_1476395825(p_1476395826, t_1476395827, board_1476395828, state_1476395829) { + pieceMove_1476395796(board_1476395828[chckIndx(p_1476395826.Field1, 0, (board_1476395828).length - 1)][chckIndx(p_1476395826.Field0, 0, (board_1476395828[chckIndx(p_1476395826.Field1, 0, (board_1476395828).length - 1)]).length - 1)], t_1476395827.Field1, t_1476395827.Field0, board_1476395828, state_1476395829); } @@ -4158,11 +4159,11 @@ function HEX3Aanonymous_1845495156(piece_1845495157, to_1845495158, board_184549 if (takeResult_1845495162.Field1) { piece_1845495157.piecesTaken = addInt(piece_1845495157.piecesTaken, 1); if ((addInt(originalKingTile_1845495161.Field1, 2) == takeResult_1845495162.Field0.Field1)) { - pieceMove_1476395824(takeResult_1845495162.Field0, originalKingTile_1845495161, board_1845495159, state_1845495160); + pieceMove_1476395825(takeResult_1845495162.Field0, originalKingTile_1845495161, board_1845495159, state_1845495160); } else { if ((subInt(originalKingTile_1845495161.Field1, 2) == takeResult_1845495162.Field0.Field1)) { - pieceMove_1476395824(takeResult_1845495162.Field0, originalKingTile_1845495161, board_1845495159, state_1845495160); + pieceMove_1476395825(takeResult_1845495162.Field0, originalKingTile_1845495161, board_1845495159, state_1845495160); } } } @@ -4182,34 +4183,34 @@ function HEX3Aanonymous_1845495218(side_1845495219, __1845495220, b_1845495221, var i_1845495223 = 0; var j_1845495224 = 0; Label2: { - var i_1845497578 = 0; - var i_1845497579 = 0; + var i_1845500380 = 0; + var i_1845500381 = 0; Label3: { Label4: while (true) { - if (!(i_1845497579 < 8)) break Label4; - i_1845497578 = i_1845497579; + if (!(i_1845500381 < 8)) break Label4; + i_1845500380 = i_1845500381; Label5: { - var j_1845497582 = 0; - var i_1845497583 = 0; + var j_1845500384 = 0; + var i_1845500385 = 0; Label6: { Label7: while (true) { - if (!(i_1845497583 < 8)) break Label7; - j_1845497582 = i_1845497583; - i_1845495223 = i_1845497578; - j_1845495224 = j_1845497582; - if (((b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)].item == 0) && isColor_1476396052(b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)], side_1845495219))) { + if (!(i_1845500385 < 8)) break Label7; + j_1845500384 = i_1845500385; + i_1845495223 = i_1845500380; + j_1845495224 = j_1845500384; + if (((b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)].item == 0) && isColor_1476396053(b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)], side_1845495219))) { if ((b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)].timesMoved == 0)) { b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)].timesMoved = addInt(b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)].timesMoved, 1); - pieceSwap_1476395834(b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)], b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(addInt(j_1845495224, 2), 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)], b_1845495221); + pieceSwap_1476395835(b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(j_1845495224, 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)], b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)][chckIndx(addInt(j_1845495224, 2), 0, (b_1845495221[chckIndx(i_1845495223, 0, (b_1845495221).length - 1)]).length - 1)], b_1845495221); } } - i_1845497583 = addInt(i_1845497583, 1); + i_1845500385 = addInt(i_1845500385, 1); } }; }; - i_1845497579 = addInt(i_1845497579, 1); + i_1845500381 = addInt(i_1845500381, 1); } }; }; @@ -4221,7 +4222,7 @@ function HEX3Aanonymous_1845495218(side_1845495219, __1845495220, b_1845495221, function HEX3Aanonymous_1862271308(board_1862271309, p_1862271310) { var result_1862271311 = [[]]; - add_1476395537(result_1862271311, 0, lineMoves_1543504053(board_1862271309, p_1862271310, tileBelow_1560281233)); + add_1476395538(result_1862271311, 0, lineMoves_1543504053(board_1862271309, p_1862271310, tileBelow_1560281233)); return result_1862271311[0]; @@ -4230,7 +4231,7 @@ function HEX3Aanonymous_1862271308(board_1862271309, p_1862271310) { function HEX3Aanonymous_1862271326(board_1862271327, p_1862271328) { var result_1862271329 = [[]]; - add_1476395537(result_1862271329, 0, lineTakes_1543504059(board_1862271327, p_1862271328, tileBelow_1560281233, false, false)); + add_1476395538(result_1862271329, 0, lineTakes_1543504059(board_1862271327, p_1862271328, tileBelow_1560281233, false, false)); return result_1862271329[0]; @@ -4239,7 +4240,7 @@ function HEX3Aanonymous_1862271326(board_1862271327, p_1862271328) { function HEX3Aanonymous_1862271299(board_1862271300, p_1862271301) { var result_1862271302 = [[]]; - add_1476395537(result_1862271302, 0, lineMoves_1543504053(board_1862271300, p_1862271301, tileAbove_1560281230)); + add_1476395538(result_1862271302, 0, lineMoves_1543504053(board_1862271300, p_1862271301, tileAbove_1560281230)); return result_1862271302[0]; @@ -4248,29 +4249,29 @@ function HEX3Aanonymous_1862271299(board_1862271300, p_1862271301) { function HEX3Aanonymous_1862271317(board_1862271318, p_1862271319) { var result_1862271320 = [[]]; - add_1476395537(result_1862271320, 0, lineTakes_1543504059(board_1862271318, p_1862271319, tileAbove_1560281230, false, false)); + add_1476395538(result_1862271320, 0, lineTakes_1543504059(board_1862271318, p_1862271319, tileAbove_1560281230, false, false)); return result_1862271320[0]; } function HEX3Aanonymous_1845495313(piece_1845495314, board_1845495315, state_1845495316) { - if ((isAtEnd_1476396237(piece_1845495314) && !(piece_1845495314.promoted))) { + if ((isAtEnd_1476396238(piece_1845495314) && !(piece_1845495314.promoted))) { Label1: { var xHEX60gensym61_1845495321 = null; - var i_1845497586 = 0; - var L_1845497587 = (piece_1845495314.onPromote).length; + var i_1845500388 = 0; + var L_1845500389 = (piece_1845495314.onPromote).length; Label2: { Label3: while (true) { - if (!(i_1845497586 < L_1845497587)) break Label3; - xHEX60gensym61_1845495321 = piece_1845495314.onPromote[chckIndx(i_1845497586, 0, (piece_1845495314.onPromote).length - 1)]; + if (!(i_1845500388 < L_1845500389)) break Label3; + xHEX60gensym61_1845495321 = piece_1845495314.onPromote[chckIndx(i_1845500388, 0, (piece_1845495314.onPromote).length - 1)]; xHEX60gensym61_1845495321(piece_1845495314, board_1845495315, state_1845495316); if (piece_1845495314.promoted) { break Label1; } - i_1845497586 += 1; - if (!(((piece_1845495314.onPromote).length == L_1845497587))) { + i_1845500388 += 1; + if (!(((piece_1845495314.onPromote).length == L_1845500389))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -4394,29 +4395,29 @@ function skipRandomNumbers_1644167212(s_1644167213) { var s1_1644167216 = 0; Label1: { var i_1644167225 = 0; - var res_1845497597 = 0; + var res_1845500399 = 0; Label2: { Label3: while (true) { - if (!(res_1845497597 <= 1)) break Label3; - i_1644167225 = res_1845497597; + if (!(res_1845500399 <= 1)) break Label3; + i_1644167225 = res_1845500399; Label4: { var b_1644167230 = 0; - var i_1845497595 = 0; + var i_1845500397 = 0; Label5: { Label6: while (true) { - if (!(i_1845497595 < 64)) break Label6; - b_1644167230 = i_1845497595; + if (!(i_1845500397 < 64)) break Label6; + b_1644167230 = i_1845500397; if (!((((helper_1644167214[chckIndx(i_1644167225, 0, (helper_1644167214).length - 1)] & ((1 << b_1644167230) >>> 0)) >>> 0) == 0))) { s0_1644167215 = ((s0_1644167215 ^ s_1644167213.a0) >>> 0); s1_1644167216 = ((s1_1644167216 ^ s_1644167213.a1) >>> 0); } var _ = next_1644167203(s_1644167213); - i_1845497595 = addInt(i_1845497595, 1); + i_1845500397 = addInt(i_1845500397, 1); } }; }; - res_1845497597 = addInt(res_1845497597, 1); + res_1845500399 = addInt(res_1845500399, 1); } }; }; @@ -4454,20 +4455,20 @@ function randomize_1644167430(seed_1644167431) { } -function getTakesOn_1476395510(p_1476395511, board_1476395512) { - var result_1476395513 = [[]]; +function getTakesOn_1476395511(p_1476395512, board_1476395513) { + var result_1476395514 = [[]]; Label1: { - var x_1476395536 = null; - var i_1845497600 = 0; - var L_1845497601 = (p_1476395511.takes).length; + var x_1476395537 = null; + var i_1845500402 = 0; + var L_1845500403 = (p_1476395512.takes).length; Label2: { Label3: while (true) { - if (!(i_1845497600 < L_1845497601)) break Label3; - x_1476395536 = p_1476395511.takes[chckIndx(i_1845497600, 0, (p_1476395511.takes).length - 1)]; - add_1476395537(result_1476395513, 0, x_1476395536(board_1476395512, p_1476395511)); - i_1845497600 += 1; - if (!(((p_1476395511.takes).length == L_1845497601))) { + if (!(i_1845500402 < L_1845500403)) break Label3; + x_1476395537 = p_1476395512.takes[chckIndx(i_1845500402, 0, (p_1476395512.takes).length - 1)]; + add_1476395538(result_1476395514, 0, x_1476395537(board_1476395513, p_1476395512)); + i_1845500402 += 1; + if (!(((p_1476395512.takes).length == L_1845500403))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -4475,69 +4476,69 @@ function getTakesOn_1476395510(p_1476395511, board_1476395512) { }; }; - return result_1476395513[0]; + return result_1476395514[0]; } -function HEX3DHEX3D_1476395684(x_1476395686, y_1476395687) { - var result_1476395688 = false; +function HEX3DHEX3D_1476395685(x_1476395687, y_1476395688) { + var result_1476395689 = false; BeforeRet: { - if (!((x_1476395686["Field0"] == y_1476395687["Field0"]))) { - result_1476395688 = false; + if (!((x_1476395687["Field0"] == y_1476395688["Field0"]))) { + result_1476395689 = false; break BeforeRet; } - if (!((x_1476395686["Field1"] == y_1476395687["Field1"]))) { - result_1476395688 = false; + if (!((x_1476395687["Field1"] == y_1476395688["Field1"]))) { + result_1476395689 = false; break BeforeRet; } - result_1476395688 = true; + result_1476395689 = true; break BeforeRet; }; - return result_1476395688; + return result_1476395689; } -function find_1476395665(a_1476395668, item_1476395669) { - var result_1476395670 = 0; +function find_1476395666(a_1476395669, item_1476395670) { + var result_1476395671 = 0; BeforeRet: { - result_1476395670 = 0; + result_1476395671 = 0; Label1: { - var i_1476395683 = {Field0: 0, Field1: 0}; - var i_1845497617 = 0; + var i_1476395684 = {Field0: 0, Field1: 0}; + var i_1845500419 = 0; Label2: { Label3: while (true) { - if (!(i_1845497617 < (a_1476395668).length)) break Label3; - i_1476395683 = a_1476395668[chckIndx(i_1845497617, 0, (a_1476395668).length - 1)]; - if (HEX3DHEX3D_1476395684(i_1476395683, item_1476395669)) { + if (!(i_1845500419 < (a_1476395669).length)) break Label3; + i_1476395684 = a_1476395669[chckIndx(i_1845500419, 0, (a_1476395669).length - 1)]; + if (HEX3DHEX3D_1476395685(i_1476395684, item_1476395670)) { break BeforeRet; } - result_1476395670 = addInt(result_1476395670, 1); - i_1845497617 += 1; + result_1476395671 = addInt(result_1476395671, 1); + i_1845500419 += 1; } }; }; - result_1476395670 = (-1); + result_1476395671 = (-1); }; - return result_1476395670; + return result_1476395671; } -function contains_1476395660(a_1476395662, item_1476395663) { - var result_1476395664 = false; +function contains_1476395661(a_1476395663, item_1476395664) { + var result_1476395665 = false; BeforeRet: { - result_1476395664 = (0 <= find_1476395665(a_1476395662, item_1476395663)); + result_1476395665 = (0 <= find_1476395666(a_1476395663, item_1476395664)); break BeforeRet; }; - return result_1476395664; + return result_1476395665; } @@ -4547,99 +4548,99 @@ function addQuoted_889193861(s_889193863, s_889193863_Idx, x_889193864) { } -function HEX24_1476395715(x_1476395717) { - var result_1476395718 = [[]]; +function HEX24_1476395716(x_1476395718) { + var result_1476395719 = [[]]; - result_1476395718[0] = nimCopy(null, [40], NTI33554449); - var countHEX60gensym5_1476395729 = 0; - if ((0 < countHEX60gensym5_1476395729)) { - result_1476395718[0].push.apply(result_1476395718[0], [44,32]);; + result_1476395719[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym5_1476395730 = 0; + if ((0 < countHEX60gensym5_1476395730)) { + result_1476395719[0].push.apply(result_1476395719[0], [44,32]);; } - result_1476395718[0].push.apply(result_1476395718[0], [102,105,108,101]);; - result_1476395718[0].push.apply(result_1476395718[0], [58,32]);; - countHEX60gensym5_1476395729 += 1; - addQuoted_889193861(result_1476395718, 0, x_1476395717["Field0"]); - if ((0 < countHEX60gensym5_1476395729)) { - result_1476395718[0].push.apply(result_1476395718[0], [44,32]);; + result_1476395719[0].push.apply(result_1476395719[0], [102,105,108,101]);; + result_1476395719[0].push.apply(result_1476395719[0], [58,32]);; + countHEX60gensym5_1476395730 += 1; + addQuoted_889193861(result_1476395719, 0, x_1476395718["Field0"]); + if ((0 < countHEX60gensym5_1476395730)) { + result_1476395719[0].push.apply(result_1476395719[0], [44,32]);; } - result_1476395718[0].push.apply(result_1476395718[0], [114,97,110,107]);; - result_1476395718[0].push.apply(result_1476395718[0], [58,32]);; - countHEX60gensym5_1476395729 += 1; - addQuoted_889193861(result_1476395718, 0, x_1476395717["Field1"]); - result_1476395718[0].push.apply(result_1476395718[0], [41]);; + result_1476395719[0].push.apply(result_1476395719[0], [114,97,110,107]);; + result_1476395719[0].push.apply(result_1476395719[0], [58,32]);; + countHEX60gensym5_1476395730 += 1; + addQuoted_889193861(result_1476395719, 0, x_1476395718["Field1"]); + result_1476395719[0].push.apply(result_1476395719[0], [41]);; - return result_1476395718[0]; + return result_1476395719[0]; } -function getMovesOn_1476395625(p_1476395626, board_1476395627) { - var result_1476395628 = [[]]; +function getMovesOn_1476395626(p_1476395627, board_1476395628) { + var result_1476395629 = [[]]; Label1: { - var x_1476395632 = null; - var i_1845497604 = 0; - var L_1845497605 = (p_1476395626.moves).length; + var x_1476395633 = null; + var i_1845500406 = 0; + var L_1845500407 = (p_1476395627.moves).length; Label2: { Label3: while (true) { - if (!(i_1845497604 < L_1845497605)) break Label3; - x_1476395632 = p_1476395626.moves[chckIndx(i_1845497604, 0, (p_1476395626.moves).length - 1)]; - add_1476395537(result_1476395628, 0, x_1476395632(board_1476395627, p_1476395626)); - i_1845497604 += 1; - if (!(((p_1476395626.moves).length == L_1845497605))) { + if (!(i_1845500406 < L_1845500407)) break Label3; + x_1476395633 = p_1476395627.moves[chckIndx(i_1845500406, 0, (p_1476395627.moves).length - 1)]; + add_1476395538(result_1476395629, 0, x_1476395633(board_1476395628, p_1476395627)); + i_1845500406 += 1; + if (!(((p_1476395627.moves).length == L_1845500407))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - var takes_1476395637 = getTakesOn_1476395510(p_1476395626, board_1476395627); + var takes_1476395638 = getTakesOn_1476395511(p_1476395627, board_1476395628); Label4: { - var x_1476395659 = {Field0: 0, Field1: 0}; - var i_1845497608 = 0; - var L_1845497609 = (takes_1476395637).length; + var x_1476395660 = {Field0: 0, Field1: 0}; + var i_1845500410 = 0; + var L_1845500411 = (takes_1476395638).length; Label5: { Label6: while (true) { - if (!(i_1845497608 < L_1845497609)) break Label6; - x_1476395659 = takes_1476395637[chckIndx(i_1845497608, 0, (takes_1476395637).length - 1)]; - if (contains_1476395660(result_1476395628[0], x_1476395659)) { - rawEcho(HEX24_1476395715(x_1476395659), [32,105,115,32,97,32,116,97,107,101,32,97,110,100,32,97,32,109,111,118,101]); + if (!(i_1845500410 < L_1845500411)) break Label6; + x_1476395660 = takes_1476395638[chckIndx(i_1845500410, 0, (takes_1476395638).length - 1)]; + if (contains_1476395661(result_1476395629[0], x_1476395660)) { + rawEcho(HEX24_1476395716(x_1476395660), [32,105,115,32,97,32,116,97,107,101,32,97,110,100,32,97,32,109,111,118,101]); } - i_1845497608 += 1; - if (!(((takes_1476395637).length == L_1845497609))) { + i_1845500410 += 1; + if (!(((takes_1476395638).length == L_1845500411))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - var resultHEX60gensym12_1476395766 = newSeq_1476395758(0); + var resultHEX60gensym12_1476395767 = newSeq_1476395759(0); Label7: { - var it_1476395770 = {Field0: 0, Field1: 0}; - var i_1845497612 = 0; - var L_1845497613 = (result_1476395628[0]).length; + var it_1476395771 = {Field0: 0, Field1: 0}; + var i_1845500414 = 0; + var L_1845500415 = (result_1476395629[0]).length; Label8: { Label9: while (true) { - if (!(i_1845497612 < L_1845497613)) break Label9; - it_1476395770 = result_1476395628[0][chckIndx(i_1845497612, 0, (result_1476395628[0]).length - 1)]; - if (!(contains_1476395660(takes_1476395637, it_1476395770))) { - var Temporary10 = nimCopy(null, it_1476395770, NTI1476395011); - resultHEX60gensym12_1476395766.push(Temporary10);; + if (!(i_1845500414 < L_1845500415)) break Label9; + it_1476395771 = result_1476395629[0][chckIndx(i_1845500414, 0, (result_1476395629[0]).length - 1)]; + if (!(contains_1476395661(takes_1476395638, it_1476395771))) { + var Temporary10 = nimCopy(null, it_1476395771, NTI1476395011); + resultHEX60gensym12_1476395767.push(Temporary10);; } - i_1845497612 += 1; - if (!(((result_1476395628[0]).length == L_1845497613))) { + i_1845500414 += 1; + if (!(((result_1476395629[0]).length == L_1845500415))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - result_1476395628[0] = nimCopy(null, resultHEX60gensym12_1476395766, NTI1476395581); + result_1476395629[0] = nimCopy(null, resultHEX60gensym12_1476395767, NTI1476395581); - return result_1476395628[0]; + return result_1476395629[0]; } @@ -4725,28 +4726,28 @@ function HEX3Aanonymous_1845495429(piece_1845495430, board_1845495431, state_184 if (!(piece_1845495430.drunk)) { piece_1845495430.drunk = true; randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845495430.tile.Field1), mulInt(100, piece_1845495430.tile.Field0)), state_1845495432.Field0.randSeed))); - var takes_1845495433 = getTakesOn_1476395510(piece_1845495430, board_1845495431); - var moves_1845495434 = getMovesOn_1476395625(piece_1845495430, board_1845495431); + var takes_1845495433 = getTakesOn_1476395511(piece_1845495430, board_1845495431); + var moves_1845495434 = getMovesOn_1476395626(piece_1845495430, board_1845495431); if (((moves_1845495434).length == 0)) { break BeforeRet; } - var resultHEX60gensym68_1845495442 = newSeq_1476395758(0); + var resultHEX60gensym68_1845495442 = newSeq_1476395759(0); Label1: { var it_1845495446 = {Field0: 0, Field1: 0}; - var i_1845497590 = 0; - var L_1845497591 = (moves_1845495434).length; + var i_1845500392 = 0; + var L_1845500393 = (moves_1845495434).length; Label2: { Label3: while (true) { - if (!(i_1845497590 < L_1845497591)) break Label3; - it_1845495446 = moves_1845495434[chckIndx(i_1845497590, 0, (moves_1845495434).length - 1)]; - if (!(contains_1476395660(takes_1845495433, it_1845495446))) { + if (!(i_1845500392 < L_1845500393)) break Label3; + it_1845495446 = moves_1845495434[chckIndx(i_1845500392, 0, (moves_1845495434).length - 1)]; + if (!(contains_1476395661(takes_1845495433, it_1845495446))) { var Temporary4 = nimCopy(null, it_1845495446, NTI1476395011); resultHEX60gensym68_1845495442.push(Temporary4);; } - i_1845497590 += 1; - if (!(((moves_1845495434).length == L_1845497591))) { + i_1845500392 += 1; + if (!(((moves_1845495434).length == L_1845500393))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -4754,7 +4755,7 @@ function HEX3Aanonymous_1845495429(piece_1845495430, board_1845495431, state_184 }; }; var attempt_1845495477 = nimCopy(null, sample_1845495455(resultHEX60gensym68_1845495442), NTI1476395011); - if (contains_1476395660(moves_1845495434, attempt_1845495477)) { + if (contains_1476395661(moves_1845495434, attempt_1845495477)) { piece_1845495430.onMove(piece_1845495430, attempt_1845495477, board_1845495431, state_1845495432); } @@ -4789,30 +4790,30 @@ function HEX3Aanonymous_1845494015(p_1845494016, b_1845494017, s_1845494018) { var i_1845494005 = 0; var j_1845494006 = 0; Label2: { - var i_1845497622 = 0; - var i_1845497623 = 0; + var i_1845500424 = 0; + var i_1845500425 = 0; Label3: { Label4: while (true) { - if (!(i_1845497623 < 8)) break Label4; - i_1845497622 = i_1845497623; + if (!(i_1845500425 < 8)) break Label4; + i_1845500424 = i_1845500425; Label5: { - var j_1845497626 = 0; - var i_1845497627 = 0; + var j_1845500428 = 0; + var i_1845500429 = 0; Label6: { Label7: while (true) { - if (!(i_1845497627 < 8)) break Label7; - j_1845497626 = i_1845497627; - i_1845494005 = i_1845497622; - j_1845494006 = j_1845497626; - if ((((board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)][chckIndx(j_1845494006, 0, (board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)]).length - 1)].item == piece_1845493998) || all_1845494004) && isColor_1476396052(board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)][chckIndx(j_1845494006, 0, (board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)]).length - 1)], side_1845493999))) { + if (!(i_1845500429 < 8)) break Label7; + j_1845500428 = i_1845500429; + i_1845494005 = i_1845500424; + j_1845494006 = j_1845500428; + if ((((board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)][chckIndx(j_1845494006, 0, (board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)]).length - 1)].item == piece_1845493998) || all_1845494004) && isColor_1476396053(board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)][chckIndx(j_1845494006, 0, (board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)]).length - 1)], side_1845493999))) { board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)][chckIndx(j_1845494006, 0, (board_1845494000[chckIndx(i_1845494005, 0, (board_1845494000).length - 1)]).length - 1)].onEndTurn.push(create_1845494003());; } - i_1845497627 = addInt(i_1845497627, 1); + i_1845500429 = addInt(i_1845500429, 1); } }; }; - i_1845497623 = addInt(i_1845497623, 1); + i_1845500425 = addInt(i_1845500425, 1); } }; }; @@ -4850,19 +4851,19 @@ function HEX3Aanonymous_1845495890(piece_1845495891, board_1845495892, state_184 if ((ticket_1845495894 == 42)) { Label1: { var xHEX60gensym86_1845495899 = null; - var i_1845497630 = 0; - var L_1845497631 = (piece_1845495891.onPromote).length; + var i_1845500432 = 0; + var L_1845500433 = (piece_1845495891.onPromote).length; Label2: { Label3: while (true) { - if (!(i_1845497630 < L_1845497631)) break Label3; - xHEX60gensym86_1845495899 = piece_1845495891.onPromote[chckIndx(i_1845497630, 0, (piece_1845495891.onPromote).length - 1)]; + if (!(i_1845500432 < L_1845500433)) break Label3; + xHEX60gensym86_1845495899 = piece_1845495891.onPromote[chckIndx(i_1845500432, 0, (piece_1845495891.onPromote).length - 1)]; xHEX60gensym86_1845495899(piece_1845495891, board_1845495892, state_1845495893); if (piece_1845495891.promoted) { break Label1; } - i_1845497630 += 1; - if (!(((piece_1845495891.onPromote).length == L_1845497631))) { + i_1845500432 += 1; + if (!(((piece_1845495891.onPromote).length == L_1845500433))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -4893,24 +4894,24 @@ function HEX3Aanonymous_1845495902(side_1845495903, __1845495904, b_1845495905, } -function otherSide_1476396060(a_1476396061) { +function otherSide_1476396061(a_1476396062) { var Temporary1; - var result_1476396062 = 0; + var result_1476396063 = 0; BeforeRet: { - if ((a_1476396061 == 1)) { + if ((a_1476396062 == 1)) { Temporary1 = 0; } else { Temporary1 = 1; } - result_1476396062 = Temporary1; + result_1476396063 = Temporary1; break BeforeRet; }; - return result_1476396062; + return result_1476396063; } @@ -4922,30 +4923,30 @@ function HEX3Aanonymous_1845495939(piece_1845495940, board_1845495941, state_184 var i_1845495944 = 0; var j_1845495945 = 0; Label2: { - var i_1845497635 = 0; - var i_1845497636 = 0; + var i_1845500437 = 0; + var i_1845500438 = 0; Label3: { Label4: while (true) { - if (!(i_1845497636 < 8)) break Label4; - i_1845497635 = i_1845497636; + if (!(i_1845500438 < 8)) break Label4; + i_1845500437 = i_1845500438; Label5: { - var j_1845497639 = 0; - var i_1845497640 = 0; + var j_1845500441 = 0; + var i_1845500442 = 0; Label6: { Label7: while (true) { - if (!(i_1845497640 < 8)) break Label7; - j_1845497639 = i_1845497640; - i_1845495944 = i_1845497635; - j_1845495945 = j_1845497639; - if (((board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)][chckIndx(j_1845495945, 0, (board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)]).length - 1)].item == 0) && isColor_1476396052(board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)][chckIndx(j_1845495945, 0, (board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)]).length - 1)], otherSide_1476396060(piece_1845495940.color)))) { + if (!(i_1845500442 < 8)) break Label7; + j_1845500441 = i_1845500442; + i_1845495944 = i_1845500437; + j_1845495945 = j_1845500441; + if (((board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)][chckIndx(j_1845495945, 0, (board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)]).length - 1)].item == 0) && isColor_1476396053(board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)][chckIndx(j_1845495945, 0, (board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)]).length - 1)], otherSide_1476396061(piece_1845495940.color)))) { board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)][chckIndx(j_1845495945, 0, (board_1845495941[chckIndx(i_1845495944, 0, (board_1845495941).length - 1)]).length - 1)].item = 6; } - i_1845497640 = addInt(i_1845497640, 1); + i_1845500442 = addInt(i_1845500442, 1); } }; }; - i_1845497636 = addInt(i_1845497636, 1); + i_1845500438 = addInt(i_1845500438, 1); } }; }; @@ -4966,15 +4967,15 @@ function HEX3Aanonymous_1845495961(piece_1845495962, taking_1845495963, board_18 randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845495962.tile.Field1), mulInt(100, piece_1845495962.tile.Field0)), state_1845495965.Field0.randSeed))); var dice_1845495966 = rand_1644167304(20); piece_1845495962.timesMoved = addInt(piece_1845495962.timesMoved, 1); - if (((dice_1845495966 <= 3) && !((HEX5BHEX5D_1476395363(board_1845495964, taking_1845495963).item == 0)))) { - HEX5BHEX5D_1476395363(board_1845495964, taking_1845495963).color = piece_1845495962.color; - HEX5BHEX5D_1476395363(board_1845495964, taking_1845495963).index = newIndex_1476395494(state_1845495965); - pieceSwap_1476395834(piece_1845495962, HEX5BHEX5D_1476395363(board_1845495964, taking_1845495963), board_1845495964); + if (((dice_1845495966 <= 3) && !((HEX5BHEX5D_1476395364(board_1845495964, taking_1845495963).item == 0)))) { + HEX5BHEX5D_1476395364(board_1845495964, taking_1845495963).color = piece_1845495962.color; + HEX5BHEX5D_1476395364(board_1845495964, taking_1845495963).index = newIndex_1476395495(state_1845495965); + pieceSwap_1476395835(piece_1845495962, HEX5BHEX5D_1476395364(board_1845495964, taking_1845495963), board_1845495964); } else { var takeResult_1845495976 = board_1845495964[chckIndx(taking_1845495963.Field1, 0, (board_1845495964).length - 1)][chckIndx(taking_1845495963.Field0, 0, (board_1845495964[chckIndx(taking_1845495963.Field1, 0, (board_1845495964).length - 1)]).length - 1)].whenTaken(board_1845495964[chckIndx(taking_1845495963.Field1, 0, (board_1845495964).length - 1)][chckIndx(taking_1845495963.Field0, 0, (board_1845495964[chckIndx(taking_1845495963.Field1, 0, (board_1845495964).length - 1)]).length - 1)], piece_1845495962, board_1845495964, state_1845495965); if (takeResult_1845495976.Field1) { - HEX5BHEX5D_1476395363(board_1845495964, takeResult_1845495976.Field0).piecesTaken = addInt(HEX5BHEX5D_1476395363(board_1845495964, takeResult_1845495976.Field0).piecesTaken, 1); + HEX5BHEX5D_1476395364(board_1845495964, takeResult_1845495976.Field0).piecesTaken = addInt(HEX5BHEX5D_1476395364(board_1845495964, takeResult_1845495976.Field0).piecesTaken, 1); } } @@ -4994,30 +4995,30 @@ function HEX3Aanonymous_1845496032(piece_1845496033, board_1845496034, state_184 var i_1845496036 = 0; var j_1845496037 = 0; Label2: { - var i_1845497644 = 0; - var i_1845497645 = 0; + var i_1845500446 = 0; + var i_1845500447 = 0; Label3: { Label4: while (true) { - if (!(i_1845497645 < 8)) break Label4; - i_1845497644 = i_1845497645; + if (!(i_1845500447 < 8)) break Label4; + i_1845500446 = i_1845500447; Label5: { - var j_1845497648 = 0; - var i_1845497649 = 0; + var j_1845500450 = 0; + var i_1845500451 = 0; Label6: { Label7: while (true) { - if (!(i_1845497649 < 8)) break Label7; - j_1845497648 = i_1845497649; - i_1845496036 = i_1845497644; - j_1845496037 = j_1845497648; + if (!(i_1845500451 < 8)) break Label7; + j_1845500450 = i_1845500451; + i_1845496036 = i_1845500446; + j_1845496037 = j_1845500450; if (board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)][chckIndx(j_1845496037, 0, (board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)]).length - 1)].promoted) { - board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)][chckIndx(j_1845496037, 0, (board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)]).length - 1)] = nimCopy(board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)][chckIndx(j_1845496037, 0, (board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)]).length - 1)], pieceCopy_1476395899(air_1526726831, newIndex_1476395494(state_1845496035), 6, 1, 0, 0, board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)][chckIndx(j_1845496037, 0, (board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); + board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)][chckIndx(j_1845496037, 0, (board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)]).length - 1)] = nimCopy(board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)][chckIndx(j_1845496037, 0, (board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, newIndex_1476395495(state_1845496035), 6, 1, 0, 0, board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)][chckIndx(j_1845496037, 0, (board_1845496034[chckIndx(i_1845496036, 0, (board_1845496034).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } - i_1845497649 = addInt(i_1845497649, 1); + i_1845500451 = addInt(i_1845500451, 1); } }; }; - i_1845497645 = addInt(i_1845497645, 1); + i_1845500447 = addInt(i_1845500447, 1); } }; }; @@ -5105,19 +5106,19 @@ function HEX3Aanonymous_1845496123(piece_1845496124, board_1845496125, state_184 Label1: { var xHEX60gensym96_1845496110 = null; - var i_1845497653 = 0; - var L_1845497654 = (piece_1845496103.onPromote).length; + var i_1845500455 = 0; + var L_1845500456 = (piece_1845496103.onPromote).length; Label2: { Label3: while (true) { - if (!(i_1845497653 < L_1845497654)) break Label3; - xHEX60gensym96_1845496110 = piece_1845496103.onPromote[chckIndx(i_1845497653, 0, (piece_1845496103.onPromote).length - 1)]; + if (!(i_1845500455 < L_1845500456)) break Label3; + xHEX60gensym96_1845496110 = piece_1845496103.onPromote[chckIndx(i_1845500455, 0, (piece_1845496103.onPromote).length - 1)]; xHEX60gensym96_1845496110(piece_1845496103, b_1845496104, s_1845496105); if (piece_1845496103.promoted) { break Label1; } - i_1845497653 += 1; - if (!(((piece_1845496103.onPromote).length == L_1845497654))) { + i_1845500455 += 1; + if (!(((piece_1845496103.onPromote).length == L_1845500456))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -5154,19 +5155,19 @@ function HEX3DHEX3D_1845496151(x_1845496153, y_1845496154) { Label1: { var i_1845496176 = 0; - var colontmp__1845497657 = 0; - colontmp__1845497657 = subInt((x_1845496153).length, 1); - var res_1845497658 = 0; + var colontmp__1845500459 = 0; + colontmp__1845500459 = subInt((x_1845496153).length, 1); + var res_1845500460 = 0; Label2: { Label3: while (true) { - if (!(res_1845497658 <= colontmp__1845497657)) break Label3; - i_1845496176 = res_1845497658; + if (!(res_1845500460 <= colontmp__1845500459)) break Label3; + i_1845496176 = res_1845500460; if (!((x_1845496153[chckIndx(i_1845496176, 0, (x_1845496153).length - 1)] == y_1845496154[chckIndx(i_1845496176, 0, (y_1845496154).length - 1)]))) { result_1845496155 = false; break BeforeRet; } - res_1845497658 = addInt(res_1845497658, 1); + res_1845500460 = addInt(res_1845500460, 1); } }; }; @@ -5182,7 +5183,7 @@ function HEX3Aanonymous_1845496142(piece_1845496143, board_1845496144, s_1845496 var result_1845496146 = false; BeforeRet: { - result_1845496146 = (!(piece_1845496143.promoted) && !(HEX3DHEX3D_1845496151(piece_1845496143.onPromote, [HEX3Aanonymous_1476395449]))); + result_1845496146 = (!(piece_1845496143.promoted) && !(HEX3DHEX3D_1845496151(piece_1845496143.onPromote, [HEX3Aanonymous_1476395450]))); break BeforeRet; }; @@ -5268,30 +5269,30 @@ function HEX3Aanonymous_1845496185(piece_1845496186, b_1845496187, state_1845496 var i_1845496190 = 0; var j_1845496191 = 0; Label2: { - var i_1845497662 = 0; - var i_1845497663 = 0; + var i_1845500464 = 0; + var i_1845500465 = 0; Label3: { Label4: while (true) { - if (!(i_1845497663 < 8)) break Label4; - i_1845497662 = i_1845497663; + if (!(i_1845500465 < 8)) break Label4; + i_1845500464 = i_1845500465; Label5: { - var j_1845497666 = 0; - var i_1845497667 = 0; + var j_1845500468 = 0; + var i_1845500469 = 0; Label6: { Label7: while (true) { - if (!(i_1845497667 < 8)) break Label7; - j_1845497666 = i_1845497667; - i_1845496190 = i_1845497662; - j_1845496191 = j_1845497666; - if (sameColor_1476396043(b_1845496187[chckIndx(i_1845496190, 0, (b_1845496187).length - 1)][chckIndx(j_1845496191, 0, (b_1845496187[chckIndx(i_1845496190, 0, (b_1845496187).length - 1)]).length - 1)], piece_1845496186)) { + if (!(i_1845500469 < 8)) break Label7; + j_1845500468 = i_1845500469; + i_1845496190 = i_1845500464; + j_1845496191 = j_1845500468; + if (sameColor_1476396044(b_1845496187[chckIndx(i_1845496190, 0, (b_1845496187).length - 1)][chckIndx(j_1845496191, 0, (b_1845496187[chckIndx(i_1845496190, 0, (b_1845496187).length - 1)]).length - 1)], piece_1845496186)) { allPiecesTaken_1845496189 = addInt(allPiecesTaken_1845496189, b_1845496187[chckIndx(i_1845496190, 0, (b_1845496187).length - 1)][chckIndx(j_1845496191, 0, (b_1845496187[chckIndx(i_1845496190, 0, (b_1845496187).length - 1)]).length - 1)].piecesTaken); } - i_1845497667 = addInt(i_1845497667, 1); + i_1845500469 = addInt(i_1845500469, 1); } }; }; - i_1845497663 = addInt(i_1845497663, 1); + i_1845500465 = addInt(i_1845500465, 1); } }; }; @@ -5323,170 +5324,170 @@ function HEX3Aanonymous_1845496200(side_1845496201, __1845496202, b_1845496203, } -function some_1845496679(val_1845496681) { - var result_1845496682 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); +function some_1845499535(val_1845499537) { + var result_1845499538 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); - result_1845496682.has = true; - result_1845496682.val = nimCopy(result_1845496682.val, val_1845496681, NTI1476395032); + result_1845499538.has = true; + result_1845499538.val = nimCopy(result_1845499538.val, val_1845499537, NTI1476395032); - return result_1845496682; + return result_1845499538; } -function HEX3Aanonymous_1845496568(piece_1845496569, to_1845496570, b_1845496571, s_1845496572) { +function HEX3Aanonymous_1845499424(piece_1845499425, to_1845499426, b_1845499427, s_1845499428) { BeforeRet: { - if (!((b_1845496571[chckIndx(to_1845496570.Field1, 0, (b_1845496571).length - 1)][chckIndx(to_1845496570.Field0, 0, (b_1845496571[chckIndx(to_1845496570.Field1, 0, (b_1845496571).length - 1)]).length - 1)].item == 6))) { + if (!((b_1845499427[chckIndx(to_1845499426.Field1, 0, (b_1845499427).length - 1)][chckIndx(to_1845499426.Field0, 0, (b_1845499427[chckIndx(to_1845499426.Field1, 0, (b_1845499427).length - 1)]).length - 1)].item == 6))) { break BeforeRet; } - piece_1845496569.onMove(piece_1845496569, to_1845496570, b_1845496571, s_1845496572); + piece_1845499425.onMove(piece_1845499425, to_1845499426, b_1845499427, s_1845499428); }; } -function HEX5BHEX5D_1476395311(b_1476395312, tile_1476395313) { - var result_1476395314 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); +function HEX5BHEX5D_1476395312(b_1476395313, tile_1476395314) { + var result_1476395315 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); BeforeRet: { - result_1476395314 = nimCopy(result_1476395314, b_1476395312[chckIndx(tile_1476395313.Field1, 0, (b_1476395312).length - 1)][chckIndx(tile_1476395313.Field0, 0, (b_1476395312[chckIndx(tile_1476395313.Field1, 0, (b_1476395312).length - 1)]).length - 1)], NTI1476395034); + result_1476395315 = nimCopy(result_1476395315, b_1476395313[chckIndx(tile_1476395314.Field1, 0, (b_1476395313).length - 1)][chckIndx(tile_1476395314.Field0, 0, (b_1476395313[chckIndx(tile_1476395314.Field1, 0, (b_1476395313).length - 1)]).length - 1)], NTI1476395034); break BeforeRet; }; - return result_1476395314; + return result_1476395315; } -function getPiecesChecking_1476396166(b_1476396167, c_1476396168) { - var result_1476396169 = []; +function getPiecesChecking_1476396167(b_1476396168, c_1476396169) { + var result_1476396170 = []; - var kingTile_1476396170 = nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011); + var kingTile_1476396171 = nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011); Label1: { - var row_1476396175 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - var i_1845497684 = 0; + var row_1476396176 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; + var i_1845500486 = 0; Label2: { Label3: while (true) { if (!true) break Label3; - row_1476396175 = nimCopy(row_1476396175, b_1476396167[chckIndx(i_1845497684, 0, (b_1476396167).length - 1)], NTI1476395012); + row_1476396176 = nimCopy(row_1476396176, b_1476396168[chckIndx(i_1845500486, 0, (b_1476396168).length - 1)], NTI1476395012); Label4: { - var p_1476396180 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - var i_1845497681 = 0; + var p_1476396181 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_1845500483 = 0; Label5: { Label6: while (true) { if (!true) break Label6; - p_1476396180 = nimCopy(p_1476396180, row_1476396175[chckIndx(i_1845497681, 0, (row_1476396175).length - 1)], NTI1476395034); - if (((p_1476396180.item == 0) && isColor_1476396052(p_1476396180, c_1476396168))) { - kingTile_1476396170 = nimCopy(kingTile_1476396170, p_1476396180.tile, NTI1476395011); + p_1476396181 = nimCopy(p_1476396181, row_1476396176[chckIndx(i_1845500483, 0, (row_1476396176).length - 1)], NTI1476395034); + if (((p_1476396181.item == 0) && isColor_1476396053(p_1476396181, c_1476396169))) { + kingTile_1476396171 = nimCopy(kingTile_1476396171, p_1476396181.tile, NTI1476395011); } - if ((7 <= i_1845497681)) { + if ((7 <= i_1845500483)) { break Label5; } - i_1845497681 += 1; + i_1845500483 += 1; } }; }; - if ((7 <= i_1845497684)) { + if ((7 <= i_1845500486)) { break Label2; } - i_1845497684 += 1; + i_1845500486 += 1; } }; }; Label7: { - var row_1476396189 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - var i_1845497690 = 0; + var row_1476396190 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; + var i_1845500492 = 0; Label8: { Label9: while (true) { if (!true) break Label9; - row_1476396189 = nimCopy(row_1476396189, b_1476396167[chckIndx(i_1845497690, 0, (b_1476396167).length - 1)], NTI1476395012); + row_1476396190 = nimCopy(row_1476396190, b_1476396168[chckIndx(i_1845500492, 0, (b_1476396168).length - 1)], NTI1476395012); Label10: { - var p_1476396194 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - var i_1845497688 = 0; + var p_1476396195 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_1845500490 = 0; Label11: { Label12: while (true) { if (!true) break Label12; - p_1476396194 = nimCopy(p_1476396194, row_1476396189[chckIndx(i_1845497688, 0, (row_1476396189).length - 1)], NTI1476395034); - if ((!(isColor_1476396052(p_1476396194, c_1476396168)) && contains_1476395660(getTakesOn_1476395510(p_1476396194, b_1476396167), kingTile_1476396170))) { - var Temporary13 = nimCopy(null, p_1476396194.tile, NTI1476395011); - result_1476396169.push(Temporary13);; + p_1476396195 = nimCopy(p_1476396195, row_1476396190[chckIndx(i_1845500490, 0, (row_1476396190).length - 1)], NTI1476395034); + if ((!(isColor_1476396053(p_1476396195, c_1476396169)) && contains_1476395661(getTakesOn_1476395511(p_1476396195, b_1476396168), kingTile_1476396171))) { + var Temporary13 = nimCopy(null, p_1476396195.tile, NTI1476395011); + result_1476396170.push(Temporary13);; } - if ((7 <= i_1845497688)) { + if ((7 <= i_1845500490)) { break Label11; } - i_1845497688 += 1; + i_1845500490 += 1; } }; }; - if ((7 <= i_1845497690)) { + if ((7 <= i_1845500492)) { break Label8; } - i_1845497690 += 1; + i_1845500492 += 1; } }; }; - return result_1476396169; + return result_1476396170; } -function wouldCheckAt_1476396203(p_1476396204, at_1476396205, b_1476396206) { - var result_1476396207 = false; +function wouldCheckAt_1476396204(p_1476396205, at_1476396206, b_1476396207) { + var result_1476396208 = false; BeforeRet: { - var testboard_1476396208 = [nimCopy(null, b_1476396206, NTI1476395013)]; - var testpiece_1476396209 = [nimCopy(null, p_1476396204, NTI1476395034)]; - var emptyState_1476396210 = [{Field0: ({nextIndex: 0, nextGroup: 0, randSeed: 0, turnNumber: 0}), Field1: [({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]}), ({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]})]}]; - pieceMove_1476395819(testpiece_1476396209[0], at_1476396205, testboard_1476396208[0], emptyState_1476396210[0]); - result_1476396207 = ((getPiecesChecking_1476396166(b_1476396206, otherSide_1476396060(p_1476396204.color))).length < (getPiecesChecking_1476396166(testboard_1476396208[0], otherSide_1476396060(p_1476396204.color))).length); + var testboard_1476396209 = [nimCopy(null, b_1476396207, NTI1476395013)]; + var testpiece_1476396210 = [nimCopy(null, p_1476396205, NTI1476395034)]; + var emptyState_1476396211 = [{Field0: ({nextIndex: 0, nextGroup: 0, randSeed: 0, turnNumber: 0}), Field1: [({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]}), ({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]})]}]; + pieceMove_1476395820(testpiece_1476396210[0], at_1476396206, testboard_1476396209[0], emptyState_1476396211[0]); + result_1476396208 = ((getPiecesChecking_1476396167(b_1476396207, otherSide_1476396061(p_1476396205.color))).length < (getPiecesChecking_1476396167(testboard_1476396209[0], otherSide_1476396061(p_1476396205.color))).length); break BeforeRet; }; - return result_1476396207; + return result_1476396208; } -function HEX3Aanonymous_1845496544(side_1845496545, piece_1845496546, b_1845496547, __1845496548) { - var result_1845496549 = []; +function HEX3Aanonymous_1845499400(side_1845499401, piece_1845499402, b_1845499403, __1845499404) { + var result_1845499405 = []; BeforeRet: { - if (!((piece_1845496546.color == side_1845496545))) { - result_1845496549 = nimCopy(null, [], NTI1543504077); + if (!((piece_1845499402.color == side_1845499401))) { + result_1845499405 = nimCopy(null, [], NTI1543504077); break BeforeRet; } else { Label1: { - var tile_1845496558 = {Field0: 0, Field1: 0}; + var tile_1845499414 = {Field0: 0, Field1: 0}; Label2: { - var i_1845497671 = 0; - var i_1845497672 = 0; + var i_1845500473 = 0; + var i_1845500474 = 0; Label3: { Label4: while (true) { - if (!(i_1845497672 < 8)) break Label4; - i_1845497671 = i_1845497672; + if (!(i_1845500474 < 8)) break Label4; + i_1845500473 = i_1845500474; Label5: { - var j_1845497675 = 0; - var i_1845497676 = 0; + var j_1845500477 = 0; + var i_1845500478 = 0; Label6: { Label7: while (true) { - if (!(i_1845497676 < 8)) break Label7; - j_1845497675 = i_1845497676; - tile_1845496558 = nimCopy(tile_1845496558, {Field0: i_1845497671, Field1: j_1845497675}, NTI1476395011); - if (((HEX5BHEX5D_1476395311(b_1845496547, tile_1845496558).item == 6) && !(wouldCheckAt_1476396203(piece_1845496546, tile_1845496558, b_1845496547)))) { - var Temporary8 = nimCopy(null, tile_1845496558, NTI1476395011); - result_1845496549.push(Temporary8);; + if (!(i_1845500478 < 8)) break Label7; + j_1845500477 = i_1845500478; + tile_1845499414 = nimCopy(tile_1845499414, {Field0: i_1845500473, Field1: j_1845500477}, NTI1476395011); + if (((HEX5BHEX5D_1476395312(b_1845499403, tile_1845499414).item == 6) && !(wouldCheckAt_1476396204(piece_1845499402, tile_1845499414, b_1845499403)))) { + var Temporary8 = nimCopy(null, tile_1845499414, NTI1476395011); + result_1845499405.push(Temporary8);; } - i_1845497676 = addInt(i_1845497676, 1); + i_1845500478 = addInt(i_1845500478, 1); } }; }; - i_1845497672 = addInt(i_1845497672, 1); + i_1845500474 = addInt(i_1845500474, 1); } }; }; @@ -5495,89 +5496,89 @@ function HEX3Aanonymous_1845496544(side_1845496545, piece_1845496546, b_18454965 }; - return result_1845496549; + return result_1845499405; } -function HEX3Aanonymous_1845496671(side_1845496672, __1845496673, __1845496674, s_1845496675) { - s_1845496675.Field1[chckIndx(side_1845496672, 0, (s_1845496675.Field1).length - 1)].glass[chckIndx(0, 0, (s_1845496675.Field1[chckIndx(side_1845496672, 0, (s_1845496675.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845496675.Field1[chckIndx(side_1845496672, 0, (s_1845496675.Field1).length - 1)].glass[chckIndx(0, 0, (s_1845496675.Field1[chckIndx(side_1845496672, 0, (s_1845496675.Field1).length - 1)].glass).length - 1)], some_1845496679({Field0: 2, Field1: HEX3Aanonymous_1845496568, Field2: HEX3Aanonymous_1845496544}), NTI1476395079); +function HEX3Aanonymous_1845499527(side_1845499528, __1845499529, __1845499530, s_1845499531) { + s_1845499531.Field1[chckIndx(side_1845499528, 0, (s_1845499531.Field1).length - 1)].glass[chckIndx(0, 0, (s_1845499531.Field1[chckIndx(side_1845499528, 0, (s_1845499531.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845499531.Field1[chckIndx(side_1845499528, 0, (s_1845499531.Field1).length - 1)].glass[chckIndx(0, 0, (s_1845499531.Field1[chckIndx(side_1845499528, 0, (s_1845499531.Field1).length - 1)].glass).length - 1)], some_1845499535({Field0: 2, Field1: HEX3Aanonymous_1845499424, Field2: HEX3Aanonymous_1845499400}), NTI1476395079); } -function createZeroGlassAction_1845496601(side_1845496602) { +function createZeroGlassAction_1845499457(side_1845499458) { -function HEX3Aanonymous_1845496604(__1845496605, to_1845496606, b_1845496607, s_1845496608) { +function HEX3Aanonymous_1845499460(__1845499461, to_1845499462, b_1845499463, s_1845499464) { BeforeRet: { - if ((b_1845496607[chckIndx(to_1845496606.Field1, 0, (b_1845496607).length - 1)][chckIndx(to_1845496606.Field0, 0, (b_1845496607[chckIndx(to_1845496606.Field1, 0, (b_1845496607).length - 1)]).length - 1)].item == 6)) { + if ((b_1845499463[chckIndx(to_1845499462.Field1, 0, (b_1845499463).length - 1)][chckIndx(to_1845499462.Field0, 0, (b_1845499463[chckIndx(to_1845499462.Field1, 0, (b_1845499463).length - 1)]).length - 1)].item == 6)) { break BeforeRet; } - b_1845496607[chckIndx(to_1845496606.Field1, 0, (b_1845496607).length - 1)][chckIndx(to_1845496606.Field0, 0, (b_1845496607[chckIndx(to_1845496606.Field1, 0, (b_1845496607).length - 1)]).length - 1)] = nimCopy(b_1845496607[chckIndx(to_1845496606.Field1, 0, (b_1845496607).length - 1)][chckIndx(to_1845496606.Field0, 0, (b_1845496607[chckIndx(to_1845496606.Field1, 0, (b_1845496607).length - 1)]).length - 1)], pieceCopy_1476395899(air_1526726831, HEX5BHEX5D_1476395363(b_1845496607, to_1845496606).index, 6, 1, 0, 0, to_1845496606, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); - s_1845496608.Field1[chckIndx(side_1845496602, 0, (s_1845496608.Field1).length - 1)].abilityTakes = addInt(s_1845496608.Field1[chckIndx(side_1845496602, 0, (s_1845496608.Field1).length - 1)].abilityTakes, 1); + b_1845499463[chckIndx(to_1845499462.Field1, 0, (b_1845499463).length - 1)][chckIndx(to_1845499462.Field0, 0, (b_1845499463[chckIndx(to_1845499462.Field1, 0, (b_1845499463).length - 1)]).length - 1)] = nimCopy(b_1845499463[chckIndx(to_1845499462.Field1, 0, (b_1845499463).length - 1)][chckIndx(to_1845499462.Field0, 0, (b_1845499463[chckIndx(to_1845499462.Field1, 0, (b_1845499463).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, HEX5BHEX5D_1476395364(b_1845499463, to_1845499462).index, 6, 1, 0, 0, to_1845499462, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); + s_1845499464.Field1[chckIndx(side_1845499458, 0, (s_1845499464.Field1).length - 1)].abilityTakes = addInt(s_1845499464.Field1[chckIndx(side_1845499458, 0, (s_1845499464.Field1).length - 1)].abilityTakes, 1); }; } - var result_1845496603 = null; + var result_1845499459 = null; - result_1845496603 = HEX3Aanonymous_1845496604; + result_1845499459 = HEX3Aanonymous_1845499460; - return result_1845496603; + return result_1845499459; } -function HEX3Aanonymous_1845496580(side_1845496581, piece_1845496582, b_1845496583, s_1845496584) { - var result_1845496585 = []; +function HEX3Aanonymous_1845499436(side_1845499437, piece_1845499438, b_1845499439, s_1845499440) { + var result_1845499441 = []; BeforeRet: { - if ((s_1845496584.Field0.turnNumber <= 1)) { - result_1845496585 = nimCopy(null, [], NTI1543504077); + if ((s_1845499440.Field0.turnNumber <= 1)) { + result_1845499441 = nimCopy(null, [], NTI1543504077); break BeforeRet; } Label1: { - var i_1845496590 = 0; - var j_1845496591 = 0; + var i_1845499446 = 0; + var j_1845499447 = 0; Label2: { - var i_1845497694 = 0; - var i_1845497695 = 0; + var i_1845500496 = 0; + var i_1845500497 = 0; Label3: { Label4: while (true) { - if (!(i_1845497695 < 8)) break Label4; - i_1845497694 = i_1845497695; + if (!(i_1845500497 < 8)) break Label4; + i_1845500496 = i_1845500497; Label5: { - var j_1845497698 = 0; - var i_1845497699 = 0; + var j_1845500500 = 0; + var i_1845500501 = 0; Label6: { Label7: while (true) { - if (!(i_1845497699 < 8)) break Label7; - j_1845497698 = i_1845497699; - i_1845496590 = i_1845497694; - j_1845496591 = j_1845497698; - if (!((b_1845496583[chckIndx(i_1845496590, 0, (b_1845496583).length - 1)][chckIndx(j_1845496591, 0, (b_1845496583[chckIndx(i_1845496590, 0, (b_1845496583).length - 1)]).length - 1)].item == 0))) { - var Temporary8 = nimCopy(null, b_1845496583[chckIndx(i_1845496590, 0, (b_1845496583).length - 1)][chckIndx(j_1845496591, 0, (b_1845496583[chckIndx(i_1845496590, 0, (b_1845496583).length - 1)]).length - 1)].tile, NTI1476395011); - result_1845496585.push(Temporary8);; + if (!(i_1845500501 < 8)) break Label7; + j_1845500500 = i_1845500501; + i_1845499446 = i_1845500496; + j_1845499447 = j_1845500500; + if (!((b_1845499439[chckIndx(i_1845499446, 0, (b_1845499439).length - 1)][chckIndx(j_1845499447, 0, (b_1845499439[chckIndx(i_1845499446, 0, (b_1845499439).length - 1)]).length - 1)].item == 0))) { + var Temporary8 = nimCopy(null, b_1845499439[chckIndx(i_1845499446, 0, (b_1845499439).length - 1)][chckIndx(j_1845499447, 0, (b_1845499439[chckIndx(i_1845499446, 0, (b_1845499439).length - 1)]).length - 1)].tile, NTI1476395011); + result_1845499441.push(Temporary8);; } - i_1845497699 = addInt(i_1845497699, 1); + i_1845500501 = addInt(i_1845500501, 1); } }; }; - i_1845497695 = addInt(i_1845497695, 1); + i_1845500497 = addInt(i_1845500497, 1); } }; }; }; }; - return result_1845496585; + return result_1845499441; } -function HEX3Aanonymous_1845496685(side_1845496686, __1845496687, __1845496688, s_1845496689) { - s_1845496689.Field1[chckIndx(side_1845496686, 0, (s_1845496689.Field1).length - 1)].glass[chckIndx(1, 0, (s_1845496689.Field1[chckIndx(side_1845496686, 0, (s_1845496689.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845496689.Field1[chckIndx(side_1845496686, 0, (s_1845496689.Field1).length - 1)].glass[chckIndx(1, 0, (s_1845496689.Field1[chckIndx(side_1845496686, 0, (s_1845496689.Field1).length - 1)].glass).length - 1)], some_1845496679({Field0: 2, Field1: createZeroGlassAction_1845496601(side_1845496686), Field2: HEX3Aanonymous_1845496580}), NTI1476395079); +function HEX3Aanonymous_1845499541(side_1845499542, __1845499543, __1845499544, s_1845499545) { + s_1845499545.Field1[chckIndx(side_1845499542, 0, (s_1845499545.Field1).length - 1)].glass[chckIndx(1, 0, (s_1845499545.Field1[chckIndx(side_1845499542, 0, (s_1845499545.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845499545.Field1[chckIndx(side_1845499542, 0, (s_1845499545.Field1).length - 1)].glass[chckIndx(1, 0, (s_1845499545.Field1[chckIndx(side_1845499542, 0, (s_1845499545.Field1).length - 1)].glass).length - 1)], some_1845499535({Field0: 2, Field1: createZeroGlassAction_1845499457(side_1845499542), Field2: HEX3Aanonymous_1845499436}), NTI1476395079); } @@ -5714,15 +5715,15 @@ function nsuRepeatChar(c_889193569, count_889193570) { result_889193571 = nimCopy(null, mnewString(count_889193570), NTI33554449); Label1: { var i_889193576 = 0; - var colontmp__1845497717 = 0; - colontmp__1845497717 = subInt(count_889193570, 1); - var res_1845497718 = 0; + var colontmp__1845500519 = 0; + colontmp__1845500519 = subInt(count_889193570, 1); + var res_1845500520 = 0; Label2: { Label3: while (true) { - if (!(res_1845497718 <= colontmp__1845497717)) break Label3; - i_889193576 = res_1845497718; + if (!(res_1845500520 <= colontmp__1845500519)) break Label3; + i_889193576 = res_1845500520; result_889193571[chckIndx(i_889193576, 0, (result_889193571).length - 1)] = c_889193569; - res_1845497718 = addInt(res_1845497718, 1); + res_1845500520 = addInt(res_1845500520, 1); } }; }; @@ -5801,17 +5802,17 @@ function registerSynergy_1728053329(s_1728053330, secret_1728053331, secretSecre var resultHEX60gensym2_1728053357 = nimCopy(null, sHEX60gensym2_1728053347[chckIndx(subInt(nHEX60gensym2_1728053351, 1), 0, (sHEX60gensym2_1728053347).length - 1)], NTI33554449); Label1: { var iHEX60gensym2_1728053363 = 0; - var colontmp__1845497702 = 0; - colontmp__1845497702 = subInt(nHEX60gensym2_1728053351, 2); - var res_1845497704 = colontmp__1845497702; + var colontmp__1845500504 = 0; + colontmp__1845500504 = subInt(nHEX60gensym2_1728053351, 2); + var res_1845500506 = colontmp__1845500504; Label2: { Label3: while (true) { - if (!(0 <= res_1845497704)) break Label3; - iHEX60gensym2_1728053363 = res_1845497704; + if (!(0 <= res_1845500506)) break Label3; + iHEX60gensym2_1728053363 = res_1845500506; var a_1728053364 = nimCopy(null, sHEX60gensym2_1728053347[chckIndx(iHEX60gensym2_1728053363, 0, (sHEX60gensym2_1728053347).length - 1)], NTI33554449); var b_1728053365 = nimCopy(null, resultHEX60gensym2_1728053357, NTI33554449); resultHEX60gensym2_1728053357 = nimCopy(null, (a_1728053364 || []).concat([32,43,32] || [],b_1728053365 || []), NTI33554449); - res_1845497704 = subInt(res_1845497704, 1); + res_1845500506 = subInt(res_1845500506, 1); } }; }; @@ -5948,168 +5949,168 @@ function get_1660947783(self_1660947785) { } -function HEX3Aanonymous_1845496787(side_1845496788, piece_1845496789, b_1845496790, s_1845496791) { - var result_1845496792 = []; +function HEX3Aanonymous_1845499608(side_1845499609, piece_1845499610, b_1845499611, s_1845499612) { + var result_1845499613 = []; BeforeRet: { - if (!(isSome_1660947689(s_1845496791.Field1[chckIndx(side_1845496788, 0, (s_1845496791.Field1).length - 1)].wallet))) { - failedAssertImpl_268435541([112,111,119,101,114,115,46,110,105,109,40,49,57,55,54,44,32,57,41,32,96,115,46,115,105,100,101,91,115,105,100,101,93,46,119,97,108,108,101,116,46,105,115,83,111,109,101,40,41,96,32]); + if (!(isSome_1660947689(s_1845499612.Field1[chckIndx(side_1845499609, 0, (s_1845499612.Field1).length - 1)].wallet))) { + failedAssertImpl_268435541([112,111,119,101,114,115,46,110,105,109,40,49,57,55,55,44,32,57,41,32,96,115,46,115,105,100,101,91,115,105,100,101,93,46,119,97,108,108,101,116,46,105,115,83,111,109,101,40,41,96,32]); } - if (((s_1845496791.Field0.turnNumber <= 1) || !((get_1660947783(s_1845496791.Field1[chckIndx(side_1845496788, 0, (s_1845496791.Field1).length - 1)].wallet) == 0)))) { - result_1845496792 = nimCopy(null, [], NTI1543504077); + if (((s_1845499612.Field0.turnNumber <= 1) || !((get_1660947783(s_1845499612.Field1[chckIndx(side_1845499609, 0, (s_1845499612.Field1).length - 1)].wallet) == 0)))) { + result_1845499613 = nimCopy(null, [], NTI1543504077); break BeforeRet; } Label1: { - var i_1845496824 = 0; - var j_1845496825 = 0; + var i_1845499645 = 0; + var j_1845499646 = 0; Label2: { - var i_1845497722 = 0; - var i_1845497723 = 0; + var i_1845500524 = 0; + var i_1845500525 = 0; Label3: { Label4: while (true) { - if (!(i_1845497723 < 8)) break Label4; - i_1845497722 = i_1845497723; + if (!(i_1845500525 < 8)) break Label4; + i_1845500524 = i_1845500525; Label5: { - var j_1845497726 = 0; - var i_1845497727 = 0; + var j_1845500528 = 0; + var i_1845500529 = 0; Label6: { Label7: while (true) { - if (!(i_1845497727 < 8)) break Label7; - j_1845497726 = i_1845497727; - i_1845496824 = i_1845497722; - j_1845496825 = j_1845497726; - if (!((b_1845496790[chckIndx(i_1845496824, 0, (b_1845496790).length - 1)][chckIndx(j_1845496825, 0, (b_1845496790[chckIndx(i_1845496824, 0, (b_1845496790).length - 1)]).length - 1)].item == 0))) { - var Temporary8 = nimCopy(null, b_1845496790[chckIndx(i_1845496824, 0, (b_1845496790).length - 1)][chckIndx(j_1845496825, 0, (b_1845496790[chckIndx(i_1845496824, 0, (b_1845496790).length - 1)]).length - 1)].tile, NTI1476395011); - result_1845496792.push(Temporary8);; + if (!(i_1845500529 < 8)) break Label7; + j_1845500528 = i_1845500529; + i_1845499645 = i_1845500524; + j_1845499646 = j_1845500528; + if (!((b_1845499611[chckIndx(i_1845499645, 0, (b_1845499611).length - 1)][chckIndx(j_1845499646, 0, (b_1845499611[chckIndx(i_1845499645, 0, (b_1845499611).length - 1)]).length - 1)].item == 0))) { + var Temporary8 = nimCopy(null, b_1845499611[chckIndx(i_1845499645, 0, (b_1845499611).length - 1)][chckIndx(j_1845499646, 0, (b_1845499611[chckIndx(i_1845499645, 0, (b_1845499611).length - 1)]).length - 1)].tile, NTI1476395011); + result_1845499613.push(Temporary8);; } - i_1845497727 = addInt(i_1845497727, 1); + i_1845500529 = addInt(i_1845500529, 1); } }; }; - i_1845497723 = addInt(i_1845497723, 1); + i_1845500525 = addInt(i_1845500525, 1); } }; }; }; }; - return result_1845496792; + return result_1845499613; } -function HEX3Aanonymous_1845496835(side_1845496836, __1845496837, __1845496838, s_1845496839) { - s_1845496839.Field1[chckIndx(side_1845496836, 0, (s_1845496839.Field1).length - 1)].glass[chckIndx(1, 0, (s_1845496839.Field1[chckIndx(side_1845496836, 0, (s_1845496839.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845496839.Field1[chckIndx(side_1845496836, 0, (s_1845496839.Field1).length - 1)].glass[chckIndx(1, 0, (s_1845496839.Field1[chckIndx(side_1845496836, 0, (s_1845496839.Field1).length - 1)].glass).length - 1)], some_1845496679({Field0: 3, Field1: createZeroGlassAction_1845496601(side_1845496836), Field2: HEX3Aanonymous_1845496787}), NTI1476395079); +function HEX3Aanonymous_1845499656(side_1845499657, __1845499658, __1845499659, s_1845499660) { + s_1845499660.Field1[chckIndx(side_1845499657, 0, (s_1845499660.Field1).length - 1)].glass[chckIndx(1, 0, (s_1845499660.Field1[chckIndx(side_1845499657, 0, (s_1845499660.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845499660.Field1[chckIndx(side_1845499657, 0, (s_1845499660.Field1).length - 1)].glass[chckIndx(1, 0, (s_1845499660.Field1[chckIndx(side_1845499657, 0, (s_1845499660.Field1).length - 1)].glass).length - 1)], some_1845499535({Field0: 3, Field1: createZeroGlassAction_1845499457(side_1845499657), Field2: HEX3Aanonymous_1845499608}), NTI1476395079); } -function HEX3DHEX3D_1476395445(a_1476395446, b_1476395447) { - var result_1476395448 = false; +function HEX3DHEX3D_1476395446(a_1476395447, b_1476395448) { + var result_1476395449 = false; BeforeRet: { - result_1476395448 = (a_1476395446.index == b_1476395447.index); + result_1476395449 = (a_1476395447.index == b_1476395448.index); break BeforeRet; }; - return result_1476395448; + return result_1476395449; } -function HEX3Aanonymous_1845496657(piece_1845496658, to_1845496659, b_1845496660, s_1845496661) { +function HEX3Aanonymous_1845499513(piece_1845499514, to_1845499515, b_1845499516, s_1845499517) { BeforeRet: { - if (((HEX5BHEX5D_1476395363(b_1845496660, to_1845496659).item == 6) || HEX3DHEX3D_1476395445(HEX5BHEX5D_1476395363(b_1845496660, to_1845496659), piece_1845496658))) { + if (((HEX5BHEX5D_1476395364(b_1845499516, to_1845499515).item == 6) || HEX3DHEX3D_1476395446(HEX5BHEX5D_1476395364(b_1845499516, to_1845499515), piece_1845499514))) { break BeforeRet; } - piece_1845496658.onTake(piece_1845496658, to_1845496659, b_1845496660, s_1845496661); + piece_1845499514.onTake(piece_1845499514, to_1845499515, b_1845499516, s_1845499517); }; } -function HEX3Aanonymous_1845496618(side_1845496619, piece_1845496620, b_1845496621, __1845496622) { - var result_1845496623 = []; +function HEX3Aanonymous_1845499474(side_1845499475, piece_1845499476, b_1845499477, __1845499478) { + var result_1845499479 = []; BeforeRet: { - if (!(isAtEnd_1476396237(piece_1845496620))) { - if ((piece_1845496620.color == 1)) { - result_1845496623 = nimCopy(null, [nimCopy(null, tileAbove_1560281230(piece_1845496620.tile), NTI1476395011)], NTI1845496438); + if (!(isAtEnd_1476396238(piece_1845499476))) { + if ((piece_1845499476.color == 1)) { + result_1845499479 = nimCopy(null, [nimCopy(null, tileAbove_1560281230(piece_1845499476.tile), NTI1476395011)], NTI1845498550); break BeforeRet; } else { - result_1845496623 = nimCopy(null, [nimCopy(null, tileBelow_1560281233(piece_1845496620.tile), NTI1476395011)], NTI1845496438); + result_1845499479 = nimCopy(null, [nimCopy(null, tileBelow_1560281233(piece_1845499476.tile), NTI1476395011)], NTI1845498550); break BeforeRet; } } else { - result_1845496623 = nimCopy(null, [], NTI1543504077); + result_1845499479 = nimCopy(null, [], NTI1543504077); break BeforeRet; } }; - return result_1845496623; + return result_1845499479; } -function HEX3Aanonymous_1845496697(side_1845496698, __1845496699, b_1845496700, s_1845496701) { - s_1845496701.Field1[chckIndx(side_1845496698, 0, (s_1845496701.Field1).length - 1)].glass[chckIndx(2, 0, (s_1845496701.Field1[chckIndx(side_1845496698, 0, (s_1845496701.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845496701.Field1[chckIndx(side_1845496698, 0, (s_1845496701.Field1).length - 1)].glass[chckIndx(2, 0, (s_1845496701.Field1[chckIndx(side_1845496698, 0, (s_1845496701.Field1).length - 1)].glass).length - 1)], some_1845496679({Field0: 5, Field1: HEX3Aanonymous_1845496657, Field2: HEX3Aanonymous_1845496618}), NTI1476395079); +function HEX3Aanonymous_1845499553(side_1845499554, __1845499555, b_1845499556, s_1845499557) { + s_1845499557.Field1[chckIndx(side_1845499554, 0, (s_1845499557.Field1).length - 1)].glass[chckIndx(2, 0, (s_1845499557.Field1[chckIndx(side_1845499554, 0, (s_1845499557.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845499557.Field1[chckIndx(side_1845499554, 0, (s_1845499557.Field1).length - 1)].glass[chckIndx(2, 0, (s_1845499557.Field1[chckIndx(side_1845499554, 0, (s_1845499557.Field1).length - 1)].glass).length - 1)], some_1845499535({Field0: 5, Field1: HEX3Aanonymous_1845499513, Field2: HEX3Aanonymous_1845499474}), NTI1476395079); } -function HEX26_1845496890(x_1845496892, y_1845496893) { - var result_1845496894 = []; +function HEX26_1845499711(x_1845499713, y_1845499714) { + var result_1845499715 = []; - result_1845496894 = new Array(chckRange(addInt((x_1845496892).length, (y_1845496893).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1845496892).length, (y_1845496893).length), 0, 2147483647) ; ++i) { result_1845496894[i] = null; } Label1: { - var i_1845496912 = 0; - var colontmp__1845497730 = 0; - colontmp__1845497730 = subInt((x_1845496892).length, 1); - var res_1845497731 = 0; + result_1845499715 = new Array(chckRange(addInt((x_1845499713).length, (y_1845499714).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1845499713).length, (y_1845499714).length), 0, 2147483647) ; ++i) { result_1845499715[i] = null; } Label1: { + var i_1845499733 = 0; + var colontmp__1845500532 = 0; + colontmp__1845500532 = subInt((x_1845499713).length, 1); + var res_1845500533 = 0; Label2: { Label3: while (true) { - if (!(res_1845497731 <= colontmp__1845497730)) break Label3; - i_1845496912 = res_1845497731; - result_1845496894[chckIndx(i_1845496912, 0, (result_1845496894).length - 1)] = x_1845496892[chckIndx(i_1845496912, 0, (x_1845496892).length - 1)]; - res_1845497731 = addInt(res_1845497731, 1); + if (!(res_1845500533 <= colontmp__1845500532)) break Label3; + i_1845499733 = res_1845500533; + result_1845499715[chckIndx(i_1845499733, 0, (result_1845499715).length - 1)] = x_1845499713[chckIndx(i_1845499733, 0, (x_1845499713).length - 1)]; + res_1845500533 = addInt(res_1845500533, 1); } }; }; Label4: { - var i_1845496920 = 0; - var colontmp__1845497734 = 0; - colontmp__1845497734 = subInt((y_1845496893).length, 1); - var res_1845497735 = 0; + var i_1845499741 = 0; + var colontmp__1845500536 = 0; + colontmp__1845500536 = subInt((y_1845499714).length, 1); + var res_1845500537 = 0; Label5: { Label6: while (true) { - if (!(res_1845497735 <= colontmp__1845497734)) break Label6; - i_1845496920 = res_1845497735; - result_1845496894[chckIndx(addInt(i_1845496920, (x_1845496892).length), 0, (result_1845496894).length - 1)] = y_1845496893[chckIndx(i_1845496920, 0, (y_1845496893).length - 1)]; - res_1845497735 = addInt(res_1845497735, 1); + if (!(res_1845500537 <= colontmp__1845500536)) break Label6; + i_1845499741 = res_1845500537; + result_1845499715[chckIndx(addInt(i_1845499741, (x_1845499713).length), 0, (result_1845499715).length - 1)] = y_1845499714[chckIndx(i_1845499741, 0, (y_1845499714).length - 1)]; + res_1845500537 = addInt(res_1845500537, 1); } }; }; - return result_1845496894; + return result_1845499715; } -function shuffle_1845496933(r_1845496935, x_1845496936) { +function shuffle_1845499754(r_1845499756, x_1845499757) { Label1: { - var i_1845496945 = 0; - var colontmp__1845497738 = 0; - colontmp__1845497738 = (x_1845496936).length - 1; - var res_1845497739 = colontmp__1845497738; + var i_1845499766 = 0; + var colontmp__1845500540 = 0; + colontmp__1845500540 = (x_1845499757).length - 1; + var res_1845500541 = colontmp__1845500540; Label2: { Label3: while (true) { - if (!(1 <= res_1845497739)) break Label3; - i_1845496945 = res_1845497739; - var j_1845496946 = rand_1644167275(r_1845496935, chckRange(i_1845496945, 0, 2147483647)); - var Temporary4 = x_1845496936[chckIndx(i_1845496945, 0, (x_1845496936).length - 1)]; x_1845496936[chckIndx(i_1845496945, 0, (x_1845496936).length - 1)] = x_1845496936[chckIndx(j_1845496946, 0, (x_1845496936).length - 1)]; x_1845496936[chckIndx(j_1845496946, 0, (x_1845496936).length - 1)] = Temporary4; res_1845497739 = subInt(res_1845497739, 1); + if (!(1 <= res_1845500541)) break Label3; + i_1845499766 = res_1845500541; + var j_1845499767 = rand_1644167275(r_1845499756, chckRange(i_1845499766, 0, 2147483647)); + var Temporary4 = x_1845499757[chckIndx(i_1845499766, 0, (x_1845499757).length - 1)]; x_1845499757[chckIndx(i_1845499766, 0, (x_1845499757).length - 1)] = x_1845499757[chckIndx(j_1845499767, 0, (x_1845499757).length - 1)]; x_1845499757[chckIndx(j_1845499767, 0, (x_1845499757).length - 1)] = Temporary4; res_1845500541 = subInt(res_1845500541, 1); } }; }; @@ -6117,53 +6118,53 @@ function shuffle_1845496933(r_1845496935, x_1845496936) { } -function shuffle_1845496930(x_1845496932) { - shuffle_1845496933(state_1644167182[0], x_1845496932); +function shuffle_1845499751(x_1845499753) { + shuffle_1845499754(state_1644167182[0], x_1845499753); } -function HEX5BHEX5D_1845496977(s_1845496981, x_1845496982) { - var result_1845496983 = []; +function HEX5BHEX5D_1845499798(s_1845499802, x_1845499803) { + var result_1845499804 = []; - var a_1845496985 = x_1845496982.a; - var L_1845496987 = addInt(subInt(x_1845496982.b, a_1845496985), 1); - result_1845496983 = new Array(chckRange(L_1845496987, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_1845496987, 0, 2147483647) ; ++i) { result_1845496983[i] = null; } Label1: { - var i_1845496996 = 0; - var i_1845497742 = 0; + var a_1845499806 = x_1845499803.a; + var L_1845499808 = addInt(subInt(x_1845499803.b, a_1845499806), 1); + result_1845499804 = new Array(chckRange(L_1845499808, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_1845499808, 0, 2147483647) ; ++i) { result_1845499804[i] = null; } Label1: { + var i_1845499817 = 0; + var i_1845500544 = 0; Label2: { Label3: while (true) { - if (!(i_1845497742 < L_1845496987)) break Label3; - i_1845496996 = i_1845497742; - result_1845496983[chckIndx(i_1845496996, 0, (result_1845496983).length - 1)] = s_1845496981[chckIndx(addInt(i_1845496996, a_1845496985), 0, (s_1845496981).length - 1)]; - i_1845497742 = addInt(i_1845497742, 1); + if (!(i_1845500544 < L_1845499808)) break Label3; + i_1845499817 = i_1845500544; + result_1845499804[chckIndx(i_1845499817, 0, (result_1845499804).length - 1)] = s_1845499802[chckIndx(addInt(i_1845499817, a_1845499806), 0, (s_1845499802).length - 1)]; + i_1845500544 = addInt(i_1845500544, 1); } }; }; - return result_1845496983; + return result_1845499804; } -function HEX5BHEX5D_1845497006(s_1845497010, x_1845497011) { - var result_1845497012 = []; +function HEX5BHEX5D_1845499827(s_1845499831, x_1845499832) { + var result_1845499833 = []; - var a_1845497014 = x_1845497011.a; - var L_1845497019 = addInt(subInt(subInt((s_1845497010).length, x_1845497011.b), a_1845497014), 1); - result_1845497012 = new Array(chckRange(L_1845497019, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_1845497019, 0, 2147483647) ; ++i) { result_1845497012[i] = null; } Label1: { - var i_1845497028 = 0; - var i_1845497745 = 0; + var a_1845499835 = x_1845499832.a; + var L_1845499840 = addInt(subInt(subInt((s_1845499831).length, x_1845499832.b), a_1845499835), 1); + result_1845499833 = new Array(chckRange(L_1845499840, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_1845499840, 0, 2147483647) ; ++i) { result_1845499833[i] = null; } Label1: { + var i_1845499849 = 0; + var i_1845500547 = 0; Label2: { Label3: while (true) { - if (!(i_1845497745 < L_1845497019)) break Label3; - i_1845497028 = i_1845497745; - result_1845497012[chckIndx(i_1845497028, 0, (result_1845497012).length - 1)] = s_1845497010[chckIndx(addInt(i_1845497028, a_1845497014), 0, (s_1845497010).length - 1)]; - i_1845497745 = addInt(i_1845497745, 1); + if (!(i_1845500547 < L_1845499840)) break Label3; + i_1845499849 = i_1845500547; + result_1845499833[chckIndx(i_1845499849, 0, (result_1845499833).length - 1)] = s_1845499831[chckIndx(addInt(i_1845499849, a_1845499835), 0, (s_1845499831).length - 1)]; + i_1845500547 = addInt(i_1845500547, 1); } }; }; - return result_1845497012; + return result_1845499833; } @@ -6176,98 +6177,98 @@ function HEX2EHEX2E_1090519145(a_1090519148, b_1090519149) { } -function HEX3Aanonymous_1845496877(piece_1845496878, to_1845496879, b_1845496880, s_1845496881) { +function HEX3Aanonymous_1845499698(piece_1845499699, to_1845499700, b_1845499701, s_1845499702) { BeforeRet: { - if (((isAir_1476396035(HEX5BHEX5D_1476395363(b_1845496880, to_1845496879)) || (HEX5BHEX5D_1476395363(b_1845496880, to_1845496879).item == 0)) || (piece_1845496878.item == 0))) { + if (((isAir_1476396036(HEX5BHEX5D_1476395364(b_1845499701, to_1845499700)) || (HEX5BHEX5D_1476395364(b_1845499701, to_1845499700).item == 0)) || (piece_1845499699.item == 0))) { break BeforeRet; } - randomize_1644167430(BigInt(addInt(addInt(s_1845496881.Field0.randSeed, mulInt(piece_1845496878.tile.Field1, 10)), mulInt(piece_1845496878.tile.Field0, 100)))); - var allMoves_1845496924 = HEX26_1845496890(piece_1845496878.moves, HEX5BHEX5D_1476395363(b_1845496880, to_1845496879).moves); - var allTakes_1845496929 = HEX26_1845496890(piece_1845496878.takes, HEX5BHEX5D_1476395363(b_1845496880, to_1845496879).takes); - shuffle_1845496930(allMoves_1845496924); - shuffle_1845496930(allTakes_1845496929); - var casterMoves_1845496957 = (piece_1845496878.moves).length; - var casterTakes_1845496961 = (piece_1845496878.takes).length; - piece_1845496878.moves = nimCopy(null, HEX5BHEX5D_1845496977(allMoves_1845496924, HEX2EHEX2E_1174405168(0, subInt(casterMoves_1845496957, 1))), NTI1845496730); - HEX5BHEX5D_1476395363(b_1845496880, to_1845496879).moves = nimCopy(null, HEX5BHEX5D_1845497006(allMoves_1845496924, HEX2EHEX2E_1090519145(casterMoves_1845496957, 1)), NTI1845496757); - piece_1845496878.takes = nimCopy(null, HEX5BHEX5D_1845496977(allTakes_1845496929, HEX2EHEX2E_1174405168(0, subInt(casterTakes_1845496961, 1))), NTI1845496730); - HEX5BHEX5D_1476395363(b_1845496880, to_1845496879).takes = nimCopy(null, HEX5BHEX5D_1845497006(allTakes_1845496929, HEX2EHEX2E_1090519145(casterTakes_1845496961, 1)), NTI1845496757); + randomize_1644167430(BigInt(addInt(addInt(s_1845499702.Field0.randSeed, mulInt(piece_1845499699.tile.Field1, 10)), mulInt(piece_1845499699.tile.Field0, 100)))); + var allMoves_1845499745 = HEX26_1845499711(piece_1845499699.moves, HEX5BHEX5D_1476395364(b_1845499701, to_1845499700).moves); + var allTakes_1845499750 = HEX26_1845499711(piece_1845499699.takes, HEX5BHEX5D_1476395364(b_1845499701, to_1845499700).takes); + shuffle_1845499751(allMoves_1845499745); + shuffle_1845499751(allTakes_1845499750); + var casterMoves_1845499778 = (piece_1845499699.moves).length; + var casterTakes_1845499782 = (piece_1845499699.takes).length; + piece_1845499699.moves = nimCopy(null, HEX5BHEX5D_1845499798(allMoves_1845499745, HEX2EHEX2E_1174405168(0, subInt(casterMoves_1845499778, 1))), NTI1845498823); + HEX5BHEX5D_1476395364(b_1845499701, to_1845499700).moves = nimCopy(null, HEX5BHEX5D_1845499827(allMoves_1845499745, HEX2EHEX2E_1090519145(casterMoves_1845499778, 1)), NTI1845498850); + piece_1845499699.takes = nimCopy(null, HEX5BHEX5D_1845499798(allTakes_1845499750, HEX2EHEX2E_1174405168(0, subInt(casterTakes_1845499782, 1))), NTI1845498823); + HEX5BHEX5D_1476395364(b_1845499701, to_1845499700).takes = nimCopy(null, HEX5BHEX5D_1845499827(allTakes_1845499750, HEX2EHEX2E_1090519145(casterTakes_1845499782, 1)), NTI1845498850); }; } -function HEX3Aanonymous_1845496860(side_1845496861, piece_1845496862, b_1845496863, s_1845496864) { - var result_1845496865 = []; +function HEX3Aanonymous_1845499681(side_1845499682, piece_1845499683, b_1845499684, s_1845499685) { + var result_1845499686 = []; Label1: { - var i_1845496866 = 0; - var j_1845496867 = 0; + var i_1845499687 = 0; + var j_1845499688 = 0; Label2: { - var i_1845497749 = 0; - var i_1845497750 = 0; + var i_1845500551 = 0; + var i_1845500552 = 0; Label3: { Label4: while (true) { - if (!(i_1845497750 < 8)) break Label4; - i_1845497749 = i_1845497750; + if (!(i_1845500552 < 8)) break Label4; + i_1845500551 = i_1845500552; Label5: { - var j_1845497753 = 0; - var i_1845497754 = 0; + var j_1845500555 = 0; + var i_1845500556 = 0; Label6: { Label7: while (true) { - if (!(i_1845497754 < 8)) break Label7; - j_1845497753 = i_1845497754; - i_1845496866 = i_1845497749; - j_1845496867 = j_1845497753; - if ((!((b_1845496863[chckIndx(i_1845496866, 0, (b_1845496863).length - 1)][chckIndx(j_1845496867, 0, (b_1845496863[chckIndx(i_1845496866, 0, (b_1845496863).length - 1)]).length - 1)].item == 0)) && !(isAir_1476396035(b_1845496863[chckIndx(i_1845496866, 0, (b_1845496863).length - 1)][chckIndx(j_1845496867, 0, (b_1845496863[chckIndx(i_1845496866, 0, (b_1845496863).length - 1)]).length - 1)])))) { - var Temporary8 = nimCopy(null, b_1845496863[chckIndx(i_1845496866, 0, (b_1845496863).length - 1)][chckIndx(j_1845496867, 0, (b_1845496863[chckIndx(i_1845496866, 0, (b_1845496863).length - 1)]).length - 1)].tile, NTI1476395011); - result_1845496865.push(Temporary8);; + if (!(i_1845500556 < 8)) break Label7; + j_1845500555 = i_1845500556; + i_1845499687 = i_1845500551; + j_1845499688 = j_1845500555; + if ((!((b_1845499684[chckIndx(i_1845499687, 0, (b_1845499684).length - 1)][chckIndx(j_1845499688, 0, (b_1845499684[chckIndx(i_1845499687, 0, (b_1845499684).length - 1)]).length - 1)].item == 0)) && !(isAir_1476396036(b_1845499684[chckIndx(i_1845499687, 0, (b_1845499684).length - 1)][chckIndx(j_1845499688, 0, (b_1845499684[chckIndx(i_1845499687, 0, (b_1845499684).length - 1)]).length - 1)])))) { + var Temporary8 = nimCopy(null, b_1845499684[chckIndx(i_1845499687, 0, (b_1845499684).length - 1)][chckIndx(j_1845499688, 0, (b_1845499684[chckIndx(i_1845499687, 0, (b_1845499684).length - 1)]).length - 1)].tile, NTI1476395011); + result_1845499686.push(Temporary8);; } - i_1845497754 = addInt(i_1845497754, 1); + i_1845500556 = addInt(i_1845500556, 1); } }; }; - i_1845497750 = addInt(i_1845497750, 1); + i_1845500552 = addInt(i_1845500552, 1); } }; }; }; - return result_1845496865; + return result_1845499686; } -function HEX3Aanonymous_1845497066(side_1845497067, __1845497068, __1845497069, s_1845497070) { - s_1845497070.Field1[chckIndx(side_1845497067, 0, (s_1845497070.Field1).length - 1)].glass[chckIndx(3, 0, (s_1845497070.Field1[chckIndx(side_1845497067, 0, (s_1845497070.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845497070.Field1[chckIndx(side_1845497067, 0, (s_1845497070.Field1).length - 1)].glass[chckIndx(3, 0, (s_1845497070.Field1[chckIndx(side_1845497067, 0, (s_1845497070.Field1).length - 1)].glass).length - 1)], some_1845496679({Field0: 3, Field1: HEX3Aanonymous_1845496877, Field2: HEX3Aanonymous_1845496860}), NTI1476395079); +function HEX3Aanonymous_1845499887(side_1845499888, __1845499889, __1845499890, s_1845499891) { + s_1845499891.Field1[chckIndx(side_1845499888, 0, (s_1845499891.Field1).length - 1)].glass[chckIndx(3, 0, (s_1845499891.Field1[chckIndx(side_1845499888, 0, (s_1845499891.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845499891.Field1[chckIndx(side_1845499888, 0, (s_1845499891.Field1).length - 1)].glass[chckIndx(3, 0, (s_1845499891.Field1[chckIndx(side_1845499888, 0, (s_1845499891.Field1).length - 1)].glass).length - 1)], some_1845499535({Field0: 3, Field1: HEX3Aanonymous_1845499698, Field2: HEX3Aanonymous_1845499681}), NTI1476395079); } -function HEX3Aanonymous_1845497099(piece_1845497100, to_1845497101, b_1845497102, s_1845497103) { +function HEX3Aanonymous_1845499920(piece_1845499921, to_1845499922, b_1845499923, s_1845499924) { BeforeRet: { - if ((isAir_1476396035(HEX5BHEX5D_1476395363(b_1845497102, to_1845497101)) || HEX5BHEX5D_1476395363(b_1845497102, to_1845497101).promoted)) { + if ((isAir_1476396036(HEX5BHEX5D_1476395364(b_1845499923, to_1845499922)) || HEX5BHEX5D_1476395364(b_1845499923, to_1845499922).promoted)) { break BeforeRet; } Label1: { - var xHEX60gensym142_1845497108 = null; - var colontmp__1845497757 = []; - colontmp__1845497757 = HEX5BHEX5D_1476395363(b_1845497102, to_1845497101).onPromote; - var i_1845497758 = 0; - var L_1845497759 = (colontmp__1845497757).length; + var xHEX60gensym426_1845499929 = null; + var colontmp__1845500559 = []; + colontmp__1845500559 = HEX5BHEX5D_1476395364(b_1845499923, to_1845499922).onPromote; + var i_1845500560 = 0; + var L_1845500561 = (colontmp__1845500559).length; Label2: { Label3: while (true) { - if (!(i_1845497758 < L_1845497759)) break Label3; - xHEX60gensym142_1845497108 = colontmp__1845497757[chckIndx(i_1845497758, 0, (colontmp__1845497757).length - 1)]; - xHEX60gensym142_1845497108(HEX5BHEX5D_1476395363(b_1845497102, to_1845497101), b_1845497102, s_1845497103); - if (HEX5BHEX5D_1476395363(b_1845497102, to_1845497101).promoted) { + if (!(i_1845500560 < L_1845500561)) break Label3; + xHEX60gensym426_1845499929 = colontmp__1845500559[chckIndx(i_1845500560, 0, (colontmp__1845500559).length - 1)]; + xHEX60gensym426_1845499929(HEX5BHEX5D_1476395364(b_1845499923, to_1845499922), b_1845499923, s_1845499924); + if (HEX5BHEX5D_1476395364(b_1845499923, to_1845499922).promoted) { break Label1; } - i_1845497758 += 1; - if (!(((colontmp__1845497757).length == L_1845497759))) { + i_1845500560 += 1; + if (!(((colontmp__1845500559).length == L_1845500561))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -6279,49 +6280,49 @@ function HEX3Aanonymous_1845497099(piece_1845497100, to_1845497101, b_1845497102 } -function HEX3Aanonymous_1845497078(side_1845497079, piece_1845497080, b_1845497081, s_1845497082) { - var result_1845497083 = []; +function HEX3Aanonymous_1845499899(side_1845499900, piece_1845499901, b_1845499902, s_1845499903) { + var result_1845499904 = []; Label1: { - var i_1845497084 = 0; - var j_1845497085 = 0; + var i_1845499905 = 0; + var j_1845499906 = 0; Label2: { - var i_1845497763 = 0; - var i_1845497764 = 0; + var i_1845500565 = 0; + var i_1845500566 = 0; Label3: { Label4: while (true) { - if (!(i_1845497764 < 8)) break Label4; - i_1845497763 = i_1845497764; + if (!(i_1845500566 < 8)) break Label4; + i_1845500565 = i_1845500566; Label5: { - var j_1845497767 = 0; - var i_1845497768 = 0; + var j_1845500569 = 0; + var i_1845500570 = 0; Label6: { Label7: while (true) { - if (!(i_1845497768 < 8)) break Label7; - j_1845497767 = i_1845497768; - i_1845497084 = i_1845497763; - j_1845497085 = j_1845497767; - if (((isColor_1476396052(b_1845497081[chckIndx(i_1845497084, 0, (b_1845497081).length - 1)][chckIndx(j_1845497085, 0, (b_1845497081[chckIndx(i_1845497084, 0, (b_1845497081).length - 1)]).length - 1)], side_1845497079) && !(HEX3DHEX3D_1845496151(b_1845497081[chckIndx(i_1845497084, 0, (b_1845497081).length - 1)][chckIndx(j_1845497085, 0, (b_1845497081[chckIndx(i_1845497084, 0, (b_1845497081).length - 1)]).length - 1)].onPromote, [HEX3Aanonymous_1476395449]))) && !(b_1845497081[chckIndx(i_1845497084, 0, (b_1845497081).length - 1)][chckIndx(j_1845497085, 0, (b_1845497081[chckIndx(i_1845497084, 0, (b_1845497081).length - 1)]).length - 1)].promoted))) { - var Temporary8 = nimCopy(null, b_1845497081[chckIndx(i_1845497084, 0, (b_1845497081).length - 1)][chckIndx(j_1845497085, 0, (b_1845497081[chckIndx(i_1845497084, 0, (b_1845497081).length - 1)]).length - 1)].tile, NTI1476395011); - result_1845497083.push(Temporary8);; + if (!(i_1845500570 < 8)) break Label7; + j_1845500569 = i_1845500570; + i_1845499905 = i_1845500565; + j_1845499906 = j_1845500569; + if (((isColor_1476396053(b_1845499902[chckIndx(i_1845499905, 0, (b_1845499902).length - 1)][chckIndx(j_1845499906, 0, (b_1845499902[chckIndx(i_1845499905, 0, (b_1845499902).length - 1)]).length - 1)], side_1845499900) && !(HEX3DHEX3D_1845496151(b_1845499902[chckIndx(i_1845499905, 0, (b_1845499902).length - 1)][chckIndx(j_1845499906, 0, (b_1845499902[chckIndx(i_1845499905, 0, (b_1845499902).length - 1)]).length - 1)].onPromote, [HEX3Aanonymous_1476395450]))) && !(b_1845499902[chckIndx(i_1845499905, 0, (b_1845499902).length - 1)][chckIndx(j_1845499906, 0, (b_1845499902[chckIndx(i_1845499905, 0, (b_1845499902).length - 1)]).length - 1)].promoted))) { + var Temporary8 = nimCopy(null, b_1845499902[chckIndx(i_1845499905, 0, (b_1845499902).length - 1)][chckIndx(j_1845499906, 0, (b_1845499902[chckIndx(i_1845499905, 0, (b_1845499902).length - 1)]).length - 1)].tile, NTI1476395011); + result_1845499904.push(Temporary8);; } - i_1845497768 = addInt(i_1845497768, 1); + i_1845500570 = addInt(i_1845500570, 1); } }; }; - i_1845497764 = addInt(i_1845497764, 1); + i_1845500566 = addInt(i_1845500566, 1); } }; }; }; - return result_1845497083; + return result_1845499904; } -function HEX3Aanonymous_1845497112(side_1845497113, __1845497114, __1845497115, s_1845497116) { - s_1845497116.Field1[chckIndx(side_1845497113, 0, (s_1845497116.Field1).length - 1)].glass[chckIndx(4, 0, (s_1845497116.Field1[chckIndx(side_1845497113, 0, (s_1845497116.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845497116.Field1[chckIndx(side_1845497113, 0, (s_1845497116.Field1).length - 1)].glass[chckIndx(4, 0, (s_1845497116.Field1[chckIndx(side_1845497113, 0, (s_1845497116.Field1).length - 1)].glass).length - 1)], some_1845496679({Field0: 1, Field1: HEX3Aanonymous_1845497099, Field2: HEX3Aanonymous_1845497078}), NTI1476395079); +function HEX3Aanonymous_1845499933(side_1845499934, __1845499935, __1845499936, s_1845499937) { + s_1845499937.Field1[chckIndx(side_1845499934, 0, (s_1845499937.Field1).length - 1)].glass[chckIndx(4, 0, (s_1845499937.Field1[chckIndx(side_1845499934, 0, (s_1845499937.Field1).length - 1)].glass).length - 1)] = nimCopy(s_1845499937.Field1[chckIndx(side_1845499934, 0, (s_1845499937.Field1).length - 1)].glass[chckIndx(4, 0, (s_1845499937.Field1[chckIndx(side_1845499934, 0, (s_1845499937.Field1).length - 1)].glass).length - 1)], some_1845499535({Field0: 1, Field1: HEX3Aanonymous_1845499920, Field2: HEX3Aanonymous_1845499899}), NTI1476395079); } @@ -6392,30 +6393,30 @@ function HEX3Aanonymous_1845495184(piece_1845495185, board_1845495186, state_184 var i_1845495188 = 0; var j_1845495189 = 0; Label2: { - var i_1845497772 = 0; - var i_1845497773 = 0; + var i_1845500574 = 0; + var i_1845500575 = 0; Label3: { Label4: while (true) { - if (!(i_1845497773 < 8)) break Label4; - i_1845497772 = i_1845497773; + if (!(i_1845500575 < 8)) break Label4; + i_1845500574 = i_1845500575; Label5: { - var j_1845497776 = 0; - var i_1845497777 = 0; + var j_1845500578 = 0; + var i_1845500579 = 0; Label6: { Label7: while (true) { - if (!(i_1845497777 < 8)) break Label7; - j_1845497776 = i_1845497777; - i_1845495188 = i_1845497772; - j_1845495189 = j_1845497776; - if (((board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)].item == 0) && !(sameColor_1476396043(board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)], piece_1845495185)))) { - board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)] = nimCopy(board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)], pieceCopy_1476395899(air_1526726831, board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)].index, 6, 1, 0, 0, board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); + if (!(i_1845500579 < 8)) break Label7; + j_1845500578 = i_1845500579; + i_1845495188 = i_1845500574; + j_1845495189 = j_1845500578; + if (((board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)].item == 0) && !(sameColor_1476396044(board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)], piece_1845495185)))) { + board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)] = nimCopy(board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)].index, 6, 1, 0, 0, board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)][chckIndx(j_1845495189, 0, (board_1845495186[chckIndx(i_1845495188, 0, (board_1845495186).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } - i_1845497777 = addInt(i_1845497777, 1); + i_1845500579 = addInt(i_1845500579, 1); } }; }; - i_1845497773 = addInt(i_1845497773, 1); + i_1845500575 = addInt(i_1845500575, 1); } }; }; @@ -6436,15 +6437,15 @@ function HEX3Aanonymous_1845495990(piece_1845495991, taking_1845495992, board_18 randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845495991.tile.Field1), mulInt(100, piece_1845495991.tile.Field0)), state_1845495994.Field0.randSeed))); var dice_1845495995 = rand_1644167304(20); piece_1845495991.timesMoved = addInt(piece_1845495991.timesMoved, 1); - if (((dice_1845495995 <= 6) && !((HEX5BHEX5D_1476395363(board_1845495993, taking_1845495992).item == 0)))) { - HEX5BHEX5D_1476395363(board_1845495993, taking_1845495992).color = piece_1845495991.color; - HEX5BHEX5D_1476395363(board_1845495993, taking_1845495992).index = newIndex_1476395494(state_1845495994); - pieceSwap_1476395834(piece_1845495991, HEX5BHEX5D_1476395363(board_1845495993, taking_1845495992), board_1845495993); + if (((dice_1845495995 <= 6) && !((HEX5BHEX5D_1476395364(board_1845495993, taking_1845495992).item == 0)))) { + HEX5BHEX5D_1476395364(board_1845495993, taking_1845495992).color = piece_1845495991.color; + HEX5BHEX5D_1476395364(board_1845495993, taking_1845495992).index = newIndex_1476395495(state_1845495994); + pieceSwap_1476395835(piece_1845495991, HEX5BHEX5D_1476395364(board_1845495993, taking_1845495992), board_1845495993); } else { var takeResult_1845496005 = board_1845495993[chckIndx(taking_1845495992.Field1, 0, (board_1845495993).length - 1)][chckIndx(taking_1845495992.Field0, 0, (board_1845495993[chckIndx(taking_1845495992.Field1, 0, (board_1845495993).length - 1)]).length - 1)].whenTaken(board_1845495993[chckIndx(taking_1845495992.Field1, 0, (board_1845495993).length - 1)][chckIndx(taking_1845495992.Field0, 0, (board_1845495993[chckIndx(taking_1845495992.Field1, 0, (board_1845495993).length - 1)]).length - 1)], piece_1845495991, board_1845495993, state_1845495994); if (takeResult_1845496005.Field1) { - HEX5BHEX5D_1476395363(board_1845495993, takeResult_1845496005.Field0).piecesTaken = addInt(HEX5BHEX5D_1476395363(board_1845495993, takeResult_1845496005.Field0).piecesTaken, 1); + HEX5BHEX5D_1476395364(board_1845495993, takeResult_1845496005.Field0).piecesTaken = addInt(HEX5BHEX5D_1476395364(board_1845495993, takeResult_1845496005.Field0).piecesTaken, 1); } } @@ -6476,19 +6477,19 @@ function nsuFindChar(s_889194147, sub_889194148, start_889194149, last_889194150 var last_889194152 = Temporary1; Label2: { var iHEX60gensym176_889194166 = 0; - var colontmp__1845497793 = 0; - colontmp__1845497793 = start_889194149; - var res_1845497794 = colontmp__1845497793; + var colontmp__1845500595 = 0; + colontmp__1845500595 = start_889194149; + var res_1845500596 = colontmp__1845500595; Label3: { Label4: while (true) { - if (!(res_1845497794 <= last_889194152)) break Label4; - iHEX60gensym176_889194166 = res_1845497794; + if (!(res_1845500596 <= last_889194152)) break Label4; + iHEX60gensym176_889194166 = res_1845500596; if ((s_889194147[chckIndx(iHEX60gensym176_889194166, 0, (s_889194147).length - 1)] == sub_889194148)) { result_889194151 = iHEX60gensym176_889194166; break BeforeRet; } - res_1845497794 = addInt(res_1845497794, 1); + res_1845500596 = addInt(res_1845500596, 1); } }; }; @@ -6562,15 +6563,15 @@ function nsuInitSkipTable(a_889194067, sub_889194068) { fill_889194070(a_889194067, m_889194069); Label1: { var i_889194089 = 0; - var colontmp__1845497799 = 0; - colontmp__1845497799 = subInt(m_889194069, 1); - var i_1845497800 = 0; + var colontmp__1845500601 = 0; + colontmp__1845500601 = subInt(m_889194069, 1); + var i_1845500602 = 0; Label2: { Label3: while (true) { - if (!(i_1845497800 < colontmp__1845497799)) break Label3; - i_889194089 = i_1845497800; + if (!(i_1845500602 < colontmp__1845500601)) break Label3; + i_889194089 = i_1845500602; a_889194067[chckIndx(sub_889194068[chckIndx(i_889194089, 0, (sub_889194068).length - 1)], 0, (a_889194067).length - 1)] = subInt(subInt(m_889194069, 1), i_889194089); - i_1845497800 = addInt(i_1845497800, 1); + i_1845500602 = addInt(i_1845500602, 1); } }; }; @@ -6620,55 +6621,55 @@ function contains_889194326(s_889194327, sub_889194328) { } -function HEX3Aanonymous_1845496709(piece_1845496710, b_1845496711, state_1845496712) { +function HEX3Aanonymous_1845499565(piece_1845499566, b_1845499567, state_1845499568) { var Temporary11; Label1: { - var i_1845496713 = 0; - var j_1845496714 = 0; + var i_1845499569 = 0; + var j_1845499570 = 0; Label2: { - var i_1845497811 = 0; - var i_1845497812 = 0; + var i_1845500613 = 0; + var i_1845500614 = 0; Label3: { Label4: while (true) { - if (!(i_1845497812 < 8)) break Label4; - i_1845497811 = i_1845497812; + if (!(i_1845500614 < 8)) break Label4; + i_1845500613 = i_1845500614; Label5: { - var j_1845497815 = 0; - var i_1845497816 = 0; + var j_1845500617 = 0; + var i_1845500618 = 0; Label6: { Label7: while (true) { - if (!(i_1845497816 < 8)) break Label7; - j_1845497815 = i_1845497816; - i_1845496713 = i_1845497811; - j_1845496714 = j_1845497815; + if (!(i_1845500618 < 8)) break Label7; + j_1845500617 = i_1845500618; + i_1845499569 = i_1845500613; + j_1845499570 = j_1845500617; Label8: { - var c_1845496737 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - var colontmp__1845497805 = []; - colontmp__1845497805 = b_1845496711[chckIndx(i_1845496713, 0, (b_1845496711).length - 1)][chckIndx(j_1845496714, 0, (b_1845496711[chckIndx(i_1845496713, 0, (b_1845496711).length - 1)]).length - 1)].casts; - var i_1845497807 = 0; - var L_1845497808 = (colontmp__1845497805).length; + var c_1845499574 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__1845500607 = []; + colontmp__1845500607 = b_1845499567[chckIndx(i_1845499569, 0, (b_1845499567).length - 1)][chckIndx(j_1845499570, 0, (b_1845499567[chckIndx(i_1845499569, 0, (b_1845499567).length - 1)]).length - 1)].casts; + var i_1845500609 = 0; + var L_1845500610 = (colontmp__1845500607).length; Label9: { Label10: while (true) { - if (!(i_1845497807 < L_1845497808)) break Label10; - c_1845496737 = colontmp__1845497805[chckIndx(i_1845497807, 0, (colontmp__1845497805).length - 1)]; - if ((c_1845496737.Field2 == 0)) { - piece_1845496710.onTake(piece_1845496710, (Temporary11 = getTakesOn_1476395510(piece_1845496710, b_1845496711), Temporary11)[chckIndx(0, 0, (Temporary11).length - 1)], b_1845496711, state_1845496712); + if (!(i_1845500609 < L_1845500610)) break Label10; + c_1845499574 = colontmp__1845500607[chckIndx(i_1845500609, 0, (colontmp__1845500607).length - 1)]; + if ((c_1845499574.Field2 == 0)) { + piece_1845499566.onTake(piece_1845499566, (Temporary11 = getTakesOn_1476395511(piece_1845499566, b_1845499567), Temporary11)[chckIndx(0, 0, (Temporary11).length - 1)], b_1845499567, state_1845499568); } - i_1845497807 += 1; - if (!(((colontmp__1845497805).length == L_1845497808))) { + i_1845500609 += 1; + if (!(((colontmp__1845500607).length == L_1845500610))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - i_1845497816 = addInt(i_1845497816, 1); + i_1845500618 = addInt(i_1845500618, 1); } }; }; - i_1845497812 = addInt(i_1845497812, 1); + i_1845500614 = addInt(i_1845500614, 1); } }; }; @@ -6677,35 +6678,35 @@ function HEX3Aanonymous_1845496709(piece_1845496710, b_1845496711, state_1845496 } -function HEX3Aanonymous_1845496762(side_1845496763, __1845496764, b_1845496765, s_1845496766) { +function HEX3Aanonymous_1845499583(side_1845499584, __1845499585, b_1845499586, s_1845499587) { Label1: { - var i_1845496767 = 0; - var j_1845496768 = 0; + var i_1845499588 = 0; + var j_1845499589 = 0; Label2: { - var i_1845497781 = 0; - var i_1845497782 = 0; + var i_1845500583 = 0; + var i_1845500584 = 0; Label3: { Label4: while (true) { - if (!(i_1845497782 < 8)) break Label4; - i_1845497781 = i_1845497782; + if (!(i_1845500584 < 8)) break Label4; + i_1845500583 = i_1845500584; Label5: { - var j_1845497785 = 0; - var i_1845497786 = 0; + var j_1845500587 = 0; + var i_1845500588 = 0; Label6: { Label7: while (true) { - if (!(i_1845497786 < 8)) break Label7; - j_1845497785 = i_1845497786; - i_1845496767 = i_1845497781; - j_1845496768 = j_1845497785; - if ((isColor_1476396052(b_1845496765[chckIndx(i_1845496767, 0, (b_1845496765).length - 1)][chckIndx(j_1845496768, 0, (b_1845496765[chckIndx(i_1845496767, 0, (b_1845496765).length - 1)]).length - 1)], side_1845496763) && contains_889194326(b_1845496765[chckIndx(i_1845496767, 0, (b_1845496765).length - 1)][chckIndx(j_1845496768, 0, (b_1845496765[chckIndx(i_1845496767, 0, (b_1845496765).length - 1)]).length - 1)].filePath, [108,97,110,99,101]))) { - b_1845496765[chckIndx(i_1845496767, 0, (b_1845496765).length - 1)][chckIndx(j_1845496768, 0, (b_1845496765[chckIndx(i_1845496767, 0, (b_1845496765).length - 1)]).length - 1)].onEndTurn.push(HEX3Aanonymous_1845496709);; + if (!(i_1845500588 < 8)) break Label7; + j_1845500587 = i_1845500588; + i_1845499588 = i_1845500583; + j_1845499589 = j_1845500587; + if ((isColor_1476396053(b_1845499586[chckIndx(i_1845499588, 0, (b_1845499586).length - 1)][chckIndx(j_1845499589, 0, (b_1845499586[chckIndx(i_1845499588, 0, (b_1845499586).length - 1)]).length - 1)], side_1845499584) && contains_889194326(b_1845499586[chckIndx(i_1845499588, 0, (b_1845499586).length - 1)][chckIndx(j_1845499589, 0, (b_1845499586[chckIndx(i_1845499588, 0, (b_1845499586).length - 1)]).length - 1)].filePath, [108,97,110,99,101]))) { + b_1845499586[chckIndx(i_1845499588, 0, (b_1845499586).length - 1)][chckIndx(j_1845499589, 0, (b_1845499586[chckIndx(i_1845499588, 0, (b_1845499586).length - 1)]).length - 1)].onEndTurn.push(HEX3Aanonymous_1845499565);; } - i_1845497786 = addInt(i_1845497786, 1); + i_1845500588 = addInt(i_1845500588, 1); } }; }; - i_1845497782 = addInt(i_1845497782, 1); + i_1845500584 = addInt(i_1845500584, 1); } }; }; @@ -6738,36 +6739,36 @@ function HEX3Aanonymous_1845494799(side_1845494800, viewSide_1845494801, b_18454 var i_1845494804 = 0; var j_1845494805 = 0; Label2: { - var i_1845497820 = 0; - var i_1845497821 = 0; + var i_1845500622 = 0; + var i_1845500623 = 0; Label3: { Label4: while (true) { - if (!(i_1845497821 < 8)) break Label4; - i_1845497820 = i_1845497821; + if (!(i_1845500623 < 8)) break Label4; + i_1845500622 = i_1845500623; Label5: { - var j_1845497824 = 0; - var i_1845497825 = 0; + var j_1845500626 = 0; + var i_1845500627 = 0; Label6: { Label7: while (true) { - if (!(i_1845497825 < 8)) break Label7; - j_1845497824 = i_1845497825; - i_1845494804 = i_1845497820; - j_1845494805 = j_1845497824; - if ((!((b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].item == 1)) && isColor_1476396052(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], side_1845494800))) { - b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)] = nimCopy(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], pieceCopy_1476395899(air_1526726831, b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); + if (!(i_1845500627 < 8)) break Label7; + j_1845500626 = i_1845500627; + i_1845494804 = i_1845500622; + j_1845494805 = j_1845500626; + if ((!((b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].item == 1)) && isColor_1476396053(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], side_1845494800))) { + b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)] = nimCopy(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } else { - if (((b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].item == 1) && isColor_1476396052(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], side_1845494800))) { + if (((b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].item == 1) && isColor_1476396053(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], side_1845494800))) { add_1845493814(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], "moves", [HEX3Aanonymous_1543504322, HEX3Aanonymous_1862271176]); add_1845493814(b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)], "takes", [HEX3Aanonymous_1543504327, HEX3Aanonymous_1862271171]); b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)][chckIndx(j_1845494805, 0, (b_1845494802[chckIndx(i_1845494804, 0, (b_1845494802).length - 1)]).length - 1)].item = 0; } } - i_1845497825 = addInt(i_1845497825, 1); + i_1845500627 = addInt(i_1845500627, 1); } }; }; - i_1845497821 = addInt(i_1845497821, 1); + i_1845500623 = addInt(i_1845500623, 1); } }; }; @@ -6778,12 +6779,12 @@ function HEX3Aanonymous_1845494799(side_1845494800, viewSide_1845494801, b_18454 function HEX3Aanonymous_1845494957(side_1845494958, viewSide_1845494959, b_1845494960, s_1845494961) { if ((side_1845494958 == 0)) { - pieceMove_1476395795(b_1845494960[chckIndx(1, 0, (b_1845494960).length - 1)][chckIndx(3, 0, (b_1845494960[chckIndx(1, 0, (b_1845494960).length - 1)]).length - 1)], 3, 3, b_1845494960, s_1845494961); - pieceMove_1476395795(b_1845494960[chckIndx(1, 0, (b_1845494960).length - 1)][chckIndx(4, 0, (b_1845494960[chckIndx(1, 0, (b_1845494960).length - 1)]).length - 1)], 3, 4, b_1845494960, s_1845494961); + pieceMove_1476395796(b_1845494960[chckIndx(1, 0, (b_1845494960).length - 1)][chckIndx(3, 0, (b_1845494960[chckIndx(1, 0, (b_1845494960).length - 1)]).length - 1)], 3, 3, b_1845494960, s_1845494961); + pieceMove_1476395796(b_1845494960[chckIndx(1, 0, (b_1845494960).length - 1)][chckIndx(4, 0, (b_1845494960[chckIndx(1, 0, (b_1845494960).length - 1)]).length - 1)], 3, 4, b_1845494960, s_1845494961); } else { - pieceMove_1476395795(b_1845494960[chckIndx(6, 0, (b_1845494960).length - 1)][chckIndx(3, 0, (b_1845494960[chckIndx(6, 0, (b_1845494960).length - 1)]).length - 1)], 4, 3, b_1845494960, s_1845494961); - pieceMove_1476395795(b_1845494960[chckIndx(6, 0, (b_1845494960).length - 1)][chckIndx(4, 0, (b_1845494960[chckIndx(6, 0, (b_1845494960).length - 1)]).length - 1)], 4, 4, b_1845494960, s_1845494961); + pieceMove_1476395796(b_1845494960[chckIndx(6, 0, (b_1845494960).length - 1)][chckIndx(3, 0, (b_1845494960[chckIndx(6, 0, (b_1845494960).length - 1)]).length - 1)], 4, 3, b_1845494960, s_1845494961); + pieceMove_1476395796(b_1845494960[chckIndx(6, 0, (b_1845494960).length - 1)][chckIndx(4, 0, (b_1845494960[chckIndx(6, 0, (b_1845494960).length - 1)]).length - 1)], 4, 4, b_1845494960, s_1845494961); } @@ -6795,40 +6796,40 @@ function HEX3Aanonymous_1845494831(side_1845494832, viewSide_1845494833, b_18454 var i_1845494836 = 0; var j_1845494837 = 0; Label2: { - var i_1845497829 = 0; - var i_1845497830 = 0; + var i_1845500631 = 0; + var i_1845500632 = 0; Label3: { Label4: while (true) { - if (!(i_1845497830 < 8)) break Label4; - i_1845497829 = i_1845497830; + if (!(i_1845500632 < 8)) break Label4; + i_1845500631 = i_1845500632; Label5: { - var j_1845497833 = 0; - var i_1845497834 = 0; + var j_1845500635 = 0; + var i_1845500636 = 0; Label6: { Label7: while (true) { - if (!(i_1845497834 < 8)) break Label7; - j_1845497833 = i_1845497834; - i_1845494836 = i_1845497829; - j_1845494837 = j_1845497833; - if ((!((b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].item == 1)) && isColor_1476396052(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], side_1845494832))) { - b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)] = nimCopy(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], pieceCopy_1476395899(air_1526726831, b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); + if (!(i_1845500636 < 8)) break Label7; + j_1845500635 = i_1845500636; + i_1845494836 = i_1845500631; + j_1845494837 = j_1845500635; + if ((!((b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].item == 1)) && isColor_1476396053(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], side_1845494832))) { + b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)] = nimCopy(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } else { - if (((b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].item == 1) && isColor_1476396052(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], side_1845494832))) { + if (((b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].item == 1) && isColor_1476396053(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], side_1845494832))) { add_1845493814(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], "moves", [HEX3Aanonymous_1543504322, HEX3Aanonymous_1862271176, HEX3Aanonymous_1862271274, HEX3Aanonymous_1862271264]); add_1845493814(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], "takes", [HEX3Aanonymous_1543504327, HEX3Aanonymous_1862271171, HEX3Aanonymous_1862271279, HEX3Aanonymous_1862271269]); b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].item = 0; } else { - if (((b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].item == 2) && !(isColor_1476396052(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], side_1845494832)))) { - b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)] = nimCopy(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], pieceCopy_1476395899(air_1526726831, b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); + if (((b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].item == 2) && !(isColor_1476396053(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], side_1845494832)))) { + b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)] = nimCopy(b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].index, 6, 1, 0, 0, b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)][chckIndx(j_1845494837, 0, (b_1845494834[chckIndx(i_1845494836, 0, (b_1845494834).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } }} - i_1845497834 = addInt(i_1845497834, 1); + i_1845500636 = addInt(i_1845500636, 1); } }; }; - i_1845497830 = addInt(i_1845497830, 1); + i_1845500632 = addInt(i_1845500632, 1); } }; }; @@ -6844,22 +6845,22 @@ function HEX3Aanonymous_1845495818(side_1845495819, __1845495820, b_1845495821, var i_1845495823 = 0; var j_1845495824 = 0; Label2: { - var i_1845497838 = 0; - var i_1845497839 = 0; + var i_1845500640 = 0; + var i_1845500641 = 0; Label3: { Label4: while (true) { - if (!(i_1845497839 < 8)) break Label4; - i_1845497838 = i_1845497839; + if (!(i_1845500641 < 8)) break Label4; + i_1845500640 = i_1845500641; Label5: { - var j_1845497842 = 0; - var i_1845497843 = 0; + var j_1845500644 = 0; + var i_1845500645 = 0; Label6: { Label7: while (true) { - if (!(i_1845497843 < 8)) break Label7; - j_1845497842 = i_1845497843; - i_1845495823 = i_1845497838; - j_1845495824 = j_1845497842; - if ((((b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].item == 5) && isColor_1476396052(b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)], side_1845495819)) && (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].timesMoved == 1))) { + if (!(i_1845500645 < 8)) break Label7; + j_1845500644 = i_1845500645; + i_1845495823 = i_1845500640; + j_1845495824 = j_1845500644; + if ((((b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].item == 5) && isColor_1476396053(b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)], side_1845495819)) && (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].timesMoved == 1))) { if ((side_1845495819 == 0)) { Temporary8 = (-1); } @@ -6869,14 +6870,14 @@ function HEX3Aanonymous_1845495818(side_1845495819, __1845495820, b_1845495821, var back_1845495833 = Temporary8; b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].timesMoved = addInt(b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].timesMoved, 1); - pieceMove_1476395795(b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)], addInt(b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].tile.Field1, back_1845495833), b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].tile.Field0, b_1845495821, s_1845495822); + pieceMove_1476395796(b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)], addInt(b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].tile.Field1, back_1845495833), b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)][chckIndx(j_1845495824, 0, (b_1845495821[chckIndx(i_1845495823, 0, (b_1845495821).length - 1)]).length - 1)].tile.Field0, b_1845495821, s_1845495822); } - i_1845497843 = addInt(i_1845497843, 1); + i_1845500645 = addInt(i_1845500645, 1); } }; }; - i_1845497839 = addInt(i_1845497839, 1); + i_1845500641 = addInt(i_1845500641, 1); } }; }; @@ -6891,30 +6892,30 @@ function HEX3Aanonymous_1845495853(piece_1845495854, board_1845495855, state_184 var i_1845495857 = 0; var j_1845495858 = 0; Label2: { - var i_1845497847 = 0; - var i_1845497848 = 0; + var i_1845500649 = 0; + var i_1845500650 = 0; Label3: { Label4: while (true) { - if (!(i_1845497848 < 8)) break Label4; - i_1845497847 = i_1845497848; + if (!(i_1845500650 < 8)) break Label4; + i_1845500649 = i_1845500650; Label5: { - var j_1845497851 = 0; - var i_1845497852 = 0; + var j_1845500653 = 0; + var i_1845500654 = 0; Label6: { Label7: while (true) { - if (!(i_1845497852 < 8)) break Label7; - j_1845497851 = i_1845497852; - i_1845495857 = i_1845497847; - j_1845495858 = j_1845497851; - if (((board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)].item == 0) && !(sameColor_1476396043(board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)], piece_1845495854)))) { - board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)] = nimCopy(board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)], pieceCopy_1476395899(air_1526726831, board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)].index, 6, 1, 0, 0, board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); + if (!(i_1845500654 < 8)) break Label7; + j_1845500653 = i_1845500654; + i_1845495857 = i_1845500649; + j_1845495858 = j_1845500653; + if (((board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)].item == 0) && !(sameColor_1476396044(board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)], piece_1845495854)))) { + board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)] = nimCopy(board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)].index, 6, 1, 0, 0, board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)][chckIndx(j_1845495858, 0, (board_1845495855[chckIndx(i_1845495857, 0, (board_1845495855).length - 1)]).length - 1)].tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); } - i_1845497852 = addInt(i_1845497852, 1); + i_1845500654 = addInt(i_1845500654, 1); } }; }; - i_1845497848 = addInt(i_1845497848, 1); + i_1845500650 = addInt(i_1845500650, 1); } }; }; @@ -6944,29 +6945,29 @@ function HEX26_1845495491(x_1845495493, y_1845495494) { result_1845495495 = new Array(chckRange(addInt((x_1845495493).length, (y_1845495494).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1845495493).length, (y_1845495494).length), 0, 2147483647) ; ++i) { result_1845495495[i] = {Field0: 0, Field1: 0}; } Label1: { var i_1845495513 = 0; - var colontmp__1845497869 = 0; - colontmp__1845497869 = subInt((x_1845495493).length, 1); - var res_1845497870 = 0; + var colontmp__1845500671 = 0; + colontmp__1845500671 = subInt((x_1845495493).length, 1); + var res_1845500672 = 0; Label2: { Label3: while (true) { - if (!(res_1845497870 <= colontmp__1845497869)) break Label3; - i_1845495513 = res_1845497870; + if (!(res_1845500672 <= colontmp__1845500671)) break Label3; + i_1845495513 = res_1845500672; result_1845495495[chckIndx(i_1845495513, 0, (result_1845495495).length - 1)] = nimCopy(result_1845495495[chckIndx(i_1845495513, 0, (result_1845495495).length - 1)], x_1845495493[chckIndx(i_1845495513, 0, (x_1845495493).length - 1)], NTI1476395011); - res_1845497870 = addInt(res_1845497870, 1); + res_1845500672 = addInt(res_1845500672, 1); } }; }; Label4: { var i_1845495521 = 0; - var colontmp__1845497873 = 0; - colontmp__1845497873 = subInt((y_1845495494).length, 1); - var res_1845497874 = 0; + var colontmp__1845500675 = 0; + colontmp__1845500675 = subInt((y_1845495494).length, 1); + var res_1845500676 = 0; Label5: { Label6: while (true) { - if (!(res_1845497874 <= colontmp__1845497873)) break Label6; - i_1845495521 = res_1845497874; + if (!(res_1845500676 <= colontmp__1845500675)) break Label6; + i_1845495521 = res_1845500676; result_1845495495[chckIndx(addInt(i_1845495521, (x_1845495493).length), 0, (result_1845495495).length - 1)] = nimCopy(result_1845495495[chckIndx(addInt(i_1845495521, (x_1845495493).length), 0, (result_1845495495).length - 1)], y_1845495494[chckIndx(i_1845495521, 0, (y_1845495494).length - 1)], NTI1476395011); - res_1845497874 = addInt(res_1845497874, 1); + res_1845500676 = addInt(res_1845500676, 1); } }; }; @@ -6980,18 +6981,18 @@ function HEX3Aanonymous_1845495485(piece_1845495486, board_1845495487, state_184 if (!(piece_1845495486.drunk)) { piece_1845495486.drunk = true; randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845495486.tile.Field1), mulInt(100, piece_1845495486.tile.Field0)), state_1845495488.Field0.randSeed))); - var takes_1845495489 = getTakesOn_1476395510(piece_1845495486, board_1845495487); - var moves_1845495490 = getMovesOn_1476395625(piece_1845495486, board_1845495487); + var takes_1845495489 = getTakesOn_1476395511(piece_1845495486, board_1845495487); + var moves_1845495490 = getMovesOn_1476395626(piece_1845495486, board_1845495487); if (((HEX26_1845495491(moves_1845495490, takes_1845495489)).length == 0)) { break BeforeRet; } var randomAction_1845495535 = nimCopy(null, sample_1845495455(HEX26_1845495491(moves_1845495490, takes_1845495489)), NTI1476395011); - if (contains_1476395660(takes_1845495489, randomAction_1845495535)) { + if (contains_1476395661(takes_1845495489, randomAction_1845495535)) { piece_1845495486.onTake(piece_1845495486, randomAction_1845495535, board_1845495487, state_1845495488); } else { - if (contains_1476395660(moves_1845495490, randomAction_1845495535)) { + if (contains_1476395661(moves_1845495490, randomAction_1845495535)) { piece_1845495486.onMove(piece_1845495486, randomAction_1845495535, board_1845495487, state_1845495488); } } @@ -7007,39 +7008,39 @@ function HEX3Aanonymous_1845495569(side_1845495570, __1845495571, b_1845495572, var i_1845495574 = 0; var j_1845495575 = 0; Label2: { - var i_1845497861 = 0; - var i_1845497862 = 0; + var i_1845500663 = 0; + var i_1845500664 = 0; Label3: { Label4: while (true) { - if (!(i_1845497862 < 8)) break Label4; - i_1845497861 = i_1845497862; + if (!(i_1845500664 < 8)) break Label4; + i_1845500663 = i_1845500664; Label5: { - var j_1845497865 = 0; - var i_1845497866 = 0; + var j_1845500667 = 0; + var i_1845500668 = 0; Label6: { Label7: while (true) { - if (!(i_1845497866 < 8)) break Label7; - j_1845497865 = i_1845497866; - i_1845495574 = i_1845497861; - j_1845495575 = j_1845497865; - if ((contains_889194326(b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)][chckIndx(j_1845495575, 0, (b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)]).length - 1)].filePath, [110,105,103,104,116,114,105,100,101,114]) && isColor_1476396052(b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)][chckIndx(j_1845495575, 0, (b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)]).length - 1)], side_1845495570))) { + if (!(i_1845500668 < 8)) break Label7; + j_1845500667 = i_1845500668; + i_1845495574 = i_1845500663; + j_1845495575 = j_1845500667; + if ((contains_889194326(b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)][chckIndx(j_1845495575, 0, (b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)]).length - 1)].filePath, [110,105,103,104,116,114,105,100,101,114]) && isColor_1476396053(b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)][chckIndx(j_1845495575, 0, (b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)]).length - 1)], side_1845495570))) { var resultHEX60gensym76_1845495585 = newSeq_1845495577(0); Label8: { var it_1845495589 = null; - var colontmp__1845497856 = []; - colontmp__1845497856 = b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)][chckIndx(j_1845495575, 0, (b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)]).length - 1)].onEndTurn; - var i_1845497857 = 0; - var L_1845497858 = (colontmp__1845497856).length; + var colontmp__1845500658 = []; + colontmp__1845500658 = b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)][chckIndx(j_1845495575, 0, (b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)]).length - 1)].onEndTurn; + var i_1845500659 = 0; + var L_1845500660 = (colontmp__1845500658).length; Label9: { Label10: while (true) { - if (!(i_1845497857 < L_1845497858)) break Label10; - it_1845495589 = colontmp__1845497856[chckIndx(i_1845497857, 0, (colontmp__1845497856).length - 1)]; + if (!(i_1845500659 < L_1845500660)) break Label10; + it_1845495589 = colontmp__1845500658[chckIndx(i_1845500659, 0, (colontmp__1845500658).length - 1)]; if (!((it_1845495589 == HEX3Aanonymous_1845495429))) { resultHEX60gensym76_1845495585.push(it_1845495589);; } - i_1845497857 += 1; - if (!(((colontmp__1845497856).length == L_1845497858))) { + i_1845500659 += 1; + if (!(((colontmp__1845500658).length == L_1845500660))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -7050,11 +7051,11 @@ function HEX3Aanonymous_1845495569(side_1845495570, __1845495571, b_1845495572, b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)][chckIndx(j_1845495575, 0, (b_1845495572[chckIndx(i_1845495574, 0, (b_1845495572).length - 1)]).length - 1)].onEndTurn.push(HEX3Aanonymous_1845495485);; } - i_1845497866 = addInt(i_1845497866, 1); + i_1845500668 = addInt(i_1845500668, 1); } }; }; - i_1845497862 = addInt(i_1845497862, 1); + i_1845500664 = addInt(i_1845500664, 1); } }; }; @@ -7063,42 +7064,42 @@ function HEX3Aanonymous_1845495569(side_1845495570, __1845495571, b_1845495572, } -function delete_1845497150(x_1845497152, x_1845497152_Idx, i_1845497153) { - x_1845497152[x_1845497152_Idx].splice(i_1845497153, 1); +function delete_1845499971(x_1845499973, x_1845499973_Idx, i_1845499974) { + x_1845499973[x_1845499973_Idx].splice(i_1845499974, 1); } -function find_1845497131(a_1845497134, item_1845497135) { - var result_1845497136 = 0; +function find_1845499952(a_1845499955, item_1845499956) { + var result_1845499957 = 0; BeforeRet: { - result_1845497136 = 0; + result_1845499957 = 0; Label1: { - var i_1845497140 = null; - var i_1845497882 = 0; - var L_1845497883 = (a_1845497134).length; + var i_1845499961 = null; + var i_1845500684 = 0; + var L_1845500685 = (a_1845499955).length; Label2: { Label3: while (true) { - if (!(i_1845497882 < L_1845497883)) break Label3; - i_1845497140 = a_1845497134[chckIndx(i_1845497882, 0, (a_1845497134).length - 1)]; - if ((i_1845497140 == item_1845497135)) { + if (!(i_1845500684 < L_1845500685)) break Label3; + i_1845499961 = a_1845499955[chckIndx(i_1845500684, 0, (a_1845499955).length - 1)]; + if ((i_1845499961 == item_1845499956)) { break BeforeRet; } - result_1845497136 = addInt(result_1845497136, 1); - i_1845497882 += 1; - if (!(((a_1845497134).length == L_1845497883))) { + result_1845499957 = addInt(result_1845499957, 1); + i_1845500684 += 1; + if (!(((a_1845499955).length == L_1845500685))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - result_1845497136 = (-1); + result_1845499957 = (-1); }; - return result_1845497136; + return result_1845499957; } @@ -7131,10 +7132,10 @@ function HEX3Aanonymous_1862271022(board_1862271023, p_1862271024) { function HEX3Aanonymous_1862271335(board_1862271336, p_1862271337) { var result_1862271338 = [[]]; - add_1476395537(result_1862271338, 0, HEX3Aanonymous_1862271016(board_1862271336, p_1862271337)); - add_1476395537(result_1862271338, 0, HEX3Aanonymous_1862271022(board_1862271336, p_1862271337)); - add_1476395537(result_1862271338, 0, HEX3Aanonymous_1862271079(board_1862271336, p_1862271337)); - add_1476395537(result_1862271338, 0, HEX3Aanonymous_1862271085(board_1862271336, p_1862271337)); + add_1476395538(result_1862271338, 0, HEX3Aanonymous_1862271016(board_1862271336, p_1862271337)); + add_1476395538(result_1862271338, 0, HEX3Aanonymous_1862271022(board_1862271336, p_1862271337)); + add_1476395538(result_1862271338, 0, HEX3Aanonymous_1862271079(board_1862271336, p_1862271337)); + add_1476395538(result_1862271338, 0, HEX3Aanonymous_1862271085(board_1862271336, p_1862271337)); return result_1862271338[0]; @@ -7169,110 +7170,110 @@ function HEX3Aanonymous_1862271034(board_1862271035, p_1862271036) { function HEX3Aanonymous_1862271356(board_1862271357, p_1862271358) { var result_1862271359 = [[]]; - add_1476395537(result_1862271359, 0, HEX3Aanonymous_1862271028(board_1862271357, p_1862271358)); - add_1476395537(result_1862271359, 0, HEX3Aanonymous_1862271034(board_1862271357, p_1862271358)); - add_1476395537(result_1862271359, 0, HEX3Aanonymous_1862271067(board_1862271357, p_1862271358)); - add_1476395537(result_1862271359, 0, HEX3Aanonymous_1862271073(board_1862271357, p_1862271358)); + add_1476395538(result_1862271359, 0, HEX3Aanonymous_1862271028(board_1862271357, p_1862271358)); + add_1476395538(result_1862271359, 0, HEX3Aanonymous_1862271034(board_1862271357, p_1862271358)); + add_1476395538(result_1862271359, 0, HEX3Aanonymous_1862271067(board_1862271357, p_1862271358)); + add_1476395538(result_1862271359, 0, HEX3Aanonymous_1862271073(board_1862271357, p_1862271358)); return result_1862271359[0]; } -function createWithClarity_1845497124() { +function createWithClarity_1845499945() { -function HEX3Aanonymous_1845497127(piece_1845497128, board_1845497129, state_1845497130) { - if (clarity_1845497126) { - delete_1845497150(piece_1845497128, "moves", chckRange(find_1845497131(piece_1845497128.moves, HEX3Aanonymous_1862271335), 0, 2147483647)); - delete_1845497150(piece_1845497128, "takes", chckRange(find_1845497131(piece_1845497128.takes, HEX3Aanonymous_1862271356), 0, 2147483647)); +function HEX3Aanonymous_1845499948(piece_1845499949, board_1845499950, state_1845499951) { + if (clarity_1845499947) { + delete_1845499971(piece_1845499949, "moves", chckRange(find_1845499952(piece_1845499949.moves, HEX3Aanonymous_1862271335), 0, 2147483647)); + delete_1845499971(piece_1845499949, "takes", chckRange(find_1845499952(piece_1845499949.takes, HEX3Aanonymous_1862271356), 0, 2147483647)); } - if ((state_1845497130.Field1[chckIndx(piece_1845497128.color, 0, (state_1845497130.Field1).length - 1)].hasCastled && !(clarity_1845497126))) { - piece_1845497128.moves.push(HEX3Aanonymous_1862271335);; - piece_1845497128.takes.push(HEX3Aanonymous_1862271356);; - clarity_1845497126 = true; + if ((state_1845499951.Field1[chckIndx(piece_1845499949.color, 0, (state_1845499951.Field1).length - 1)].hasCastled && !(clarity_1845499947))) { + piece_1845499949.moves.push(HEX3Aanonymous_1862271335);; + piece_1845499949.takes.push(HEX3Aanonymous_1862271356);; + clarity_1845499947 = true; } } - var result_1845497125 = null; + var result_1845499946 = null; - var clarity_1845497126 = false; - result_1845497125 = HEX3Aanonymous_1845497127; + var clarity_1845499947 = false; + result_1845499946 = HEX3Aanonymous_1845499948; - return result_1845497125; + return result_1845499946; } -function HEX3Aanonymous_1845497189(side_1845497190, __1845497191, b_1845497192, s_1845497193) { - addOnEndTurnTransform_1845493997(0, side_1845497190, b_1845497192, s_1845497193, createWithClarity_1845497124, false); +function HEX3Aanonymous_1845500010(side_1845500011, __1845500012, b_1845500013, s_1845500014) { + addOnEndTurnTransform_1845493997(0, side_1845500011, b_1845500013, s_1845500014, createWithClarity_1845499945, false); } -function isSome_1845497264(self_1845497266) { - var result_1845497267 = false; +function isSome_1845499241(self_1845499243) { + var result_1845499244 = false; - result_1845497267 = self_1845497266.has; + result_1845499244 = self_1845499243.has; - return result_1845497267; + return result_1845499244; } -function none_1476395171() { - var result_1476395178 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); +function none_1476395172() { + var result_1476395179 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); - return result_1476395178; + return result_1476395179; } -function map_1845497290(self_1845497293, callback_1845497295) { +function map_1845500092(self_1845500095, callback_1845500097) { var Temporary1; - var result_1845497296 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); + var result_1845500098 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); - if (isSome_1845497264(self_1845497293)) { - Temporary1 = some_1845496679(callback_1845497295(self_1845497293.val)); + if (isSome_1845499241(self_1845500095)) { + Temporary1 = some_1845499535(callback_1845500097(self_1845500095.val)); } else { - Temporary1 = none_1476395171(); + Temporary1 = none_1476395172(); } - result_1845497296 = nimCopy(result_1845497296, Temporary1, NTI1476395079); + result_1845500098 = nimCopy(result_1845500098, Temporary1, NTI1476395079); - return result_1845497296; + return result_1845500098; } -function HEX3Aanonymous_1845497208(side_1845497209, __1845497210, __1845497211, s_1845497212) { +function HEX3Aanonymous_1845500029(side_1845500030, __1845500031, __1845500032, s_1845500033) { -function HEX3Aanonymous_1845497273(x_1845497274) { - var result_1845497275 = {Field0: 0, Field1: null, Field2: null}; +function HEX3Aanonymous_1845500075(x_1845500076) { + var result_1845500077 = {Field0: 0, Field1: null, Field2: null}; - result_1845497275 = nimCopy(result_1845497275, x_1845497274, NTI1476395032); - result_1845497275.Field0 = addInt(result_1845497275.Field0, 1); + result_1845500077 = nimCopy(result_1845500077, x_1845500076, NTI1476395032); + result_1845500077.Field0 = addInt(result_1845500077.Field0, 1); - return result_1845497275; + return result_1845500077; } Label1: { - var c_1845497259 = null; - var i_1845497887 = 0; + var c_1845500063 = null; + var i_1845500689 = 0; Label2: { Label3: while (true) { if (!true) break Label3; - c_1845497259 = s_1845497212.Field1[chckIndx(side_1845497209, 0, (s_1845497212.Field1).length - 1)].glass[chckIndx(i_1845497887, 0, (s_1845497212.Field1[chckIndx(side_1845497209, 0, (s_1845497212.Field1).length - 1)].glass).length - 1)]; - if (isSome_1845497264(c_1845497259)) { - c_1845497259 = nimCopy(c_1845497259, map_1845497290(c_1845497259, HEX3Aanonymous_1845497273), NTI1476395079); + c_1845500063 = s_1845500033.Field1[chckIndx(side_1845500030, 0, (s_1845500033.Field1).length - 1)].glass[chckIndx(i_1845500689, 0, (s_1845500033.Field1[chckIndx(side_1845500030, 0, (s_1845500033.Field1).length - 1)].glass).length - 1)]; + if (isSome_1845499241(c_1845500063)) { + c_1845500063 = nimCopy(c_1845500063, map_1845500092(c_1845500063, HEX3Aanonymous_1845500075), NTI1476395079); } - if ((4 <= i_1845497887)) { + if ((4 <= i_1845500689)) { break Label2; } - i_1845497887 += 1; + i_1845500689 += 1; } }; }; @@ -7287,17 +7288,17 @@ function HEX3Aanonymous_1845496306(piece_1845496307, board_1845496308, state_184 piece_1845496307.onMove(piece_1845496307, tileBelow_1560281233(piece_1845496307.tile), board_1845496308, state_1845496309); Label1: { var xHEX60gensym108_1845496314 = null; - var colontmp__1845497890 = []; - colontmp__1845497890 = (Temporary2 = board_1845496308[chckIndx(tileBelow_1560281233(piece_1845496307.tile).Field1, 0, (board_1845496308).length - 1)], Temporary2)[chckIndx(piece_1845496307.tile.Field0, 0, (Temporary2).length - 1)].onEndTurn; - var i_1845497891 = 0; - var L_1845497892 = (colontmp__1845497890).length; + var colontmp__1845500692 = []; + colontmp__1845500692 = (Temporary2 = board_1845496308[chckIndx(tileBelow_1560281233(piece_1845496307.tile).Field1, 0, (board_1845496308).length - 1)], Temporary2)[chckIndx(piece_1845496307.tile.Field0, 0, (Temporary2).length - 1)].onEndTurn; + var i_1845500693 = 0; + var L_1845500694 = (colontmp__1845500692).length; Label3: { Label4: while (true) { - if (!(i_1845497891 < L_1845497892)) break Label4; - xHEX60gensym108_1845496314 = colontmp__1845497890[chckIndx(i_1845497891, 0, (colontmp__1845497890).length - 1)]; + if (!(i_1845500693 < L_1845500694)) break Label4; + xHEX60gensym108_1845496314 = colontmp__1845500692[chckIndx(i_1845500693, 0, (colontmp__1845500692).length - 1)]; xHEX60gensym108_1845496314((Temporary5 = board_1845496308[chckIndx(tileBelow_1560281233(piece_1845496307.tile).Field1, 0, (board_1845496308).length - 1)], Temporary5)[chckIndx(piece_1845496307.tile.Field0, 0, (Temporary5).length - 1)], board_1845496308, state_1845496309); - i_1845497891 += 1; - if (!(((colontmp__1845497890).length == L_1845497892))) { + i_1845500693 += 1; + if (!(((colontmp__1845500692).length == L_1845500694))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -7314,7 +7315,7 @@ function HEX3Aanonymous_1845496320(piece_1845496321, board_1845496322, s_1845496 var result_1845496324 = false; BeforeRet: { - result_1845496324 = (!((piece_1845496321.tile.Field1 == 7)) && isAir_1476396035((Temporary1 = board_1845496322[chckIndx(tileBelow_1560281233(piece_1845496321.tile).Field1, 0, (board_1845496322).length - 1)], Temporary1)[chckIndx(piece_1845496321.tile.Field0, 0, (Temporary1).length - 1)])); + result_1845496324 = (!((piece_1845496321.tile.Field1 == 7)) && isAir_1476396036((Temporary1 = board_1845496322[chckIndx(tileBelow_1560281233(piece_1845496321.tile).Field1, 0, (board_1845496322).length - 1)], Temporary1)[chckIndx(piece_1845496321.tile.Field0, 0, (Temporary1).length - 1)])); break BeforeRet; }; @@ -7329,17 +7330,17 @@ function HEX3Aanonymous_1845496286(piece_1845496287, board_1845496288, state_184 piece_1845496287.onMove(piece_1845496287, tileAbove_1560281230(piece_1845496287.tile), board_1845496288, state_1845496289); Label1: { var xHEX60gensym105_1845496294 = null; - var colontmp__1845497895 = []; - colontmp__1845497895 = (Temporary2 = board_1845496288[chckIndx(tileAbove_1560281230(piece_1845496287.tile).Field1, 0, (board_1845496288).length - 1)], Temporary2)[chckIndx(piece_1845496287.tile.Field0, 0, (Temporary2).length - 1)].onEndTurn; - var i_1845497896 = 0; - var L_1845497897 = (colontmp__1845497895).length; + var colontmp__1845500697 = []; + colontmp__1845500697 = (Temporary2 = board_1845496288[chckIndx(tileAbove_1560281230(piece_1845496287.tile).Field1, 0, (board_1845496288).length - 1)], Temporary2)[chckIndx(piece_1845496287.tile.Field0, 0, (Temporary2).length - 1)].onEndTurn; + var i_1845500698 = 0; + var L_1845500699 = (colontmp__1845500697).length; Label3: { Label4: while (true) { - if (!(i_1845497896 < L_1845497897)) break Label4; - xHEX60gensym105_1845496294 = colontmp__1845497895[chckIndx(i_1845497896, 0, (colontmp__1845497895).length - 1)]; + if (!(i_1845500698 < L_1845500699)) break Label4; + xHEX60gensym105_1845496294 = colontmp__1845500697[chckIndx(i_1845500698, 0, (colontmp__1845500697).length - 1)]; xHEX60gensym105_1845496294((Temporary5 = board_1845496288[chckIndx(tileAbove_1560281230(piece_1845496287.tile).Field1, 0, (board_1845496288).length - 1)], Temporary5)[chckIndx(piece_1845496287.tile.Field0, 0, (Temporary5).length - 1)], board_1845496288, state_1845496289); - i_1845497896 += 1; - if (!(((colontmp__1845497895).length == L_1845497897))) { + i_1845500698 += 1; + if (!(((colontmp__1845500697).length == L_1845500699))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -7356,7 +7357,7 @@ function HEX3Aanonymous_1845496300(piece_1845496301, board_1845496302, s_1845496 var result_1845496304 = false; BeforeRet: { - result_1845496304 = (!((piece_1845496301.tile.Field1 == 0)) && isAir_1476396035((Temporary1 = board_1845496302[chckIndx(tileAbove_1560281230(piece_1845496301.tile).Field1, 0, (board_1845496302).length - 1)], Temporary1)[chckIndx(piece_1845496301.tile.Field0, 0, (Temporary1).length - 1)])); + result_1845496304 = (!((piece_1845496301.tile.Field1 == 0)) && isAir_1476396036((Temporary1 = board_1845496302[chckIndx(tileAbove_1560281230(piece_1845496301.tile).Field1, 0, (board_1845496302).length - 1)], Temporary1)[chckIndx(piece_1845496301.tile.Field0, 0, (Temporary1).length - 1)])); break BeforeRet; }; @@ -7417,17 +7418,17 @@ function find_1879048356(a_1879048359, item_1879048360) { result_1879048361 = 0; Label1: { var i_1879048375 = null; - var i_1845497901 = 0; + var i_1845500703 = 0; Label2: { Label3: while (true) { - if (!(i_1845497901 < (a_1879048359).length)) break Label3; - i_1879048375 = a_1879048359[chckIndx(i_1845497901, 0, (a_1879048359).length - 1)]; + if (!(i_1845500703 < (a_1879048359).length)) break Label3; + i_1879048375 = a_1879048359[chckIndx(i_1845500703, 0, (a_1879048359).length - 1)]; if ((i_1879048375 == item_1879048360)) { break BeforeRet; } result_1879048361 = addInt(result_1879048361, 1); - i_1845497901 += 1; + i_1845500703 += 1; } }; }; @@ -7519,115 +7520,944 @@ function HEX3Aanonymous_1845496420(side_1845496421, __1845496422, b_1845496423, } -function createPieceMarket_1845496457(cost_1845496458, rate_1845496459) { +function createPieceMarket_1845499312(cost_1845499313, rate_1845499314) { -function HEX3Aanonymous_1845496463(piece_1845496464, b_1845496465, s_1845496466) { - var result_1845496467 = 0; +function HEX3Aanonymous_1845499316(piece_1845499317, b_1845499318, s_1845499319) { + var result_1845499320 = 0; - var piecesSold_1845496468 = s_1845496466.Field1[chckIndx(piece_1845496464.color, 0, (s_1845496466.Field1).length - 1)].piecesSold; - if (!((s_1845496466.Field0.turnNumber == lastTurnSold_1845496461))) { - lastTurnSold_1845496461 = s_1845496466.Field0.turnNumber; - lastPiecesSold_1845496462 = piecesSold_1845496468; - } - - result_1845496467 = addInt(cost_1845496458, mulInt(rate_1845496459, subInt(lastPiecesSold_1845496462, piecesSold_1845496468))); + result_1845499320 = addInt(cost_1845499313, mulInt(rate_1845499314, s_1845499319.Field1[chckIndx(piece_1845499317.color, 0, (s_1845499319.Field1).length - 1)].piecesSoldThisTurn)); - return result_1845496467; + return result_1845499320; } - var result_1845496460 = null; + var result_1845499315 = null; - var lastTurnSold_1845496461 = (-1); - var lastPiecesSold_1845496462 = 0; - result_1845496460 = HEX3Aanonymous_1845496463; + result_1845499315 = HEX3Aanonymous_1845499316; - return result_1845496460; + return result_1845499315; } -function HEX3Aanonymous_1845496437(piece_1845496438, b_1845496439, state_1845496440) { - b_1845496439[chckIndx(piece_1845496438.tile.Field1, 0, (b_1845496439).length - 1)][chckIndx(piece_1845496438.tile.Field0, 0, (b_1845496439[chckIndx(piece_1845496438.tile.Field1, 0, (b_1845496439).length - 1)]).length - 1)] = nimCopy(b_1845496439[chckIndx(piece_1845496438.tile.Field1, 0, (b_1845496439).length - 1)][chckIndx(piece_1845496438.tile.Field0, 0, (b_1845496439[chckIndx(piece_1845496438.tile.Field1, 0, (b_1845496439).length - 1)]).length - 1)], pieceCopy_1476395899(air_1526726831, b_1845496439[chckIndx(piece_1845496438.tile.Field1, 0, (b_1845496439).length - 1)][chckIndx(piece_1845496438.tile.Field0, 0, (b_1845496439[chckIndx(piece_1845496438.tile.Field1, 0, (b_1845496439).length - 1)]).length - 1)].index, 6, 1, 0, 0, piece_1845496438.tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); - state_1845496440.Field1[chckIndx(piece_1845496438.color, 0, (state_1845496440.Field1).length - 1)].piecesSold = addInt(state_1845496440.Field1[chckIndx(piece_1845496438.color, 0, (state_1845496440.Field1).length - 1)].piecesSold, 1); +function addQuoted_1845497519(s_1845497521, s_1845497521_Idx, x_1845497522) { + s_1845497521[s_1845497521_Idx].push.apply(s_1845497521[s_1845497521_Idx], nimBoolToStr(x_1845497522));; } -function HEX3Aanonymous_1845496447(piece_1845496448, board_1845496449, s_1845496450) { - var result_1845496451 = false; +function addQuoted_1845498114(s_1845498116, s_1845498116_Idx, x_1845498117) { + s_1845498116[s_1845498116_Idx].push.apply(s_1845498116[s_1845498116_Idx], reprEnum(x_1845498117, NTI1476395016));; - BeforeRet: { - result_1845496451 = !((piece_1845496448.item == 0)); - break BeforeRet; - }; + +} - return result_1845496451; +function addQuoted_1845498134(s_1845498136, s_1845498136_Idx, x_1845498137) { + s_1845498136[s_1845498136_Idx].push.apply(s_1845498136[s_1845498136_Idx], reprEnum(x_1845498137, NTI1476395017));; + } -function HEX3Aanonymous_1845496469(side_1845496470, __1845496471, b_1845496472, s_1845496473) { - s_1845496473.Field1[chckIndx(side_1845496470, 0, (s_1845496473.Field1).length - 1)].buys.push({Field0: [83,101,108,108], Field1: createPieceMarket_1845496457((-4), (-1)), Field2: HEX3Aanonymous_1845496437, Field3: HEX3Aanonymous_1845496447});; +function addQuoted_1845498190(s_1845498192, s_1845498192_Idx, x_1845498193) { + s_1845498192[s_1845498192_Idx].push.apply(s_1845498192[s_1845498192_Idx], HEX24_1476395716(x_1845498193));; } -function getMoney_1879048207(side_1879048208, s_1879048209) { - var result_1879048210 = 0; - - BeforeRet: { - var wallet_1879048211 = nimCopy(null, s_1879048209.Field1[chckIndx(side_1879048208, 0, (s_1879048209.Field1).length - 1)].wallet, NTI1476395106); - if (isSome_1660947689(wallet_1879048211)) { - result_1879048210 = get_1660947783(wallet_1879048211); - break BeforeRet; - } - else { - result_1879048210 = (-1); - break BeforeRet; +function addEscapedChar_33558024(s_33558025, s_33558025_Idx, c_33558026) { + switch (c_33558026) { + case 7: + s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,97]);; + break; + case 8: + s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,98]);; + break; + case 9: + s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,116]);; + break; + case 10: + s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,110]);; + break; + case 11: + s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,118]);; + break; + case 12: + s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,102]);; + break; + case 13: + s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,114]);; + break; + case 27: + s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,101]);; + break; + case 92: + s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,92]);; + break; + case 39: + s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,39]);; + break; + case 34: + s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,34]);; + break; + case 32: + case 33: + case 35: + case 36: + case 37: + case 38: + case 40: + case 41: + case 42: + case 43: + case 44: + case 45: + case 46: + case 47: + case 48: + case 49: + case 50: + case 51: + case 52: + case 53: + case 54: + case 55: + case 56: + case 57: + case 58: + case 59: + case 60: + case 61: + case 62: + case 63: + case 64: + case 65: + case 66: + case 67: + case 68: + case 69: + case 70: + case 71: + case 72: + case 73: + case 74: + case 75: + case 76: + case 77: + case 78: + case 79: + case 80: + case 81: + case 82: + case 83: + case 84: + case 85: + case 86: + case 87: + case 88: + case 89: + case 90: + case 91: + case 93: + case 94: + case 95: + case 96: + case 97: + case 98: + case 99: + case 100: + case 101: + case 102: + case 103: + case 104: + case 105: + case 106: + case 107: + case 108: + case 109: + case 110: + case 111: + case 112: + case 113: + case 114: + case 115: + case 116: + case 117: + case 118: + case 119: + case 120: + case 121: + case 122: + case 123: + case 124: + case 125: + case 126: + addChar(s_33558025[s_33558025_Idx], c_33558026);; + break; + default: + s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,120]);; + var n_33558036 = c_33558026; + addChar(s_33558025[s_33558025_Idx], [48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70][chckIndx(((n_33558036 & 240) >> 4), 0, ([48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]).length - 1)]);; + addChar(s_33558025[s_33558025_Idx], [48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70][chckIndx((n_33558036 & 15), 0, ([48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]).length - 1)]);; + break; } - - }; - - return result_1879048210; + } -function HEX3Aanonymous_1845496514(piece_1845496515, __1845496516, state_1845496517) { - var currentMoney_1845496518 = getMoney_1879048207(piece_1845496515.color, state_1845496517); - var next_1845496519 = subInt(mulInt(currentMoney_1845496518, 2), currentMoney_1845496518); - addMoney_1879048234(piece_1845496515.color, next_1845496519, state_1845496517); +function addQuoted_1845498378(s_1845498380, s_1845498380_Idx, x_1845498381) { + s_1845498380[s_1845498380_Idx].push.apply(s_1845498380[s_1845498380_Idx], [34]);; + Label1: { + var c_1845498382 = 0; + var i_1845500710 = 0; + var L_1845500711 = (x_1845498381).length; + Label2: { + Label3: while (true) { + if (!(i_1845500710 < L_1845500711)) break Label3; + c_1845498382 = x_1845498381[chckIndx(i_1845500710, 0, (x_1845498381).length - 1)]; + if ((c_1845498382 <= 127)) { + addEscapedChar_33558024(s_1845498380, s_1845498380_Idx, c_1845498382); + } + else { + addChar(s_1845498380[s_1845498380_Idx], c_1845498382);; + } + + i_1845500710 += 1; + if (!(((x_1845498381).length == L_1845500711))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(272, 11) `len(a) == L` the length of the string changed while iterating over it")); + } + + } + }; + }; + s_1845498380[s_1845498380_Idx].push.apply(s_1845498380[s_1845498380_Idx], [34]);; } -function HEX3Aanonymous_1845496521(side_1845496522, __1845496523, b_1845496524, s_1845496525) { - buff_1845493778(0, side_1845496522, b_1845496524, s_1845496525, [], [], [HEX3Aanonymous_1845496514], false, [], null, null, null, false); +function addQuoted_1845498642(s_1845498644, s_1845498644_Idx, x_1845498645) { + s_1845498644[s_1845498644_Idx].push.apply(s_1845498644[s_1845498644_Idx], reprEnum(x_1845498645, NTI1476395029));; } -function createSuperLottery_1845496484() { +function HEX24_1845498586(x_1845498588) { + var result_1845498589 = [[]]; + + result_1845498589[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym347_1845498600 = 0; + if ((0 < countHEX60gensym347_1845498600)) { + result_1845498589[0].push.apply(result_1845498589[0], [44,32]);; + } -function HEX3Aanonymous_1845496487(piece_1845496488, board_1845496489, state_1845496490) { - if (!((piece_1845496488.timesMoved == lastTimesMoved_1845496486))) { - randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845496488.tile.Field1), mulInt(100, piece_1845496488.tile.Field0)), state_1845496490.Field0.randSeed))); - var ticket_1845496491 = rand_1644167304(100); - if ((ticket_1845496491 == 42)) { - addMoney_1879048234(piece_1845496488.color, 10, state_1845496490); - Label1: { - var xHEX60gensym120_1845496496 = null; - var i_1845497904 = 0; - var L_1845497905 = (piece_1845496488.onPromote).length; + result_1845498589[0].push.apply(result_1845498589[0], [111,110]);; + result_1845498589[0].push.apply(result_1845498589[0], [58,32]);; + countHEX60gensym347_1845498600 += 1; + addQuoted_1845498190(result_1845498589, 0, x_1845498588["Field0"]); + if ((0 < countHEX60gensym347_1845498600)) { + result_1845498589[0].push.apply(result_1845498589[0], [44,32]);; + } + + result_1845498589[0].push.apply(result_1845498589[0], [103,114,111,117,112]);; + result_1845498589[0].push.apply(result_1845498589[0], [58,32]);; + countHEX60gensym347_1845498600 += 1; + addQuoted_889193861(result_1845498589, 0, x_1845498588["Field1"]); + if ((0 < countHEX60gensym347_1845498600)) { + result_1845498589[0].push.apply(result_1845498589[0], [44,32]);; + } + + result_1845498589[0].push.apply(result_1845498589[0], [103,108,97,115,115]);; + result_1845498589[0].push.apply(result_1845498589[0], [58,32]);; + countHEX60gensym347_1845498600 += 1; + addQuoted_1845498642(result_1845498589, 0, x_1845498588["Field2"]); + result_1845498589[0].push.apply(result_1845498589[0], [41]);; + + return result_1845498589[0]; + +} + +function addQuoted_1845498580(s_1845498582, s_1845498582_Idx, x_1845498583) { + s_1845498582[s_1845498582_Idx].push.apply(s_1845498582[s_1845498582_Idx], HEX24_1845498586(x_1845498583));; + + +} + +function collectionToString_1845498546(x_1845498548, prefix_1845498549, separator_1845498550, suffix_1845498551) { + var result_1845498552 = [[]]; + + result_1845498552[0] = nimCopy(null, prefix_1845498549, NTI33554449); + var firstElement_1845498553 = true; + Label1: { + var value_1845498576 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var i_1845500714 = 0; + var L_1845500715 = (x_1845498548).length; + Label2: { + Label3: while (true) { + if (!(i_1845500714 < L_1845500715)) break Label3; + value_1845498576 = x_1845498548[i_1845500714]; + if (firstElement_1845498553) { + firstElement_1845498553 = false; + } + else { + result_1845498552[0].push.apply(result_1845498552[0], separator_1845498550);; + } + + addQuoted_1845498580(result_1845498552, 0, value_1845498576); + i_1845500714 += 1; + if (!(((x_1845498548).length == L_1845500715))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + } + + } + }; + }; + result_1845498552[0].push.apply(result_1845498552[0], suffix_1845498551);; + + return result_1845498552[0]; + +} + +function HEX24_1845498542(x_1845498544) { + var result_1845498545 = []; + + result_1845498545 = nimCopy(null, collectionToString_1845498546(x_1845498544, [64,91], [44,32], [93]), NTI33554449); + + return result_1845498545; + +} + +function addQuoted_1845498536(s_1845498538, s_1845498538_Idx, x_1845498539) { + s_1845498538[s_1845498538_Idx].push.apply(s_1845498538[s_1845498538_Idx], HEX24_1845498542(x_1845498539));; + + +} + +function HEX24_1845498085(x_1845498087) { + var result_1845498088 = [[]]; + + result_1845498088[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym289_1845498099 = 0; + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [105,116,101,109]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + addQuoted_1845498114(result_1845498088, 0, x_1845498087.item); + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [99,111,108,111,114]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + addQuoted_1845498134(result_1845498088, 0, x_1845498087.color); + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [105,110,100,101,120]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + addQuoted_889193861(result_1845498088, 0, x_1845498087.index); + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [116,105,109,101,115,77,111,118,101,100]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + addQuoted_889193861(result_1845498088, 0, x_1845498087.timesMoved); + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [112,105,101,99,101,115,84,97,107,101,110]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + addQuoted_889193861(result_1845498088, 0, x_1845498087.piecesTaken); + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [116,105,108,101]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + addQuoted_1845498190(result_1845498088, 0, x_1845498087.tile); + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [109,111,118,101,115]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + result_1845498088[0].push.apply(result_1845498088[0], [46,46,46]);; + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [116,97,107,101,115]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + result_1845498088[0].push.apply(result_1845498088[0], [46,46,46]);; + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [111,110,77,111,118,101]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + result_1845498088[0].push.apply(result_1845498088[0], [46,46,46]);; + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [111,110,84,97,107,101]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + result_1845498088[0].push.apply(result_1845498088[0], [46,46,46]);; + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [119,104,101,110,84,97,107,101,110]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + result_1845498088[0].push.apply(result_1845498088[0], [46,46,46]);; + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [111,110,69,110,100,84,117,114,110]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + result_1845498088[0].push.apply(result_1845498088[0], [46,46,46]);; + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [111,110,80,114,111,109,111,116,101]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + result_1845498088[0].push.apply(result_1845498088[0], [46,46,46]);; + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [112,114,111,109,111,116,101,100]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + addQuoted_1845497519(result_1845498088, 0, x_1845498087.promoted); + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [102,105,108,101,80,97,116,104]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + addQuoted_1845498378(result_1845498088, 0, x_1845498087.filePath); + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [99,111,108,111,114,97,98,108,101]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + addQuoted_1845497519(result_1845498088, 0, x_1845498087.colorable); + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [114,111,116,97,116,101]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + addQuoted_1845497519(result_1845498088, 0, x_1845498087.rotate); + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [100,114,117,110,107]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + addQuoted_1845497519(result_1845498088, 0, x_1845498087.drunk); + if ((0 < countHEX60gensym289_1845498099)) { + result_1845498088[0].push.apply(result_1845498088[0], [44,32]);; + } + + result_1845498088[0].push.apply(result_1845498088[0], [99,97,115,116,115]);; + result_1845498088[0].push.apply(result_1845498088[0], [58,32]);; + countHEX60gensym289_1845498099 += 1; + addQuoted_1845498536(result_1845498088, 0, x_1845498087.casts); + result_1845498088[0].push.apply(result_1845498088[0], [41]);; + + return result_1845498088[0]; + +} + +function addQuoted_1845498079(s_1845498081, s_1845498081_Idx, x_1845498082) { + s_1845498081[s_1845498081_Idx].push.apply(s_1845498081[s_1845498081_Idx], HEX24_1845498085(x_1845498082));; + + +} + +function collectionToString_1845498037(x_1845498039, prefix_1845498040, separator_1845498041, suffix_1845498042) { + var result_1845498043 = [[]]; + + result_1845498043[0] = nimCopy(null, prefix_1845498040, NTI33554449); + var firstElement_1845498044 = true; + Label1: { + var value_1845498075 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_1845500707 = 0; + Label2: { + Label3: while (true) { + if (!true) break Label3; + value_1845498075 = nimCopy(value_1845498075, x_1845498039[i_1845500707], NTI1476395034); + if (firstElement_1845498044) { + firstElement_1845498044 = false; + } + else { + result_1845498043[0].push.apply(result_1845498043[0], separator_1845498041);; + } + + addQuoted_1845498079(result_1845498043, 0, value_1845498075); + if ((7 <= i_1845500707)) { + break Label2; + } + + i_1845500707 += 1; + } + }; + }; + result_1845498043[0].push.apply(result_1845498043[0], suffix_1845498042);; + + return result_1845498043[0]; + +} + +function HEX24_1845498032(x_1845498035) { + var result_1845498036 = []; + + result_1845498036 = nimCopy(null, collectionToString_1845498037(x_1845498035, [91], [44,32], [93]), NTI33554449); + + return result_1845498036; + +} + +function addQuoted_1845498020(s_1845498022, s_1845498022_Idx, x_1845498023) { + s_1845498022[s_1845498022_Idx].push.apply(s_1845498022[s_1845498022_Idx], HEX24_1845498032(x_1845498023));; + + +} + +function HEX24_1845498791(self_1845498793) { + var result_1845498794 = [[]]; + + if (isSome_1660947689(self_1845498793)) { + result_1845498794[0] = nimCopy(null, [115,111,109,101,40], NTI33554449); + addQuoted_889193861(result_1845498794, 0, self_1845498793.val); + result_1845498794[0].push.apply(result_1845498794[0], [41]);; + } + else { + result_1845498794[0] = nimCopy(null, [110,111,110,101,40,105,110,116,41], NTI33554449); + } + + + return result_1845498794[0]; + +} + +function addQuoted_1845498779(s_1845498781, s_1845498781_Idx, x_1845498782) { + s_1845498781[s_1845498781_Idx].push.apply(s_1845498781[s_1845498781_Idx], HEX24_1845498791(x_1845498782));; + + +} + +function HEX24_1845498957(x_1845498959) { + var result_1845498960 = [[]]; + + result_1845498960[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym375_1845498971 = 0; + if ((0 < countHEX60gensym375_1845498971)) { + result_1845498960[0].push.apply(result_1845498960[0], [44,32]);; + } + + result_1845498960[0].push.apply(result_1845498960[0], [110,97,109,101]);; + result_1845498960[0].push.apply(result_1845498960[0], [58,32]);; + countHEX60gensym375_1845498971 += 1; + addQuoted_1845498378(result_1845498960, 0, x_1845498959["Field0"]); + if ((0 < countHEX60gensym375_1845498971)) { + result_1845498960[0].push.apply(result_1845498960[0], [44,32]);; + } + + result_1845498960[0].push.apply(result_1845498960[0], [99,111,115,116]);; + result_1845498960[0].push.apply(result_1845498960[0], [58,32]);; + countHEX60gensym375_1845498971 += 1; + result_1845498960[0].push.apply(result_1845498960[0], [46,46,46]);; + if ((0 < countHEX60gensym375_1845498971)) { + result_1845498960[0].push.apply(result_1845498960[0], [44,32]);; + } + + result_1845498960[0].push.apply(result_1845498960[0], [97,99,116,105,111,110]);; + result_1845498960[0].push.apply(result_1845498960[0], [58,32]);; + countHEX60gensym375_1845498971 += 1; + result_1845498960[0].push.apply(result_1845498960[0], [46,46,46]);; + if ((0 < countHEX60gensym375_1845498971)) { + result_1845498960[0].push.apply(result_1845498960[0], [44,32]);; + } + + result_1845498960[0].push.apply(result_1845498960[0], [99,111,110,100,105,116,105,111,110]);; + result_1845498960[0].push.apply(result_1845498960[0], [58,32]);; + countHEX60gensym375_1845498971 += 1; + result_1845498960[0].push.apply(result_1845498960[0], [46,46,46]);; + result_1845498960[0].push.apply(result_1845498960[0], [41]);; + + return result_1845498960[0]; + +} + +function addQuoted_1845498951(s_1845498953, s_1845498953_Idx, x_1845498954) { + s_1845498953[s_1845498953_Idx].push.apply(s_1845498953[s_1845498953_Idx], HEX24_1845498957(x_1845498954));; + + +} + +function collectionToString_1845498917(x_1845498919, prefix_1845498920, separator_1845498921, suffix_1845498922) { + var result_1845498923 = [[]]; + + result_1845498923[0] = nimCopy(null, prefix_1845498920, NTI33554449); + var firstElement_1845498924 = true; + Label1: { + var value_1845498947 = {Field0: [], Field1: null, Field2: null, Field3: null}; + var i_1845500719 = 0; + var L_1845500720 = (x_1845498919).length; + Label2: { + Label3: while (true) { + if (!(i_1845500719 < L_1845500720)) break Label3; + value_1845498947 = x_1845498919[i_1845500719]; + if (firstElement_1845498924) { + firstElement_1845498924 = false; + } + else { + result_1845498923[0].push.apply(result_1845498923[0], separator_1845498921);; + } + + addQuoted_1845498951(result_1845498923, 0, value_1845498947); + i_1845500719 += 1; + if (!(((x_1845498919).length == L_1845500720))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + } + + } + }; + }; + result_1845498923[0].push.apply(result_1845498923[0], suffix_1845498922);; + + return result_1845498923[0]; + +} + +function HEX24_1845498913(x_1845498915) { + var result_1845498916 = []; + + result_1845498916 = nimCopy(null, collectionToString_1845498917(x_1845498915, [64,91], [44,32], [93]), NTI33554449); + + return result_1845498916; + +} + +function addQuoted_1845498907(s_1845498909, s_1845498909_Idx, x_1845498910) { + s_1845498909[s_1845498909_Idx].push.apply(s_1845498909[s_1845498909_Idx], HEX24_1845498913(x_1845498910));; + + +} + +function HEX24_1845499252(x_1845499254) { + var result_1845499255 = [[]]; + + result_1845499255[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym397_1845499266 = 0; + if ((0 < countHEX60gensym397_1845499266)) { + result_1845499255[0].push.apply(result_1845499255[0], [44,32]);; + } + + result_1845499255[0].push.apply(result_1845499255[0], [115,116,114,101,110,103,116,104]);; + result_1845499255[0].push.apply(result_1845499255[0], [58,32]);; + countHEX60gensym397_1845499266 += 1; + addQuoted_889193861(result_1845499255, 0, x_1845499254["Field0"]); + if ((0 < countHEX60gensym397_1845499266)) { + result_1845499255[0].push.apply(result_1845499255[0], [44,32]);; + } + + result_1845499255[0].push.apply(result_1845499255[0], [97,99,116,105,111,110]);; + result_1845499255[0].push.apply(result_1845499255[0], [58,32]);; + countHEX60gensym397_1845499266 += 1; + result_1845499255[0].push.apply(result_1845499255[0], [46,46,46]);; + if ((0 < countHEX60gensym397_1845499266)) { + result_1845499255[0].push.apply(result_1845499255[0], [44,32]);; + } + + result_1845499255[0].push.apply(result_1845499255[0], [99,111,110,100,105,116,105,111,110]);; + result_1845499255[0].push.apply(result_1845499255[0], [58,32]);; + countHEX60gensym397_1845499266 += 1; + result_1845499255[0].push.apply(result_1845499255[0], [46,46,46]);; + result_1845499255[0].push.apply(result_1845499255[0], [41]);; + + return result_1845499255[0]; + +} + +function addQuoted_1845499246(s_1845499248, s_1845499248_Idx, x_1845499249) { + s_1845499248[s_1845499248_Idx].push.apply(s_1845499248[s_1845499248_Idx], HEX24_1845499252(x_1845499249));; + + +} + +function HEX24_1845499233(self_1845499235) { + var result_1845499236 = [[]]; + + if (isSome_1845499241(self_1845499235)) { + result_1845499236[0] = nimCopy(null, [115,111,109,101,40], NTI33554449); + addQuoted_1845499246(result_1845499236, 0, self_1845499235.val); + result_1845499236[0].push.apply(result_1845499236[0], [41]);; + } + else { + result_1845499236[0] = nimCopy(null, [110,111,110,101,40,71,108,97,115,115,65,98,105,108,105,116,121,41], NTI33554449); + } + + + return result_1845499236[0]; + +} + +function addQuoted_1845499221(s_1845499223, s_1845499223_Idx, x_1845499224) { + s_1845499223[s_1845499223_Idx].push.apply(s_1845499223[s_1845499223_Idx], HEX24_1845499233(x_1845499224));; + + +} + +function collectionToString_1845499179(x_1845499181, prefix_1845499182, separator_1845499183, suffix_1845499184) { + var result_1845499185 = [[]]; + + result_1845499185[0] = nimCopy(null, prefix_1845499182, NTI33554449); + var firstElement_1845499186 = true; + Label1: { + var value_1845499217 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); + var i_1845500724 = 0; + Label2: { + Label3: while (true) { + if (!true) break Label3; + value_1845499217 = nimCopy(value_1845499217, x_1845499181[i_1845500724], NTI1476395079); + if (firstElement_1845499186) { + firstElement_1845499186 = false; + } + else { + result_1845499185[0].push.apply(result_1845499185[0], separator_1845499183);; + } + + addQuoted_1845499221(result_1845499185, 0, value_1845499217); + if ((4 <= i_1845500724)) { + break Label2; + } + + i_1845500724 += 1; + } + }; + }; + result_1845499185[0].push.apply(result_1845499185[0], suffix_1845499184);; + + return result_1845499185[0]; + +} + +function HEX24_1845499174(x_1845499177) { + var result_1845499178 = []; + + result_1845499178 = nimCopy(null, collectionToString_1845499179(x_1845499177, [91], [44,32], [93]), NTI33554449); + + return result_1845499178; + +} + +function addQuoted_1845499162(s_1845499164, s_1845499164_Idx, x_1845499165) { + s_1845499164[s_1845499164_Idx].push.apply(s_1845499164[s_1845499164_Idx], HEX24_1845499174(x_1845499165));; + + +} + +function HEX24_1845497481(x_1845497483) { + var result_1845497484 = [[]]; + + result_1845497484[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym219_1845497495 = 0; + if ((0 < countHEX60gensym219_1845497495)) { + result_1845497484[0].push.apply(result_1845497484[0], [44,32]);; + } + + result_1845497484[0].push.apply(result_1845497484[0], [97,98,105,108,105,116,121,84,97,107,101,115]);; + result_1845497484[0].push.apply(result_1845497484[0], [58,32]);; + countHEX60gensym219_1845497495 += 1; + addQuoted_889193861(result_1845497484, 0, x_1845497483.abilityTakes); + if ((0 < countHEX60gensym219_1845497495)) { + result_1845497484[0].push.apply(result_1845497484[0], [44,32]);; + } + + result_1845497484[0].push.apply(result_1845497484[0], [104,97,115,67,97,115,116,108,101,100]);; + result_1845497484[0].push.apply(result_1845497484[0], [58,32]);; + countHEX60gensym219_1845497495 += 1; + addQuoted_1845497519(result_1845497484, 0, x_1845497483.hasCastled); + if ((0 < countHEX60gensym219_1845497495)) { + result_1845497484[0].push.apply(result_1845497484[0], [44,32]);; + } + + result_1845497484[0].push.apply(result_1845497484[0], [100,110,97]);; + result_1845497484[0].push.apply(result_1845497484[0], [58,32]);; + countHEX60gensym219_1845497495 += 1; + addQuoted_1845498020(result_1845497484, 0, x_1845497483.dna); + if ((0 < countHEX60gensym219_1845497495)) { + result_1845497484[0].push.apply(result_1845497484[0], [44,32]);; + } + + result_1845497484[0].push.apply(result_1845497484[0], [116,114,97,110,115,102,111,114,109,115]);; + result_1845497484[0].push.apply(result_1845497484[0], [58,32]);; + countHEX60gensym219_1845497495 += 1; + result_1845497484[0].push.apply(result_1845497484[0], [46,46,46]);; + if ((0 < countHEX60gensym219_1845497495)) { + result_1845497484[0].push.apply(result_1845497484[0], [44,32]);; + } + + result_1845497484[0].push.apply(result_1845497484[0], [119,97,108,108,101,116]);; + result_1845497484[0].push.apply(result_1845497484[0], [58,32]);; + countHEX60gensym219_1845497495 += 1; + addQuoted_1845498779(result_1845497484, 0, x_1845497483.wallet); + if ((0 < countHEX60gensym219_1845497495)) { + result_1845497484[0].push.apply(result_1845497484[0], [44,32]);; + } + + result_1845497484[0].push.apply(result_1845497484[0], [98,117,121,115]);; + result_1845497484[0].push.apply(result_1845497484[0], [58,32]);; + countHEX60gensym219_1845497495 += 1; + addQuoted_1845498907(result_1845497484, 0, x_1845497483.buys); + if ((0 < countHEX60gensym219_1845497495)) { + result_1845497484[0].push.apply(result_1845497484[0], [44,32]);; + } + + result_1845497484[0].push.apply(result_1845497484[0], [112,105,101,99,101,115,83,111,108,100]);; + result_1845497484[0].push.apply(result_1845497484[0], [58,32]);; + countHEX60gensym219_1845497495 += 1; + addQuoted_889193861(result_1845497484, 0, x_1845497483.piecesSold); + if ((0 < countHEX60gensym219_1845497495)) { + result_1845497484[0].push.apply(result_1845497484[0], [44,32]);; + } + + result_1845497484[0].push.apply(result_1845497484[0], [112,105,101,99,101,115,83,111,108,100,84,104,105,115,84,117,114,110]);; + result_1845497484[0].push.apply(result_1845497484[0], [58,32]);; + countHEX60gensym219_1845497495 += 1; + addQuoted_889193861(result_1845497484, 0, x_1845497483.piecesSoldThisTurn); + if ((0 < countHEX60gensym219_1845497495)) { + result_1845497484[0].push.apply(result_1845497484[0], [44,32]);; + } + + result_1845497484[0].push.apply(result_1845497484[0], [103,108,97,115,115]);; + result_1845497484[0].push.apply(result_1845497484[0], [58,32]);; + countHEX60gensym219_1845497495 += 1; + addQuoted_1845499162(result_1845497484, 0, x_1845497483.glass); + result_1845497484[0].push.apply(result_1845497484[0], [41]);; + + return result_1845497484[0]; + +} + +function HEX3Aanonymous_1845496437(piece_1845496438, b_1845496439, state_1845496440) { + state_1845496440.Field1[chckIndx(piece_1845496438.color, 0, (state_1845496440.Field1).length - 1)].piecesSold = addInt(state_1845496440.Field1[chckIndx(piece_1845496438.color, 0, (state_1845496440.Field1).length - 1)].piecesSold, 1); + state_1845496440.Field1[chckIndx(piece_1845496438.color, 0, (state_1845496440.Field1).length - 1)].piecesSoldThisTurn = addInt(state_1845496440.Field1[chckIndx(piece_1845496438.color, 0, (state_1845496440.Field1).length - 1)].piecesSoldThisTurn, 1); + rawEcho(HEX24_1845497481(state_1845496440.Field1[chckIndx(piece_1845496438.color, 0, (state_1845496440.Field1).length - 1)])); + b_1845496439[chckIndx(piece_1845496438.tile.Field1, 0, (b_1845496439).length - 1)][chckIndx(piece_1845496438.tile.Field0, 0, (b_1845496439[chckIndx(piece_1845496438.tile.Field1, 0, (b_1845496439).length - 1)]).length - 1)] = nimCopy(b_1845496439[chckIndx(piece_1845496438.tile.Field1, 0, (b_1845496439).length - 1)][chckIndx(piece_1845496438.tile.Field0, 0, (b_1845496439[chckIndx(piece_1845496438.tile.Field1, 0, (b_1845496439).length - 1)]).length - 1)], pieceCopy_1476395900(air_1526726831, b_1845496439[chckIndx(piece_1845496438.tile.Field1, 0, (b_1845496439).length - 1)][chckIndx(piece_1845496438.tile.Field0, 0, (b_1845496439[chckIndx(piece_1845496438.tile.Field1, 0, (b_1845496439).length - 1)]).length - 1)].index, 6, 1, 0, 0, piece_1845496438.tile, [], [], air_1526726831.onMove, air_1526726831.onTake, air_1526726831.whenTaken, [], [], false, [], true, false, false), NTI1476395034); + + +} + +function HEX3Aanonymous_1845499302(piece_1845499303, board_1845499304, s_1845499305) { + var result_1845499306 = false; + + BeforeRet: { + result_1845499306 = !((piece_1845499303.item == 0)); + break BeforeRet; + }; + + return result_1845499306; + +} + +function HEX3Aanonymous_1845499297(piece_1845499298, b_1845499299, state_1845499300) { + state_1845499300.Field1[chckIndx(1, 0, (state_1845499300.Field1).length - 1)].piecesSoldThisTurn = 0; + state_1845499300.Field1[chckIndx(0, 0, (state_1845499300.Field1).length - 1)].piecesSoldThisTurn = 0; + + +} + +function HEX3Aanonymous_1845499321(side_1845499322, __1845499323, b_1845499324, s_1845499325) { + s_1845499325.Field1[chckIndx(side_1845499322, 0, (s_1845499325.Field1).length - 1)].buys.push({Field0: [83,101,108,108], Field1: createPieceMarket_1845499312((-4), 1), Field2: HEX3Aanonymous_1845496437, Field3: HEX3Aanonymous_1845499302});; + buff_1845493778(0, side_1845499322, b_1845499324, s_1845499325, [], [], [HEX3Aanonymous_1845499297], false, [], null, null, null, false); + + +} + +function getMoney_1879048207(side_1879048208, s_1879048209) { + var result_1879048210 = 0; + + BeforeRet: { + var wallet_1879048211 = nimCopy(null, s_1879048209.Field1[chckIndx(side_1879048208, 0, (s_1879048209.Field1).length - 1)].wallet, NTI1476395106); + if (isSome_1660947689(wallet_1879048211)) { + result_1879048210 = get_1660947783(wallet_1879048211); + break BeforeRet; + } + else { + result_1879048210 = (-1); + break BeforeRet; + } + + }; + + return result_1879048210; + +} + +function HEX3Aanonymous_1845499370(piece_1845499371, __1845499372, state_1845499373) { + var currentMoney_1845499374 = getMoney_1879048207(piece_1845499371.color, state_1845499373); + var next_1845499375 = subInt(mulInt(currentMoney_1845499374, 2), currentMoney_1845499374); + addMoney_1879048234(piece_1845499371.color, next_1845499375, state_1845499373); + + +} + +function HEX3Aanonymous_1845499377(side_1845499378, __1845499379, b_1845499380, s_1845499381) { + buff_1845493778(0, side_1845499378, b_1845499380, s_1845499381, [], [], [HEX3Aanonymous_1845499370], false, [], null, null, null, false); + + +} + +function createSuperLottery_1845499340() { + +function HEX3Aanonymous_1845499343(piece_1845499344, board_1845499345, state_1845499346) { + if (!((piece_1845499344.timesMoved == lastTimesMoved_1845499342))) { + randomize_1644167430(BigInt(addInt(addInt(mulInt(10, piece_1845499344.tile.Field1), mulInt(100, piece_1845499344.tile.Field0)), state_1845499346.Field0.randSeed))); + var ticket_1845499347 = rand_1644167304(100); + if ((ticket_1845499347 == 42)) { + addMoney_1879048234(piece_1845499344.color, 10, state_1845499346); + Label1: { + var xHEX60gensym406_1845499352 = null; + var i_1845500727 = 0; + var L_1845500728 = (piece_1845499344.onPromote).length; Label2: { Label3: while (true) { - if (!(i_1845497904 < L_1845497905)) break Label3; - xHEX60gensym120_1845496496 = piece_1845496488.onPromote[chckIndx(i_1845497904, 0, (piece_1845496488.onPromote).length - 1)]; - xHEX60gensym120_1845496496(piece_1845496488, board_1845496489, state_1845496490); - if (piece_1845496488.promoted) { + if (!(i_1845500727 < L_1845500728)) break Label3; + xHEX60gensym406_1845499352 = piece_1845499344.onPromote[chckIndx(i_1845500727, 0, (piece_1845499344.onPromote).length - 1)]; + xHEX60gensym406_1845499352(piece_1845499344, board_1845499345, state_1845499346); + if (piece_1845499344.promoted) { break Label1; } - i_1845497904 += 1; - if (!(((piece_1845496488.onPromote).length == L_1845497905))) { + i_1845500727 += 1; + if (!(((piece_1845499344.onPromote).length == L_1845500728))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -7638,22 +8468,22 @@ function HEX3Aanonymous_1845496487(piece_1845496488, board_1845496489, state_184 } - lastTimesMoved_1845496486 = piece_1845496488.timesMoved; + lastTimesMoved_1845499342 = piece_1845499344.timesMoved; } - var result_1845496485 = null; + var result_1845499341 = null; - var lastTimesMoved_1845496486 = 0; - result_1845496485 = HEX3Aanonymous_1845496487; + var lastTimesMoved_1845499342 = 0; + result_1845499341 = HEX3Aanonymous_1845499343; - return result_1845496485; + return result_1845499341; } -function HEX3Aanonymous_1845496499(side_1845496500, __1845496501, b_1845496502, s_1845496503) { - addOnEndTurnTransform_1845493997(3, side_1845496500, b_1845496502, s_1845496503, createSuperLottery_1845496484, false); +function HEX3Aanonymous_1845499355(side_1845499356, __1845499357, b_1845499358, s_1845499359) { + addOnEndTurnTransform_1845493997(3, side_1845499356, b_1845499358, s_1845499359, createSuperLottery_1845499340, false); } @@ -7746,12 +8576,12 @@ registerPower_1728054076(conversion_1845495989); registerPower_1728054076(americanDream_1845496048); registerPower_1728054076(sleeperAgent_1845496101); registerPower_1728054076(capitalismPower_1845496229); -registerPower_1728054076(skyGlass_1845496684); -registerPower_1728054076(zeroGlass_1845496696); -registerSynergy_1728053329({Field0: {name: [71,108,97,115,115,58,32,66,97,110,107,114,117,112,116,99,121], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, if you have only 0 dollars, instead of moving you can choose 3 pieces to each cast Bankruptcy on \x0A any non-king tiles. Any piece on these tiles will die if the cast completes. Bankruptcy cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496835, index: (-1), priority: 0}, Field1: 8, Field2: [[71,108,97,115,115,58,32,90,101,114,111], [67,97,112,105,116,97,108,105,115,109]], Field3: [[71,108,97,115,115,58,32,90,101,114,111]]}, false, false); -registerPower_1728054076(steelGlass_1845496708); -registerPower_1728054076(reverieGlass_1845497077); -registerPower_1728054076(daybreakGlass_1845497123); +registerPower_1728054076(skyGlass_1845499540); +registerPower_1728054076(zeroGlass_1845499552); +registerSynergy_1728053329({Field0: {name: [71,108,97,115,115,58,32,66,97,110,107,114,117,112,116,99,121], technicalName: [], synergy: false, tier: 2, rarity: 6, description: makeNimstrLit("On your turn, if you have only 0 dollars, instead of moving you can choose 3 pieces to each cast Bankruptcy on \x0A any non-king tiles. Any piece on these tiles will die if the cast completes. Bankruptcy cannot be cast turn one. Glass powers take one turn to start casting, one turn waiting to draw glass power, and one turn when the cast completes."), icon: [122,101,114,111,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499656, index: (-1), priority: 0}, Field1: 8, Field2: [[71,108,97,115,115,58,32,90,101,114,111], [67,97,112,105,116,97,108,105,115,109]], Field3: [[71,108,97,115,115,58,32,90,101,114,111]]}, false, false); +registerPower_1728054076(steelGlass_1845499564); +registerPower_1728054076(reverieGlass_1845499898); +registerPower_1728054076(daybreakGlass_1845499944); registerSynergy_1728053329({Field0: {name: [65,110,105,109,101,32,66,97,116,116,108,101], technicalName: [], synergy: false, tier: 2, rarity: 0, description: makeNimstrLit("Your board is imbued with the power of anime. You feel a odd sense of regret. Or is it guilt?"), icon: [103,111,108,100,103,101,110,101,114,97,108,46,115,118,103], rotatable: true, noColor: true, onStart: HEX3Aanonymous_1845494606, index: (-1), priority: 5}, Field1: 32, Field2: [[77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110]], Field3: [[77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110], [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], [65,110,105,109,101,32,66,97,116,116,108,101]]}, false, false); registerSynergy_1728053329({Field0: {name: [75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], technicalName: [], synergy: false, tier: 2, rarity: 4, description: [67,72,65,82,71,69,33,32,89,111,117,114,32,107,110,105,103,104,116,115,32,115,116,97,114,116,32,51,32,116,105,108,101,115,32,97,104,101,97,100,46], icon: [107,110,105,103,104,116,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494922, index: (-1), priority: 20}, Field1: 16, Field2: [[67,97,108,118,97,114,121]], Field3: []}, false, false); registerSynergy_1728053329({Field0: {name: [67,114,105,109,105,110,97,108,32,70,111,114,109,97,116,105,111,110], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("I guess the rules didn\'t get to you. Your pawns above both knights and both rooks swap places with those pieces."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494980, index: (-1), priority: 20}, Field1: 12, Field2: [[73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110]], Field3: [[73,108,108,101,103,97,108,32,70,111,114,109,97,116,105,111,110]]}, false, false); @@ -7759,7 +8589,7 @@ registerSynergy_1728053329({Field0: {name: [76,105,110,101,98,97,99,107,101,114, registerSynergy_1728053329({Field0: {name: [72,111,108,121,32,66,105,115,104,111,112,115], technicalName: [], synergy: false, tier: 2, rarity: 8, description: [71,111,100,32,104,97,115,32,98,108,101,115,115,101,100,32,121,111,117,114,32,98,105,115,104,111,112,115,46,32], icon: [99,114,111,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845495069, index: (-1), priority: 15}, Field1: 8, Field2: [[65,114,99,104,98,105,115,104,111,112,115], [72,111,108,121]], Field3: [[65,114,99,104,98,105,115,104,111,112,115]]}, false, false); registerSynergy_1728053329({Field0: {name: [66,111,117,110,116,121,32,72,117,110,116,101,114], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("It\'s hard to make a living these days. If your king takes 3 pieces, you automatically win."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495195, index: (-1), priority: 15}, Field1: 16, Field2: [[83,104,111,116,103,117,110,32,75,105,110,103]], Field3: []}, false, false); registerSynergy_1728053329({Field0: {name: [71,111,100,39,115,32,68,105,115,99,105,112,108,101], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("Your bishop has now seen god. When it takes, it has a 30% chance to convert it to your color. \x0A When this happens, your bishop swaps places with it instead of taking it."), icon: [98,105,115,104,111,112,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845496013, index: (-1), priority: 15}, Field1: 16, Field2: [[67,111,110,118,101,114,115,105,111,110], [72,111,108,121]], Field3: [[67,111,110,118,101,114,115,105,111,110]]}, false, false); -registerSynergy_1728053329({Field0: {name: [68,105,118,105,110,101,32,87,105,110,100], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("The divine wind briskly brushes your back. Your lances will take forward while sky is casting."), icon: [108,97,110,99,101,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496762, index: (-1), priority: 15}, Field1: 12, Field2: [[71,108,97,115,115,58,32,83,107,121], [75,97,109,105,107,97,122,101]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [68,105,118,105,110,101,32,87,105,110,100], technicalName: [], synergy: false, tier: 1, rarity: 8, description: makeNimstrLit("The divine wind briskly brushes your back. Your lances will take forward while sky is casting."), icon: [108,97,110,99,101,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499583, index: (-1), priority: 15}, Field1: 12, Field2: [[71,108,97,115,115,58,32,83,107,121], [75,97,109,105,107,97,122,101]], Field3: []}, false, false); registerSynergy_1728053329({Field0: {name: [83,117,112,101,114,32,80,97,119,110], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [89,111,117,32,104,97,118,101,32,105,110,115,97,110,101,32,112,97,119,110,115,46,32,80,108,101,97,115,101,32,100,111,110,39,116,32,115,97,99,114,105,102,105,99,101,32,116,104,101,109,46], icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494749, index: (-1), priority: 15}, Field1: 0, Field2: [[66,97,99,107,115,116,101,112], [72,101,97,100,115,116,97,114,116]], Field3: [[66,97,99,107,115,116,101,112], [72,101,97,100,115,116,97,114,116]]}, true, false); registerSynergy_1728053329({Field0: {name: [81,117,101,101,110,39,115,32,87,114,97,116,104], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [87,104,121,32,109,117,115,116,32,115,104,101,32,100,105,101,63], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494799, index: (-1), priority: 1}, Field1: 0, Field2: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [81,117,101,101,110,32,84,114,97,100,101]], Field3: [[76,101,115,98,105,97,110,32,80,114,105,100,101]]}, true, false); registerSynergy_1728053329({Field0: {name: [81,117,101,101,110,39,115,32,87,114,97,116,104], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [87,104,121,32,109,117,115,116,32,115,104,101,32,100,105,101,63], icon: [113,117,101,101,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845494799, index: (-1), priority: 1}, Field1: 0, Field2: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110]], Field3: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [83,97,99,114,105,102,105,99,105,97,108,32,77,97,105,100,101,110]]}, true, false); @@ -7769,17 +8599,17 @@ registerSynergy_1728053329({Field0: {name: [66,97,110,100,97,105,100], technical registerSynergy_1728053329({Field0: {name: [66,111,117,110,116,121,32,72,117,110,116,101,114,32,78,101,114,102], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Yeah, 3 pieces is way too easy for our lesbian queens, so now it\'s 7 pieces. You got this!"), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495864, index: (-1), priority: 15}, Field1: 0, Field2: [[76,101,115,98,105,97,110,32,80,114,105,100,101], [66,111,117,110,116,121,32,72,117,110,116,101,114]], Field3: [[66,111,117,110,116,121,32,72,117,110,116,101,114]]}, true, false); registerSynergy_1728053329({Field0: {name: [110,105,103,104,101,116,114,105,101,100,100,101,114], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [110,105,103,104,101,116,114,105,101,100,100,101,114,46,63], icon: [110,105,103,104,116,114,105,100,101,114,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495569, index: (-1), priority: 17}, Field1: 0, Field2: [[68,114,117,110,107,32,75,110,105,103,104,116,115], [78,105,103,104,116,114,105,100,101,114]], Field3: []}, true, false); registerSynergy_1728053329({Field0: {name: [110,105,103,104,101,116,114,105,101,100,100,101,114], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [110,105,103,104,101,116,114,105,101,100,100,101,114,46,63], icon: [110,105,103,104,116,114,105,100,101,114,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495569, index: (-1), priority: 17}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [78,105,103,104,116,114,105,100,101,114]], Field3: []}, true, false); -registerSynergy_1728053329({Field0: {name: [67,108,97,114,105,116,121], technicalName: [], synergy: false, tier: 3, rarity: 0, description: makeNimstrLit("You now see things in a whole new light. \x0A It\'s not regret as much as self-disappointment."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845497189, index: (-1), priority: 15}, Field1: 0, Field2: [[71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], [67,111,110,99,117,98,105,110,101]], Field3: []}, true, false); -registerSynergy_1728053329({Field0: {name: [77,97,115,116,101,114,32,71,108,97,115,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [89,111,117,32,104,97,118,101,32,103,111,111,100,32,116,97,115,116,101,46,32,65,108,108,32,103,108,97,115,115,101,115,32,99,97,110,32,98,101,32,99,97,115,116,32,111,110,101,32,109,111,114,101,32,116,105,109,101,46], icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845497208, index: (-1), priority: 30}, Field1: 0, Field2: [[71,108,97,115,115,58,32,83,107,121], [71,108,97,115,115,58,32,82,101,118,101,114,105,101], [71,108,97,115,115,58,32,90,101,114,111], [71,108,97,115,115,58,32,83,116,101,101,108], [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107]], Field3: []}, true, false); -registerSynergy_1728053329({Field0: {name: [77,97,115,116,101,114,32,71,108,97,115,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [89,111,117,32,104,97,118,101,32,103,111,111,100,32,116,97,115,116,101,46,32,65,108,108,32,103,108,97,115,115,101,115,32,99,97,110,32,98,101,32,99,97,115,116,32,111,110,101,32,109,111,114,101,32,116,105,109,101,46], icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845497208, index: (-1), priority: 30}, Field1: 0, Field2: [[71,108,97,115,115,58,32,83,107,121], [71,108,97,115,115,58,32,82,101,118,101,114,105,101], [71,108,97,115,115,58,32,66,97,110,107,114,117,112,116,99,121], [71,108,97,115,115,58,32,83,116,101,101,108], [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [67,108,97,114,105,116,121], technicalName: [], synergy: false, tier: 3, rarity: 0, description: makeNimstrLit("You now see things in a whole new light. \x0A It\'s not regret as much as self-disappointment."), icon: [107,105,110,103,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845500010, index: (-1), priority: 15}, Field1: 0, Field2: [[71,108,97,115,115,58,32,68,97,121,98,114,101,97,107], [67,111,110,99,117,98,105,110,101]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [77,97,115,116,101,114,32,71,108,97,115,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [89,111,117,32,104,97,118,101,32,103,111,111,100,32,116,97,115,116,101,46,32,65,108,108,32,103,108,97,115,115,101,115,32,99,97,110,32,98,101,32,99,97,115,116,32,111,110,101,32,109,111,114,101,32,116,105,109,101,46], icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845500029, index: (-1), priority: 30}, Field1: 0, Field2: [[71,108,97,115,115,58,32,83,107,121], [71,108,97,115,115,58,32,82,101,118,101,114,105,101], [71,108,97,115,115,58,32,90,101,114,111], [71,108,97,115,115,58,32,83,116,101,101,108], [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [77,97,115,116,101,114,32,71,108,97,115,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [89,111,117,32,104,97,118,101,32,103,111,111,100,32,116,97,115,116,101,46,32,65,108,108,32,103,108,97,115,115,101,115,32,99,97,110,32,98,101,32,99,97,115,116,32,111,110,101,32,109,111,114,101,32,116,105,109,101,46], icon: [115,107,121,103,108,97,115,115,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845500029, index: (-1), priority: 30}, Field1: 0, Field2: [[71,108,97,115,115,58,32,83,107,121], [71,108,97,115,115,58,32,82,101,118,101,114,105,101], [71,108,97,115,115,58,32,66,97,110,107,114,117,112,116,99,121], [71,108,97,115,115,58,32,83,116,101,101,108], [71,108,97,115,115,58,32,68,97,121,98,114,101,97,107]], Field3: []}, true, false); registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,58,32,77,111,118,101,32,85,112], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Money is pretty neat right? You can spend 8 dollars to move a piece one tile forward. It cannot take with this action."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496326, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,58,32,77,111,118,101,32,66,97,99,107], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Money is pretty neat right? You can spend 7 dollars to move a piece one tile backwards. It cannot take with this action."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496369, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,58,32,73,110,99,111,109,101], synergy: false, tier: 0, rarity: 0, description: [72,101,114,101,44,32,104,97,118,101,32,49,48,32,100,111,108,108,97,114,115], icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496396, index: (-1), priority: 35}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,73,58,32,85,112,103,114,97,100,101,32,75,110,105,103,104,116], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("Money can be used in exchange for goods and services. You can spend 8 dollars to give a piece the movement of a knight.\x0A This upgrade is 30 dollars more expensive for the king. The upgraded piece still cannot take like a knight."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496403, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,73,73], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,73,73,58,32,85,112,103,114,97,100,101,32,71,105,114,97,102,102,101], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("Money can be used in exchange for goods and services. You can spend 8 dollars to give a piece the movement of a giraffe. \x0A This upgrade is 30 dollars more expensive for the king. The upgraded piece still cannot take like a giraffe."), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496420, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); -registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,86], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,86,58,32,83,101,108,108], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("Who needs these pieces? AFUERA! You can sell a piece for 4 dollars. Each subsequent piece gives one dollar less. "), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496469, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); -registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,77,77], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,79,32,84,72,69,32,77,79,79,78,33,33,33,33], icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845496521, index: (-1), priority: 15}, Field1: 16, Field2: [[67,97,112,105,116,97,108,105,115,109], [67,97,112,105,116,97,108,105,115,109,32,73,73], [67,97,112,105,116,97,108,105,115,109,32,73,73,73], [67,97,112,105,116,97,108,105,115,109,32,73,86]], Field3: []}, true, false); -registerSynergy_1728053329({Field0: {name: [83,108,117,109,100,111,103,32,66,105,108,108,105,111,110,97,105,114,101], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Have you seen the movie Slumdog Millionaire? It\'s kind of like that but more. \x0A Your pawns have a 2% chance of promoting whenever they move. When this happens, you get 10 dollars."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845496499, index: (-1), priority: 15}, Field1: 8, Field2: [[67,97,112,105,116,97,108,105,115,109], [83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101]], Field3: [[83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101]]}, true, false); +registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,73,86], technicalName: [67,97,112,105,116,97,108,105,115,109,32,73,86,58,32,83,101,108,108], synergy: false, tier: 1, rarity: 0, description: makeNimstrLit("Who needs these pieces? AFUERA! You can sell a piece for 4 dollars. Each subsequent piece gives one dollar less. "), icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499321, index: (-1), priority: 15}, Field1: 24, Field2: [[67,97,112,105,116,97,108,105,115,109]], Field3: []}, false, false); +registerSynergy_1728053329({Field0: {name: [67,97,112,105,116,97,108,105,115,109,32,77,77], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,79,32,84,72,69,32,77,79,79,78,33,33,33,33], icon: [117,115,102,108,97,103,46,115,118,103], rotatable: false, noColor: true, onStart: HEX3Aanonymous_1845499377, index: (-1), priority: 15}, Field1: 16, Field2: [[67,97,112,105,116,97,108,105,115,109], [67,97,112,105,116,97,108,105,115,109,32,73,73], [67,97,112,105,116,97,108,105,115,109,32,73,73,73], [67,97,112,105,116,97,108,105,115,109,32,73,86]], Field3: []}, true, false); +registerSynergy_1728053329({Field0: {name: [83,108,117,109,100,111,103,32,66,105,108,108,105,111,110,97,105,114,101], technicalName: [], synergy: false, tier: 0, rarity: 0, description: makeNimstrLit("Have you seen the movie Slumdog Millionaire? It\'s kind of like that but more. \x0A Your pawns have a 2% chance of promoting whenever they move. When this happens, you get 10 dollars."), icon: [112,97,119,110,46,115,118,103], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845499355, index: (-1), priority: 15}, Field1: 8, Field2: [[67,97,112,105,116,97,108,105,115,109], [83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101]], Field3: [[83,108,117,109,100,111,103,32,77,105,108,108,105,111,110,97,105,114,101]]}, true, false); registerSynergy_1728053329({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495629, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [75,97,109,105,107,97,122,101], [72,101,97,100,115,116,97,114,116], [77,121,115,116,101,114,105,111,117,115,32,83,119,111,114,100,115,109,97,110]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); registerSynergy_1728053329({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495629, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [66,97,99,107,115,116,101,112], [75,110,105,103,104,116,39,115,32,67,104,97,114,103,101], [69,109,112,114,101,115,115]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); registerSynergy_1728053329({Field0: {name: [118,105,114,117,115], technicalName: [], synergy: false, tier: 3, rarity: 0, description: [84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46,32,84,104,101,121,39,114,101,32,100,121,105,110,103,46], icon: [], rotatable: false, noColor: false, onStart: HEX3Aanonymous_1845495629, index: (-1), priority: 15}, Field1: 0, Field2: [[65,108,99,111,104,111,108,105,115,109], [87,97,110,100,101,114,105,110,103,32,82,111,110,105,110], [83,117,112,101,114,32,80,97,119,110], [69,109,112,114,101,115,115]], Field3: [[65,108,99,111,104,111,108,105,115,109]]}, true, false); @@ -7896,17 +8726,17 @@ function find_1728053916(a_1728053919, item_1728053920) { result_1728053921 = 0; Label1: { var i_1728053935 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656533 = 0; + var i_553654700 = 0; Label2: { Label3: while (true) { - if (!(i_553656533 < (a_1728053919).length)) break Label3; - i_1728053935 = a_1728053919[chckIndx(i_553656533, 0, (a_1728053919).length - 1)]; + if (!(i_553654700 < (a_1728053919).length)) break Label3; + i_1728053935 = a_1728053919[chckIndx(i_553654700, 0, (a_1728053919).length - 1)]; if (HEX3DHEX3D_1728053936(i_1728053935, item_1728053920)) { break BeforeRet; } result_1728053921 = addInt(result_1728053921, 1); - i_553656533 += 1; + i_553654700 += 1; } }; }; @@ -8152,13 +8982,13 @@ function enlarge_1728055530(t_1728055533) { var n_1728055536 = []; n_1728055536 = new Array(chckRange(mulInt((t_1728055533.data).length, 2), 0, 2147483647)); for (var i = 0 ; i < chckRange(mulInt((t_1728055533.data).length, 2), 0, 2147483647) ; ++i) { n_1728055536[i] = {Field0: 0, Field1: [], Field2: []}; } var Temporary1 = t_1728055533.data; t_1728055533.data = n_1728055536; n_1728055536 = Temporary1; Label2: { var i_1728055596 = 0; - var colontmp__553656542 = 0; - colontmp__553656542 = (n_1728055536).length - 1; - var res_553656543 = 0; + var colontmp__553654709 = 0; + colontmp__553654709 = (n_1728055536).length - 1; + var res_553654710 = 0; Label3: { Label4: while (true) { - if (!(res_553656543 <= colontmp__553656542)) break Label4; - i_1728055596 = res_553656543; + if (!(res_553654710 <= colontmp__553654709)) break Label4; + i_1728055596 = res_553654710; var eh_1728055646 = n_1728055536[chckIndx(i_1728055596, 0, (n_1728055536).length - 1)].Field0; if (isFilled_1291845663(eh_1728055646)) { var j_1728055650 = (eh_1728055646 & (t_1728055533.data).length - 1); @@ -8171,7 +9001,7 @@ function enlarge_1728055530(t_1728055533) { rawInsert_1728055804(t_1728055533, t_1728055533, "data", n_1728055536[chckIndx(i_1728055596, 0, (n_1728055536).length - 1)].Field1, n_1728055536[chckIndx(i_1728055596, 0, (n_1728055536).length - 1)].Field2, eh_1728055646, j_1728055650); } - res_553656543 = addInt(res_553656543, 1); + res_553654710 = addInt(res_553654710, 1); } }; }; @@ -8248,16 +9078,16 @@ function getAllPowers_1728054731() { var resultHEX60gensym59_1728054767 = newSeq_1728053603(chckRange((secretSecretSynergies_1728053324[0]).length, 0, 2147483647)); Label2: { var it_1728054771 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; - var i_553656522 = 0; - var L_553656523 = (secretSecretSynergies_1728053324[0]).length; + var i_553654689 = 0; + var L_553654690 = (secretSecretSynergies_1728053324[0]).length; Label3: { Label4: while (true) { - if (!(i_553656522 < L_553656523)) break Label4; - it_1728054771 = secretSecretSynergies_1728053324[0][chckIndx(i_553656522, 0, (secretSecretSynergies_1728053324[0]).length - 1)]; + if (!(i_553654689 < L_553654690)) break Label4; + it_1728054771 = secretSecretSynergies_1728053324[0][chckIndx(i_553654689, 0, (secretSecretSynergies_1728053324[0]).length - 1)]; resultHEX60gensym59_1728054767[chckIndx(iHEX60gensym59_1728054760, 0, (resultHEX60gensym59_1728054767).length - 1)] = nimCopy(resultHEX60gensym59_1728054767[chckIndx(iHEX60gensym59_1728054760, 0, (resultHEX60gensym59_1728054767).length - 1)], it_1728054771.Field0, NTI1728053253); iHEX60gensym59_1728054760 = addInt(iHEX60gensym59_1728054760, 1); - i_553656522 += 1; - if (!(((secretSecretSynergies_1728053324[0]).length == L_553656523))) { + i_553654689 += 1; + if (!(((secretSecretSynergies_1728053324[0]).length == L_553654690))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -8268,12 +9098,12 @@ function getAllPowers_1728054731() { var secretSecretPowers_1728054776 = nimCopy(null, resultHEX60gensym59_1728054767, NTI1728053541); Label5: { var p_1728054780 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656528 = 0; - var L_553656529 = (powers_1728053321[0]).length; + var i_553654695 = 0; + var L_553654696 = (powers_1728053321[0]).length; Label6: { Label7: while (true) { - if (!(i_553656528 < L_553656529)) break Label7; - p_1728054780 = powers_1728053321[0][chckIndx(i_553656528, 0, (powers_1728053321[0]).length - 1)]; + if (!(i_553654695 < L_553654696)) break Label7; + p_1728054780 = powers_1728053321[0][chckIndx(i_553654695, 0, (powers_1728053321[0]).length - 1)]; Label8: { if (contains_1728053911(secretSecretPowers_1728054776, p_1728054780)) { break Label8; @@ -8288,8 +9118,8 @@ function getAllPowers_1728054731() { } }; - i_553656528 += 1; - if (!(((powers_1728053321[0]).length == L_553656529))) { + i_553654695 += 1; + if (!(((powers_1728053321[0]).length == L_553654696))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -8304,18 +9134,18 @@ function getAllPowers_1728054731() { function initStorage_1929379855() { Label1: { var power_1929379859 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656547 = 0; - var L_553656548 = (powers_1728053321[0]).length; + var i_553654714 = 0; + var L_553654715 = (powers_1728053321[0]).length; Label2: { Label3: while (true) { - if (!(i_553656547 < L_553656548)) break Label3; - power_1929379859 = powers_1728053321[0][chckIndx(i_553656547, 0, (powers_1728053321[0]).length - 1)]; + if (!(i_553654714 < L_553654715)) break Label3; + power_1929379859 = powers_1728053321[0][chckIndx(i_553654714, 0, (powers_1728053321[0]).length - 1)]; if (!(localStorage.getItem(toJSStr(power_1929379859.technicalName)) !== null)) { localStorage.setItem(toJSStr(power_1929379859.technicalName), JSON.stringify({wins: 0, losses: 0})); } - i_553656547 += 1; - if (!(((powers_1728053321[0]).length == L_553656548))) { + i_553654714 += 1; + if (!(((powers_1728053321[0]).length == L_553654715))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -8335,13 +9165,13 @@ function HEX5BHEX5D_721421729(s_721421733, x_721421734) { var L_721421743 = addInt(subInt(subInt((s_721421733).length, x_721421734.b), a_721421737), 1); result_721421735 = new Array(chckRange(L_721421743, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_721421743, 0, 2147483647) ; ++i) { result_721421735[i] = null; } Label1: { var i_721421752 = 0; - var i_553656551 = 0; + var i_553654718 = 0; Label2: { Label3: while (true) { - if (!(i_553656551 < L_721421743)) break Label3; - i_721421752 = i_553656551; + if (!(i_553654718 < L_721421743)) break Label3; + i_721421752 = i_553654718; result_721421735[chckIndx(i_721421752, 0, (result_721421735).length - 1)] = s_721421733[chckIndx(addInt(i_721421752, a_721421737), 0, (s_721421733).length - 1)]; - i_553656551 = addInt(i_553656551, 1); + i_553654718 = addInt(i_553654718, 1); } }; }; @@ -8508,15 +9338,15 @@ function applyEvents_721420581(n_721420582) { var dest_721420583 = n_721420582.dom; Label1: { var i_721420591 = 0; - var colontmp__553656574 = 0; - colontmp__553656574 = (n_721420582.events).length; - var i_553656575 = 0; + var colontmp__553654741 = 0; + colontmp__553654741 = (n_721420582.events).length; + var i_553654742 = 0; Label2: { Label3: while (true) { - if (!(i_553656575 < colontmp__553656574)) break Label3; - i_721420591 = i_553656575; + if (!(i_553654742 < colontmp__553654741)) break Label3; + i_721420591 = i_553654742; n_721420582.events[chckIndx(i_721420591, 0, (n_721420582.events).length - 1)]["Field2"] = wrapEvent_721420454(dest_721420583, n_721420582, n_721420582.events[chckIndx(i_721420591, 0, (n_721420582.events).length - 1)]["Field0"], n_721420582.events[chckIndx(i_721420591, 0, (n_721420582.events).length - 1)]["Field1"]); - i_553656575 = addInt(i_553656575, 1); + i_553654742 = addInt(i_553654742, 1); } }; }; @@ -8528,15 +9358,15 @@ function applyStyle_822084094(n_822084095, s_822084096) { n_822084095.style = {}; Label1: { var i_822084109 = 0; - var colontmp__553656578 = 0; - colontmp__553656578 = subInt(s_822084096.length, 1); - var res_553656579 = 0; + var colontmp__553654745 = 0; + colontmp__553654745 = subInt(s_822084096.length, 1); + var res_553654746 = 0; Label2: { Label3: while (true) { - if (!(res_553656579 <= colontmp__553656578)) break Label3; - i_822084109 = res_553656579; + if (!(res_553654746 <= colontmp__553654745)) break Label3; + i_822084109 = res_553654746; n_822084095.style[s_822084096[i_822084109]] = s_822084096[addInt(i_822084109, 1)]; - res_553656579 = addInt(res_553656579, 2); + res_553654746 = addInt(res_553654746, 2); } }; }; @@ -8654,17 +9484,17 @@ function toDom_721420610(n_721420611, useAttachedNode_721420612, kxi_721420613) Label2: { var k_721420731 = null; Label3: { - var i_553656559 = 0; - var colontmp__553656560 = 0; - colontmp__553656560 = (n_721420611.kids).length; - var i_553656561 = 0; + var i_553654726 = 0; + var colontmp__553654727 = 0; + colontmp__553654727 = (n_721420611.kids).length; + var i_553654728 = 0; Label4: { Label5: while (true) { - if (!(i_553656561 < colontmp__553656560)) break Label5; - i_553656559 = i_553656561; - k_721420731 = n_721420611.kids[chckIndx(i_553656559, 0, (n_721420611.kids).length - 1)]; + if (!(i_553654728 < colontmp__553654727)) break Label5; + i_553654726 = i_553654728; + k_721420731 = n_721420611.kids[chckIndx(i_553654726, 0, (n_721420611.kids).length - 1)]; result_721420614.appendChild(toDom_721420610(k_721420731, useAttachedNode_721420612, kxi_721420613)); - i_553656561 = addInt(i_553656561, 1); + i_553654728 = addInt(i_553654728, 1); } }; }; @@ -8693,21 +9523,21 @@ function toDom_721420610(n_721420611, useAttachedNode_721420612, kxi_721420613) var k_721420736 = null; var v_721420737 = null; Label7: { - var i_553656569 = 0; - var colontmp__553656570 = 0; - colontmp__553656570 = subInt((n_721420611.attrs).length, 2); - var res_553656571 = 0; + var i_553654736 = 0; + var colontmp__553654737 = 0; + colontmp__553654737 = subInt((n_721420611.attrs).length, 2); + var res_553654738 = 0; Label8: { Label9: while (true) { - if (!(res_553656571 <= colontmp__553656570)) break Label9; - i_553656569 = res_553656571; - k_721420736 = n_721420611.attrs[chckIndx(i_553656569, 0, (n_721420611.attrs).length - 1)]; - v_721420737 = n_721420611.attrs[chckIndx(addInt(i_553656569, 1), 0, (n_721420611.attrs).length - 1)]; + if (!(res_553654738 <= colontmp__553654737)) break Label9; + i_553654736 = res_553654738; + k_721420736 = n_721420611.attrs[chckIndx(i_553654736, 0, (n_721420611.attrs).length - 1)]; + v_721420737 = n_721420611.attrs[chckIndx(addInt(i_553654736, 1), 0, (n_721420611.attrs).length - 1)]; if (!((v_721420737 == null))) { result_721420614.setAttribute(k_721420736, v_721420737); } - res_553656571 = addInt(res_553656571, 2); + res_553654738 = addInt(res_553654738, 2); } }; }; @@ -8782,19 +9612,19 @@ function eq_822083842(a_822083843, b_822083844) { Label1: { var i_822083880 = 0; - var colontmp__553656605 = 0; - colontmp__553656605 = a_822083843.length; - var i_553656606 = 0; + var colontmp__553654772 = 0; + colontmp__553654772 = a_822083843.length; + var i_553654773 = 0; Label2: { Label3: while (true) { - if (!(i_553656606 < colontmp__553656605)) break Label3; - i_822083880 = i_553656606; + if (!(i_553654773 < colontmp__553654772)) break Label3; + i_822083880 = i_553654773; if (!((a_822083843[i_822083880] == b_822083844[i_822083880]))) { result_822083845 = false; break BeforeRet; } - i_553656606 = addInt(i_553656606, 1); + i_553654773 = addInt(i_553654773, 1); } }; }; @@ -8823,19 +9653,19 @@ function sameAttrs_754975717(a_754975718, b_754975719) { result_754975720 = true; Label1: { var i_754975734 = 0; - var colontmp__553656609 = 0; - colontmp__553656609 = (a_754975718.attrs).length; - var i_553656610 = 0; + var colontmp__553654776 = 0; + colontmp__553654776 = (a_754975718.attrs).length; + var i_553654777 = 0; Label2: { Label3: while (true) { - if (!(i_553656610 < colontmp__553656609)) break Label3; - i_754975734 = i_553656610; + if (!(i_553654777 < colontmp__553654776)) break Label3; + i_754975734 = i_553654777; if (!((a_754975718.attrs[chckIndx(i_754975734, 0, (a_754975718.attrs).length - 1)] == b_754975719.attrs[chckIndx(i_754975734, 0, (b_754975719.attrs).length - 1)]))) { result_754975720 = false; break BeforeRet; } - i_553656610 = addInt(i_553656610, 1); + i_553654777 = addInt(i_553654777, 1); } }; }; @@ -8888,19 +9718,19 @@ function eq_721420843(a_721420844, b_721420845, recursive_721420846) { Label1: { var i_721420864 = 0; - var colontmp__553656597 = 0; - colontmp__553656597 = len_754975537(a_721420844); - var i_553656598 = 0; + var colontmp__553654764 = 0; + colontmp__553654764 = len_754975537(a_721420844); + var i_553654765 = 0; Label2: { Label3: while (true) { - if (!(i_553656598 < colontmp__553656597)) break Label3; - i_721420864 = i_553656598; + if (!(i_553654765 < colontmp__553654764)) break Label3; + i_721420864 = i_553654765; if ((eq_721420843(HEX5BHEX5D_754975544(a_721420844, i_721420864), HEX5BHEX5D_754975544(b_721420845, i_721420864), recursive_721420846) == 1)) { result_721420847 = 1; break BeforeRet; } - i_553656598 = addInt(i_553656598, 1); + i_553654765 = addInt(i_553654765, 1); } }; }; @@ -8954,19 +9784,19 @@ function eq_721420843(a_721420844, b_721420845, recursive_721420846) { Label4: { var i_721420890 = 0; - var colontmp__553656601 = 0; - colontmp__553656601 = len_754975537(a_721420844); - var i_553656602 = 0; + var colontmp__553654768 = 0; + colontmp__553654768 = len_754975537(a_721420844); + var i_553654769 = 0; Label5: { Label6: while (true) { - if (!(i_553656602 < colontmp__553656601)) break Label6; - i_721420890 = i_553656602; + if (!(i_553654769 < colontmp__553654768)) break Label6; + i_721420890 = i_553654769; if (!((eq_721420843(HEX5BHEX5D_754975544(a_721420844, i_721420890), HEX5BHEX5D_754975544(b_721420845, i_721420890), true) == 3))) { result_721420847 = 1; break BeforeRet; } - i_553656602 = addInt(i_553656602, 1); + i_553654769 = addInt(i_553654769, 1); } }; }; @@ -9016,18 +9846,18 @@ function updateAttributes_721421325(newNode_721421326, oldNode_721421327) { var k_721421332 = null; var __721421333 = null; Label2: { - var i_553656614 = 0; - var colontmp__553656615 = 0; - colontmp__553656615 = subInt((oldNode_721421327.attrs).length, 2); - var res_553656616 = 0; + var i_553654781 = 0; + var colontmp__553654782 = 0; + colontmp__553654782 = subInt((oldNode_721421327.attrs).length, 2); + var res_553654783 = 0; Label3: { Label4: while (true) { - if (!(res_553656616 <= colontmp__553656615)) break Label4; - i_553656614 = res_553656616; - k_721421332 = oldNode_721421327.attrs[chckIndx(i_553656614, 0, (oldNode_721421327.attrs).length - 1)]; - __721421333 = oldNode_721421327.attrs[chckIndx(addInt(i_553656614, 1), 0, (oldNode_721421327.attrs).length - 1)]; + if (!(res_553654783 <= colontmp__553654782)) break Label4; + i_553654781 = res_553654783; + k_721421332 = oldNode_721421327.attrs[chckIndx(i_553654781, 0, (oldNode_721421327.attrs).length - 1)]; + __721421333 = oldNode_721421327.attrs[chckIndx(addInt(i_553654781, 1), 0, (oldNode_721421327.attrs).length - 1)]; oldNode_721421327.dom.removeAttribute(k_721421332); - res_553656616 = addInt(res_553656616, 2); + res_553654783 = addInt(res_553654783, 2); } }; }; @@ -9036,21 +9866,21 @@ function updateAttributes_721421325(newNode_721421326, oldNode_721421327) { var k_721421334 = null; var v_721421335 = null; Label6: { - var i_553656620 = 0; - var colontmp__553656621 = 0; - colontmp__553656621 = subInt((newNode_721421326.attrs).length, 2); - var res_553656622 = 0; + var i_553654787 = 0; + var colontmp__553654788 = 0; + colontmp__553654788 = subInt((newNode_721421326.attrs).length, 2); + var res_553654789 = 0; Label7: { Label8: while (true) { - if (!(res_553656622 <= colontmp__553656621)) break Label8; - i_553656620 = res_553656622; - k_721421334 = newNode_721421326.attrs[chckIndx(i_553656620, 0, (newNode_721421326.attrs).length - 1)]; - v_721421335 = newNode_721421326.attrs[chckIndx(addInt(i_553656620, 1), 0, (newNode_721421326.attrs).length - 1)]; + if (!(res_553654789 <= colontmp__553654788)) break Label8; + i_553654787 = res_553654789; + k_721421334 = newNode_721421326.attrs[chckIndx(i_553654787, 0, (newNode_721421326.attrs).length - 1)]; + v_721421335 = newNode_721421326.attrs[chckIndx(addInt(i_553654787, 1), 0, (newNode_721421326.attrs).length - 1)]; if (!((v_721421335 == null))) { oldNode_721421327.dom.setAttribute(k_721421334, v_721421335); } - res_553656622 = addInt(res_553656622, 2); + res_553654789 = addInt(res_553654789, 2); } }; }; @@ -9068,19 +9898,19 @@ function getAttr_754975516(n_754975517, key_754975518) { BeforeRet: { Label1: { var i_754975528 = 0; - var colontmp__553656625 = 0; - colontmp__553656625 = subInt((n_754975517.attrs).length, 2); - var res_553656626 = 0; + var colontmp__553654792 = 0; + colontmp__553654792 = subInt((n_754975517.attrs).length, 2); + var res_553654793 = 0; Label2: { Label3: while (true) { - if (!(res_553656626 <= colontmp__553656625)) break Label3; - i_754975528 = res_553656626; + if (!(res_553654793 <= colontmp__553654792)) break Label3; + i_754975528 = res_553654793; if ((n_754975517.attrs[chckIndx(i_754975528, 0, (n_754975517.attrs).length - 1)] == key_754975518)) { result_754975519 = n_754975517.attrs[chckIndx(addInt(i_754975528, 1), 0, (n_754975517.attrs).length - 1)]; break BeforeRet; } - res_553656626 = addInt(res_553656626, 2); + res_553654793 = addInt(res_553654793, 2); } }; }; @@ -9094,15 +9924,15 @@ function removeAllEventHandlers_721420412(d_721420413) { if (!((d_721420413.karaxEvents == null))) { Label1: { var i_721420429 = 0; - var colontmp__553656629 = 0; - colontmp__553656629 = d_721420413.karaxEvents.length; - var i_553656630 = 0; + var colontmp__553654796 = 0; + colontmp__553654796 = d_721420413.karaxEvents.length; + var i_553654797 = 0; Label2: { Label3: while (true) { - if (!(i_553656630 < colontmp__553656629)) break Label3; - i_721420429 = i_553656630; + if (!(i_553654797 < colontmp__553654796)) break Label3; + i_721420429 = i_553654797; d_721420413.removeEventListener(d_721420413.karaxEvents[i_721420429]["Field0"], d_721420413.karaxEvents[i_721420429]["Field1"]); - i_553656630 = addInt(i_553656630, 1); + i_553654797 = addInt(i_553654797, 1); } }; }; @@ -9225,28 +10055,28 @@ function diff_721421509(newNode_721421510, oldNode_721421511, parent_721421512, var pos_721421577 = addInt(nimMin(oldPos_721421561, newPos_721421562), 1); Label6: { var i_721421582 = 0; - var colontmp__553656584 = 0; - colontmp__553656584 = subInt(pos_721421577, 1); - var res_553656585 = commonPrefix_721421551; + var colontmp__553654751 = 0; + colontmp__553654751 = subInt(pos_721421577, 1); + var res_553654752 = commonPrefix_721421551; Label7: { Label8: while (true) { - if (!(res_553656585 <= colontmp__553656584)) break Label8; - i_721421582 = res_553656585; + if (!(res_553654752 <= colontmp__553654751)) break Label8; + i_721421582 = res_553654752; diff_721421509(HEX5BHEX5D_754975544(newNode_721421510, i_721421582), HEX5BHEX5D_754975544(oldNode_721421511, i_721421582), current_721421513, HEX5BHEX5D_754975544(oldNode_721421511, i_721421582).dom, kxi_721421514); - res_553656585 = addInt(res_553656585, 1); + res_553654752 = addInt(res_553654752, 1); } }; }; if ((addInt(oldPos_721421561, 1) == oldLength_721421540)) { Label9: { var i_721421587 = 0; - var res_553656588 = pos_721421577; + var res_553654755 = pos_721421577; Label10: { Label11: while (true) { - if (!(res_553656588 <= newPos_721421562)) break Label11; - i_721421587 = res_553656588; + if (!(res_553654755 <= newPos_721421562)) break Label11; + i_721421587 = res_553654755; addPatch_721421345(kxi_721421514, 2, current_721421513, null, HEX5BHEX5D_754975544(newNode_721421510, i_721421587), null); - res_553656588 = addInt(res_553656588, 1); + res_553654755 = addInt(res_553654755, 1); } }; }; @@ -9255,13 +10085,13 @@ function diff_721421509(newNode_721421510, oldNode_721421511, parent_721421512, var before_721421588 = current_721421513.childNodes[chckIndx(addInt(oldPos_721421561, 1), 0, (current_721421513.childNodes).length - 1)]; Label12: { var i_721421593 = 0; - var res_553656591 = pos_721421577; + var res_553654758 = pos_721421577; Label13: { Label14: while (true) { - if (!(res_553656591 <= newPos_721421562)) break Label14; - i_721421593 = res_553656591; + if (!(res_553654758 <= newPos_721421562)) break Label14; + i_721421593 = res_553654758; addPatch_721421345(kxi_721421514, 3, current_721421513, before_721421588, HEX5BHEX5D_754975544(newNode_721421510, i_721421593), null); - res_553656591 = addInt(res_553656591, 1); + res_553654758 = addInt(res_553654758, 1); } }; }; @@ -9269,14 +10099,14 @@ function diff_721421509(newNode_721421510, oldNode_721421511, parent_721421512, Label15: { var i_721421598 = 0; - var res_553656594 = pos_721421577; + var res_553654761 = pos_721421577; Label16: { Label17: while (true) { - if (!(res_553656594 <= oldPos_721421561)) break Label17; - i_721421598 = res_553656594; + if (!(res_553654761 <= oldPos_721421561)) break Label17; + i_721421598 = res_553654761; addPatch_721421345(kxi__, 4, null, null, null, HEX5BHEX5D_754975544(oldNode_721421511, i_721421598)); addPatch_721421345(kxi_721421514, 1, current_721421513, current_721421513.childNodes[chckIndx(i_721421598, 0, (current_721421513.childNodes).length - 1)], null, null); - res_553656594 = addInt(res_553656594, 1); + res_553654761 = addInt(res_553654761, 1); } }; }; @@ -9351,15 +10181,15 @@ function moveDom_721421439(dest_721421440, src_721421441) { Label1: { var i_721421457 = 0; - var colontmp__553656640 = 0; - colontmp__553656640 = len_754975537(dest_721421440); - var i_553656641 = 0; + var colontmp__553654807 = 0; + colontmp__553654807 = len_754975537(dest_721421440); + var i_553654808 = 0; Label2: { Label3: while (true) { - if (!(i_553656641 < colontmp__553656640)) break Label3; - i_721421457 = i_553656641; + if (!(i_553654808 < colontmp__553654807)) break Label3; + i_721421457 = i_553654808; moveDom_721421439(HEX5BHEX5D_754975544(dest_721421440, i_721421457), HEX5BHEX5D_754975544(src_721421441, i_721421457)); - i_553656641 = addInt(i_553656641, 1); + i_553654808 = addInt(i_553654808, 1); } }; }; @@ -9376,11 +10206,11 @@ function HEX5BHEX5DHEX3D_754975548(x_754975549, idx_754975550, y_754975551) { function applyPatch_721421458(kxi_721421459) { Label1: { var i_721421464 = 0; - var i_553656634 = 0; + var i_553654801 = 0; Label2: { Label3: while (true) { - if (!(i_553656634 < kxi_721421459.patchLen)) break Label3; - i_721421464 = i_553656634; + if (!(i_553654801 < kxi_721421459.patchLen)) break Label3; + i_721421464 = i_553654801; var p_721421465 = nimCopy(null, kxi_721421459.patches[chckIndx(i_721421464, 0, (kxi_721421459.patches).length - 1)], NTI721420296); switch (p_721421465.k) { case 0: @@ -9433,25 +10263,25 @@ function applyPatch_721421458(kxi_721421459) { break; } - i_553656634 = addInt(i_553656634, 1); + i_553654801 = addInt(i_553654801, 1); } }; }; kxi_721421459.patchLen = 0; Label4: { var i_721421496 = 0; - var i_553656637 = 0; + var i_553654804 = 0; Label5: { Label6: while (true) { - if (!(i_553656637 < kxi_721421459.patchLenV)) break Label6; - i_721421496 = i_553656637; + if (!(i_553654804 < kxi_721421459.patchLenV)) break Label6; + i_721421496 = i_553654804; var p_721421497 = nimCopy(null, kxi_721421459.patchesV[chckIndx(i_721421496, 0, (kxi_721421459.patchesV).length - 1)], NTI721420297); HEX5BHEX5DHEX3D_754975548(p_721421497.parent, p_721421497.pos, p_721421497.newChild); if (!(!((p_721421497.newChild.dom == null)))) { failedAssertImpl_268435541([107,97,114,97,120,46,110,105,109,40,52,53,56,44,32,53,41,32,96,112,46,110,101,119,67,104,105,108,100,46,100,111,109,32,33,61,32,110,105,108,96,32]); } - i_553656637 = addInt(i_553656637, 1); + i_553654804 = addInt(i_553654804, 1); } }; }; @@ -9544,322 +10374,152 @@ function resize_553648355() { } -function len_553648976(t_553648979) { - var result_553648980 = 0; +function len_553648975(t_553648978) { + var result_553648979 = 0; - result_553648980 = t_553648979.counter; + result_553648979 = t_553648978.counter; - return result_553648980; + return result_553648979; } -function addEscapedChar_33558024(s_33558025, s_33558025_Idx, c_33558026) { - switch (c_33558026) { - case 7: - s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,97]);; - break; - case 8: - s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,98]);; - break; - case 9: - s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,116]);; - break; - case 10: - s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,110]);; - break; - case 11: - s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,118]);; - break; - case 12: - s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,102]);; - break; - case 13: - s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,114]);; - break; - case 27: - s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,101]);; - break; - case 92: - s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,92]);; - break; - case 39: - s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,39]);; - break; - case 34: - s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,34]);; - break; - case 32: - case 33: - case 35: - case 36: - case 37: - case 38: - case 40: - case 41: - case 42: - case 43: - case 44: - case 45: - case 46: - case 47: - case 48: - case 49: - case 50: - case 51: - case 52: - case 53: - case 54: - case 55: - case 56: - case 57: - case 58: - case 59: - case 60: - case 61: - case 62: - case 63: - case 64: - case 65: - case 66: - case 67: - case 68: - case 69: - case 70: - case 71: - case 72: - case 73: - case 74: - case 75: - case 76: - case 77: - case 78: - case 79: - case 80: - case 81: - case 82: - case 83: - case 84: - case 85: - case 86: - case 87: - case 88: - case 89: - case 90: - case 91: - case 93: - case 94: - case 95: - case 96: - case 97: - case 98: - case 99: - case 100: - case 101: - case 102: - case 103: - case 104: - case 105: - case 106: - case 107: - case 108: - case 109: - case 110: - case 111: - case 112: - case 113: - case 114: - case 115: - case 116: - case 117: - case 118: - case 119: - case 120: - case 121: - case 122: - case 123: - case 124: - case 125: - case 126: - addChar(s_33558025[s_33558025_Idx], c_33558026);; - break; - default: - s_33558025[s_33558025_Idx].push.apply(s_33558025[s_33558025_Idx], [92,120]);; - var n_33558036 = c_33558026; - addChar(s_33558025[s_33558025_Idx], [48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70][chckIndx(((n_33558036 & 240) >> 4), 0, ([48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]).length - 1)]);; - addChar(s_33558025[s_33558025_Idx], [48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70][chckIndx((n_33558036 & 15), 0, ([48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70]).length - 1)]);; - break; - } - - -} - -function addQuoted_553649236(s_553649238, s_553649238_Idx, x_553649239) { - s_553649238[s_553649238_Idx].push.apply(s_553649238[s_553649238_Idx], [34]);; - Label1: { - var c_553649240 = 0; - var i_553656666 = 0; - var L_553656667 = (x_553649239).length; - Label2: { - Label3: while (true) { - if (!(i_553656666 < L_553656667)) break Label3; - c_553649240 = x_553649239[chckIndx(i_553656666, 0, (x_553649239).length - 1)]; - if ((c_553649240 <= 127)) { - addEscapedChar_33558024(s_553649238, s_553649238_Idx, c_553649240); - } - else { - addChar(s_553649238[s_553649238_Idx], c_553649240);; - } - - i_553656666 += 1; - if (!(((x_553649239).length == L_553656667))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(272, 11) `len(a) == L` the length of the string changed while iterating over it")); - } - - } - }; - }; - s_553649238[s_553649238_Idx].push.apply(s_553649238[s_553649238_Idx], [34]);; - - -} +function HEX24_553648930(t_553648933) { + var result_553648934 = [[]]; -function HEX24_553648931(t_553648934) { - var result_553648935 = [[]]; - - if ((len_553648976(t_553648934) == 0)) { - result_553648935[0] = nimCopy(null, [123,58,125], NTI33554449); + if ((len_553648975(t_553648933) == 0)) { + result_553648934[0] = nimCopy(null, [123,58,125], NTI33554449); } else { - result_553648935[0] = nimCopy(null, [123], NTI33554449); + result_553648934[0] = nimCopy(null, [123], NTI33554449); Label1: { - var key_553649234 = []; - var val_553649235 = 0; - var L_553656659 = len_553648976(t_553648934); + var key_553649233 = []; + var val_553649234 = 0; + var L_553654826 = len_553648975(t_553648933); Label2: { - var h_553656661 = 0; - var colontmp__553656662 = 0; - colontmp__553656662 = (t_553648934.data).length - 1; - var res_553656663 = 0; + var h_553654828 = 0; + var colontmp__553654829 = 0; + colontmp__553654829 = (t_553648933.data).length - 1; + var res_553654830 = 0; Label3: { Label4: while (true) { - if (!(res_553656663 <= colontmp__553656662)) break Label4; - h_553656661 = res_553656663; - if (isFilled_1291845663(t_553648934.data[chckIndx(h_553656661, 0, (t_553648934.data).length - 1)].Field0)) { - key_553649234 = t_553648934.data[chckIndx(h_553656661, 0, (t_553648934.data).length - 1)].Field1; - val_553649235 = t_553648934.data[chckIndx(h_553656661, 0, (t_553648934.data).length - 1)].Field2; - if ((1 < (result_553648935[0]).length)) { - result_553648935[0].push.apply(result_553648935[0], [44,32]);; + if (!(res_553654830 <= colontmp__553654829)) break Label4; + h_553654828 = res_553654830; + if (isFilled_1291845663(t_553648933.data[chckIndx(h_553654828, 0, (t_553648933.data).length - 1)].Field0)) { + key_553649233 = t_553648933.data[chckIndx(h_553654828, 0, (t_553648933.data).length - 1)].Field1; + val_553649234 = t_553648933.data[chckIndx(h_553654828, 0, (t_553648933.data).length - 1)].Field2; + if ((1 < (result_553648934[0]).length)) { + result_553648934[0].push.apply(result_553648934[0], [44,32]);; } - addQuoted_553649236(result_553648935, 0, key_553649234); - result_553648935[0].push.apply(result_553648935[0], [58,32]);; - addQuoted_889193861(result_553648935, 0, val_553649235); - if (!((len_553648976(t_553648934) == L_553656659))) { + addQuoted_1845498378(result_553648934, 0, key_553649233); + result_553648934[0].push.apply(result_553648934[0], [58,32]);; + addQuoted_889193861(result_553648934, 0, val_553649234); + if (!((len_553648975(t_553648933) == L_553654826))) { failedAssertImpl_268435541(makeNimstrLit("tables.nim(699, 13) `len(t) == L` the length of the table changed while iterating over it")); } } - res_553656663 = addInt(res_553656663, 1); + res_553654830 = addInt(res_553654830, 1); } }; }; }; - result_553648935[0].push.apply(result_553648935[0], [125]);; + result_553648934[0].push.apply(result_553648934[0], [125]);; } - return result_553648935[0]; + return result_553648934[0]; } -function len_553649289(t_553649292) { - var result_553649293 = 0; +function len_553649287(t_553649290) { + var result_553649291 = 0; - result_553649293 = t_553649292.counter; + result_553649291 = t_553649290.counter; - return result_553649293; + return result_553649291; } -function rawGet_553649544(t_553649547, key_553649548, hc_553649549, hc_553649549_Idx) { - var result_553649550 = 0; +function rawGet_553649542(t_553649545, key_553649546, hc_553649547, hc_553649547_Idx) { + var result_553649548 = 0; BeforeRet: { - hc_553649549[hc_553649549_Idx] = hash_1308623312(key_553649548); - if ((hc_553649549[hc_553649549_Idx] == 0)) { - hc_553649549[hc_553649549_Idx] = 314159265; + hc_553649547[hc_553649547_Idx] = hash_1308623312(key_553649546); + if ((hc_553649547[hc_553649547_Idx] == 0)) { + hc_553649547[hc_553649547_Idx] = 314159265; } - if (((t_553649547.data).length == 0)) { - result_553649550 = (-1); + if (((t_553649545.data).length == 0)) { + result_553649548 = (-1); break BeforeRet; } - var h_553649600 = (hc_553649549[hc_553649549_Idx] & (t_553649547.data).length - 1); + var h_553649598 = (hc_553649547[hc_553649547_Idx] & (t_553649545.data).length - 1); Label1: { Label2: while (true) { - if (!isFilled_1291845663(t_553649547.data[chckIndx(h_553649600, 0, (t_553649547.data).length - 1)].Field0)) break Label2; - if (((t_553649547.data[chckIndx(h_553649600, 0, (t_553649547.data).length - 1)].Field0 == hc_553649549[hc_553649549_Idx]) && eqStrings(t_553649547.data[chckIndx(h_553649600, 0, (t_553649547.data).length - 1)].Field1, key_553649548))) { - result_553649550 = h_553649600; + if (!isFilled_1291845663(t_553649545.data[chckIndx(h_553649598, 0, (t_553649545.data).length - 1)].Field0)) break Label2; + if (((t_553649545.data[chckIndx(h_553649598, 0, (t_553649545.data).length - 1)].Field0 == hc_553649547[hc_553649547_Idx]) && eqStrings(t_553649545.data[chckIndx(h_553649598, 0, (t_553649545.data).length - 1)].Field1, key_553649546))) { + result_553649548 = h_553649598; break BeforeRet; } - h_553649600 = nextTry_1291845666(h_553649600, (t_553649547.data).length - 1); + h_553649598 = nextTry_1291845666(h_553649598, (t_553649545.data).length - 1); } }; - result_553649550 = subInt((-1), h_553649600); + result_553649548 = subInt((-1), h_553649598); }; - return result_553649550; + return result_553649548; } -function mustRehash_553649850(t_553649852) { - var result_553649853 = false; +function mustRehash_553649848(t_553649850) { + var result_553649851 = false; - if (!((t_553649852.counter < (t_553649852.data).length))) { + if (!((t_553649850.counter < (t_553649850.data).length))) { failedAssertImpl_268435541([104,97,115,104,99,111,109,109,111,110,46,110,105,109,40,51,52,44,32,57,41,32,96,10,116,46,99,111,117,110,116,101,114,32,60,32,116,46,100,97,116,97,76,101,110,96,32]); } - result_553649853 = ((mulInt((t_553649852.data).length, 2) < mulInt(t_553649852.counter, 3)) || (subInt((t_553649852.data).length, t_553649852.counter) < 4)); + result_553649851 = ((mulInt((t_553649850.data).length, 2) < mulInt(t_553649850.counter, 3)) || (subInt((t_553649850.data).length, t_553649850.counter) < 4)); - return result_553649853; + return result_553649851; } -function rawInsert_553650267(t_553650271, data_553650272, data_553650272_Idx, key_553650273, val_553650274, hc_553650275, h_553650276) { - data_553650272[data_553650272_Idx][chckIndx(h_553650276, 0, (data_553650272[data_553650272_Idx]).length - 1)].Field1 = nimCopy(null, key_553650273, NTI33554449); - data_553650272[data_553650272_Idx][chckIndx(h_553650276, 0, (data_553650272[data_553650272_Idx]).length - 1)].Field2 = val_553650274; - data_553650272[data_553650272_Idx][chckIndx(h_553650276, 0, (data_553650272[data_553650272_Idx]).length - 1)].Field0 = hc_553650275; +function rawInsert_553650265(t_553650269, data_553650270, data_553650270_Idx, key_553650271, val_553650272, hc_553650273, h_553650274) { + data_553650270[data_553650270_Idx][chckIndx(h_553650274, 0, (data_553650270[data_553650270_Idx]).length - 1)].Field1 = nimCopy(null, key_553650271, NTI33554449); + data_553650270[data_553650270_Idx][chckIndx(h_553650274, 0, (data_553650270[data_553650270_Idx]).length - 1)].Field2 = val_553650272; + data_553650270[data_553650270_Idx][chckIndx(h_553650274, 0, (data_553650270[data_553650270_Idx]).length - 1)].Field0 = hc_553650273; } -function enlarge_553649993(t_553649996) { - var n_553649999 = []; - n_553649999 = new Array(chckRange(mulInt((t_553649996.data).length, 2), 0, 2147483647)); for (var i = 0 ; i < chckRange(mulInt((t_553649996.data).length, 2), 0, 2147483647) ; ++i) { n_553649999[i] = {Field0: 0, Field1: [], Field2: 0}; } var Temporary1 = t_553649996.data; t_553649996.data = n_553649999; n_553649999 = Temporary1; Label2: { - var i_553650059 = 0; - var colontmp__553656672 = 0; - colontmp__553656672 = (n_553649999).length - 1; - var res_553656673 = 0; +function enlarge_553649991(t_553649994) { + var n_553649997 = []; + n_553649997 = new Array(chckRange(mulInt((t_553649994.data).length, 2), 0, 2147483647)); for (var i = 0 ; i < chckRange(mulInt((t_553649994.data).length, 2), 0, 2147483647) ; ++i) { n_553649997[i] = {Field0: 0, Field1: [], Field2: 0}; } var Temporary1 = t_553649994.data; t_553649994.data = n_553649997; n_553649997 = Temporary1; Label2: { + var i_553650057 = 0; + var colontmp__553654835 = 0; + colontmp__553654835 = (n_553649997).length - 1; + var res_553654836 = 0; Label3: { Label4: while (true) { - if (!(res_553656673 <= colontmp__553656672)) break Label4; - i_553650059 = res_553656673; - var eh_553650109 = n_553649999[chckIndx(i_553650059, 0, (n_553649999).length - 1)].Field0; - if (isFilled_1291845663(eh_553650109)) { - var j_553650113 = (eh_553650109 & (t_553649996.data).length - 1); + if (!(res_553654836 <= colontmp__553654835)) break Label4; + i_553650057 = res_553654836; + var eh_553650107 = n_553649997[chckIndx(i_553650057, 0, (n_553649997).length - 1)].Field0; + if (isFilled_1291845663(eh_553650107)) { + var j_553650111 = (eh_553650107 & (t_553649994.data).length - 1); Label5: { Label6: while (true) { - if (!isFilled_1291845663(t_553649996.data[chckIndx(j_553650113, 0, (t_553649996.data).length - 1)].Field0)) break Label6; - j_553650113 = nextTry_1291845666(j_553650113, (t_553649996.data).length - 1); + if (!isFilled_1291845663(t_553649994.data[chckIndx(j_553650111, 0, (t_553649994.data).length - 1)].Field0)) break Label6; + j_553650111 = nextTry_1291845666(j_553650111, (t_553649994.data).length - 1); } }; - rawInsert_553650267(t_553649996, t_553649996, "data", n_553649999[chckIndx(i_553650059, 0, (n_553649999).length - 1)].Field1, n_553649999[chckIndx(i_553650059, 0, (n_553649999).length - 1)].Field2, eh_553650109, j_553650113); + rawInsert_553650265(t_553649994, t_553649994, "data", n_553649997[chckIndx(i_553650057, 0, (n_553649997).length - 1)].Field1, n_553649997[chckIndx(i_553650057, 0, (n_553649997).length - 1)].Field2, eh_553650107, j_553650111); } - res_553656673 = addInt(res_553656673, 1); + res_553654836 = addInt(res_553654836, 1); } }; }; @@ -9867,59 +10527,59 @@ function enlarge_553649993(t_553649996) { } -function rawGetKnownHC_553650424(t_553650427, key_553650428, hc_553650429) { - var result_553650430 = 0; +function rawGetKnownHC_553650422(t_553650425, key_553650426, hc_553650427) { + var result_553650428 = 0; BeforeRet: { - if (((t_553650427.data).length == 0)) { - result_553650430 = (-1); + if (((t_553650425.data).length == 0)) { + result_553650428 = (-1); break BeforeRet; } - var h_553650477 = (hc_553650429 & (t_553650427.data).length - 1); + var h_553650475 = (hc_553650427 & (t_553650425.data).length - 1); Label1: { Label2: while (true) { - if (!isFilled_1291845663(t_553650427.data[chckIndx(h_553650477, 0, (t_553650427.data).length - 1)].Field0)) break Label2; - if (((t_553650427.data[chckIndx(h_553650477, 0, (t_553650427.data).length - 1)].Field0 == hc_553650429) && eqStrings(t_553650427.data[chckIndx(h_553650477, 0, (t_553650427.data).length - 1)].Field1, key_553650428))) { - result_553650430 = h_553650477; + if (!isFilled_1291845663(t_553650425.data[chckIndx(h_553650475, 0, (t_553650425.data).length - 1)].Field0)) break Label2; + if (((t_553650425.data[chckIndx(h_553650475, 0, (t_553650425.data).length - 1)].Field0 == hc_553650427) && eqStrings(t_553650425.data[chckIndx(h_553650475, 0, (t_553650425.data).length - 1)].Field1, key_553650426))) { + result_553650428 = h_553650475; break BeforeRet; } - h_553650477 = nextTry_1291845666(h_553650477, (t_553650427.data).length - 1); + h_553650475 = nextTry_1291845666(h_553650475, (t_553650425.data).length - 1); } }; - result_553650430 = subInt((-1), h_553650477); + result_553650428 = subInt((-1), h_553650475); }; - return result_553650430; + return result_553650428; } -function HEX5BHEX5DHEX3D_553649487(t_553649490, key_553649491, val_553649492) { - if (((t_553649490.data).length == 0)) { - var correctSizeHEX60gensym9_553649538 = slotsNeeded_1291845674(32); - t_553649490.counter = 0; - t_553649490.data = new Array(chckRange(correctSizeHEX60gensym9_553649538, 0, 2147483647)); for (var i = 0 ; i < chckRange(correctSizeHEX60gensym9_553649538, 0, 2147483647) ; ++i) { t_553649490.data[i] = {Field0: 0, Field1: [], Field2: 0}; } } +function HEX5BHEX5DHEX3D_553649485(t_553649488, key_553649489, val_553649490) { + if (((t_553649488.data).length == 0)) { + var correctSizeHEX60gensym9_553649536 = slotsNeeded_1291845674(32); + t_553649488.counter = 0; + t_553649488.data = new Array(chckRange(correctSizeHEX60gensym9_553649536, 0, 2147483647)); for (var i = 0 ; i < chckRange(correctSizeHEX60gensym9_553649536, 0, 2147483647) ; ++i) { t_553649488.data[i] = {Field0: 0, Field1: [], Field2: 0}; } } - var hc_553649543 = [0]; - var index_553649751 = rawGet_553649544(t_553649490, key_553649491, hc_553649543, 0); - if ((0 <= index_553649751)) { - t_553649490.data[chckIndx(index_553649751, 0, (t_553649490.data).length - 1)].Field2 = val_553649492; + var hc_553649541 = [0]; + var index_553649749 = rawGet_553649542(t_553649488, key_553649489, hc_553649541, 0); + if ((0 <= index_553649749)) { + t_553649488.data[chckIndx(index_553649749, 0, (t_553649488.data).length - 1)].Field2 = val_553649490; } else { - if (((t_553649490.data).length == 0)) { - var correctSizeHEX60gensym14_553649845 = slotsNeeded_1291845674(32); - t_553649490.counter = 0; - t_553649490.data = new Array(chckRange(correctSizeHEX60gensym14_553649845, 0, 2147483647)); for (var i = 0 ; i < chckRange(correctSizeHEX60gensym14_553649845, 0, 2147483647) ; ++i) { t_553649490.data[i] = {Field0: 0, Field1: [], Field2: 0}; } } + if (((t_553649488.data).length == 0)) { + var correctSizeHEX60gensym14_553649843 = slotsNeeded_1291845674(32); + t_553649488.counter = 0; + t_553649488.data = new Array(chckRange(correctSizeHEX60gensym14_553649843, 0, 2147483647)); for (var i = 0 ; i < chckRange(correctSizeHEX60gensym14_553649843, 0, 2147483647) ; ++i) { t_553649488.data[i] = {Field0: 0, Field1: [], Field2: 0}; } } - if (mustRehash_553649850(t_553649490)) { - enlarge_553649993(t_553649490); - index_553649751 = rawGetKnownHC_553650424(t_553649490, key_553649491, hc_553649543[0]); + if (mustRehash_553649848(t_553649488)) { + enlarge_553649991(t_553649488); + index_553649749 = rawGetKnownHC_553650422(t_553649488, key_553649489, hc_553649541[0]); } - index_553649751 = subInt((-1), index_553649751); - rawInsert_553650267(t_553649490, t_553649490, "data", key_553649491, val_553649492, hc_553649543[0], index_553649751); - t_553649490.counter = addInt(t_553649490.counter, 1); + index_553649749 = subInt((-1), index_553649749); + rawInsert_553650265(t_553649488, t_553649488, "data", key_553649489, val_553649490, hc_553649541[0], index_553649749); + t_553649488.counter = addInt(t_553649488.counter, 1); } @@ -9927,29 +10587,29 @@ function HEX5BHEX5DHEX3D_553649487(t_553649490, key_553649491, val_553649492) { } function initSelectedSubPower_553648467() { - rawEcho(HEX24_553648931(selectedSubPower_553648348[0])); + rawEcho(HEX24_553648930(selectedSubPower_553648348[0])); Label1: { - var name_553649450 = []; - var L_553656648 = len_553649289(allPowers_553648349[0]); + var name_553649448 = []; + var L_553654815 = len_553649287(allPowers_553648349[0]); Label2: { - var h_553656650 = 0; - var colontmp__553656651 = 0; - colontmp__553656651 = (allPowers_553648349[0].data).length - 1; - var res_553656652 = 0; + var h_553654817 = 0; + var colontmp__553654818 = 0; + colontmp__553654818 = (allPowers_553648349[0].data).length - 1; + var res_553654819 = 0; Label3: { Label4: while (true) { - if (!(res_553656652 <= colontmp__553656651)) break Label4; - h_553656650 = res_553656652; - if (isFilled_1291845663(allPowers_553648349[0].data[chckIndx(h_553656650, 0, (allPowers_553648349[0].data).length - 1)].Field0)) { - name_553649450 = allPowers_553648349[0].data[chckIndx(h_553656650, 0, (allPowers_553648349[0].data).length - 1)]["Field1"]; - HEX5BHEX5DHEX3D_553649487(selectedSubPower_553648348[0], name_553649450, 0); - if (!((len_553649289(allPowers_553648349[0]) == L_553656648))) { + if (!(res_553654819 <= colontmp__553654818)) break Label4; + h_553654817 = res_553654819; + if (isFilled_1291845663(allPowers_553648349[0].data[chckIndx(h_553654817, 0, (allPowers_553648349[0].data).length - 1)].Field0)) { + name_553649448 = allPowers_553648349[0].data[chckIndx(h_553654817, 0, (allPowers_553648349[0].data).length - 1)]["Field1"]; + HEX5BHEX5DHEX3D_553649485(selectedSubPower_553648348[0], name_553649448, 0); + if (!((len_553649287(allPowers_553648349[0]) == L_553654815))) { failedAssertImpl_268435541(makeNimstrLit("tables.nim(742, 13) `len(t) == L` the length of the table changed while iterating over it")); } } - res_553656652 = addInt(res_553656652, 1); + res_553654819 = addInt(res_553654819, 1); } }; }; @@ -9958,28 +10618,28 @@ function initSelectedSubPower_553648467() { } -function HEX3Ddup_1476395340(src_1476395342) { - var result_1476395341 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); +function HEX3Ddup_1476395341(src_1476395343) { + var result_1476395342 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - result_1476395341.item = src_1476395342.item; - result_1476395341.color = src_1476395342.color; - result_1476395341.index = src_1476395342.index; - result_1476395341.timesMoved = src_1476395342.timesMoved; - result_1476395341.piecesTaken = src_1476395342.piecesTaken; - result_1476395341.tile["Field0"] = src_1476395342.tile["Field0"]; - result_1476395341.tile["Field1"] = src_1476395342.tile["Field1"]; - result_1476395341.moves = nimCopy(null, src_1476395342.moves, NTI1476395089); - result_1476395341.takes = nimCopy(null, src_1476395342.takes, NTI1476395090); - result_1476395341.onEndTurn = nimCopy(null, src_1476395342.onEndTurn, NTI1476395091); - result_1476395341.onPromote = nimCopy(null, src_1476395342.onPromote, NTI1476395092); - result_1476395341.promoted = src_1476395342.promoted; - result_1476395341.filePath = nimCopy(null, src_1476395342.filePath, NTI33554449); - result_1476395341.colorable = src_1476395342.colorable; - result_1476395341.rotate = src_1476395342.rotate; - result_1476395341.drunk = src_1476395342.drunk; - result_1476395341.casts = nimCopy(null, src_1476395342.casts, NTI1476395093); + result_1476395342.item = src_1476395343.item; + result_1476395342.color = src_1476395343.color; + result_1476395342.index = src_1476395343.index; + result_1476395342.timesMoved = src_1476395343.timesMoved; + result_1476395342.piecesTaken = src_1476395343.piecesTaken; + result_1476395342.tile["Field0"] = src_1476395343.tile["Field0"]; + result_1476395342.tile["Field1"] = src_1476395343.tile["Field1"]; + result_1476395342.moves = nimCopy(null, src_1476395343.moves, NTI1476395089); + result_1476395342.takes = nimCopy(null, src_1476395343.takes, NTI1476395090); + result_1476395342.onEndTurn = nimCopy(null, src_1476395343.onEndTurn, NTI1476395091); + result_1476395342.onPromote = nimCopy(null, src_1476395343.onPromote, NTI1476395092); + result_1476395342.promoted = src_1476395343.promoted; + result_1476395342.filePath = nimCopy(null, src_1476395343.filePath, NTI33554449); + result_1476395342.colorable = src_1476395343.colorable; + result_1476395342.rotate = src_1476395343.rotate; + result_1476395342.drunk = src_1476395343.drunk; + result_1476395342.casts = nimCopy(null, src_1476395343.casts, NTI1476395093); - return result_1476395341; + return result_1476395342; } @@ -9988,13 +10648,13 @@ function arrayWith_1526727017(y_1526727020) { Label1: { var i_1526727032 = 0; - var res_553656677 = 0; + var res_553654840 = 0; Label2: { Label3: while (true) { - if (!(res_553656677 <= 7)) break Label3; - i_1526727032 = res_553656677; - result_1526727027[chckIndx(i_1526727032, 0, (result_1526727027).length - 1)] = nimCopy(result_1526727027[chckIndx(i_1526727032, 0, (result_1526727027).length - 1)], HEX3Ddup_1476395340(y_1526727020), NTI1476395034); - res_553656677 = addInt(res_553656677, 1); + if (!(res_553654840 <= 7)) break Label3; + i_1526727032 = res_553654840; + result_1526727027[chckIndx(i_1526727032, 0, (result_1526727027).length - 1)] = nimCopy(result_1526727027[chckIndx(i_1526727032, 0, (result_1526727027).length - 1)], HEX3Ddup_1476395341(y_1526727020), NTI1476395034); + res_553654840 = addInt(res_553654840, 1); } }; }; @@ -10009,35 +10669,35 @@ function inCheck_1543503877(p_1543503878, b_1543503879) { BeforeRet: { Label1: { var i_1543504176 = 0; - var res_553656687 = 0; + var res_553654850 = 0; Label2: { Label3: while (true) { - if (!(res_553656687 <= 7)) break Label3; - i_1543504176 = res_553656687; + if (!(res_553654850 <= 7)) break Label3; + i_1543504176 = res_553654850; Label4: { var j_1543504181 = 0; - var res_553656685 = 0; + var res_553654848 = 0; Label5: { Label6: while (true) { - if (!(res_553656685 <= 7)) break Label6; - j_1543504181 = res_553656685; + if (!(res_553654848 <= 7)) break Label6; + j_1543504181 = res_553654848; var piece_1543504182 = nimCopy(null, b_1543503879[chckIndx(i_1543504176, 0, (b_1543503879).length - 1)][chckIndx(j_1543504181, 0, (b_1543503879[chckIndx(i_1543504176, 0, (b_1543503879).length - 1)]).length - 1)], NTI1476395034); if ((piece_1543504182.item == 0)) { var resultHEX60gensym3_1543504211 = newSeq_1543504188(0); Label7: { var it_1543504215 = null; - var i_553656682 = 0; - var L_553656683 = (piece_1543504182.takes).length; + var i_553654845 = 0; + var L_553654846 = (piece_1543504182.takes).length; Label8: { Label9: while (true) { - if (!(i_553656682 < L_553656683)) break Label9; - it_1543504215 = piece_1543504182.takes[chckIndx(i_553656682, 0, (piece_1543504182.takes).length - 1)]; + if (!(i_553654845 < L_553654846)) break Label9; + it_1543504215 = piece_1543504182.takes[chckIndx(i_553654845, 0, (piece_1543504182.takes).length - 1)]; if (!((it_1543504215 == HEX3Aanonymous_1543504135))) { resultHEX60gensym3_1543504211.push(it_1543504215);; } - i_553656682 += 1; - if (!(((piece_1543504182.takes).length == L_553656683))) { + i_553654845 += 1; + if (!(((piece_1543504182.takes).length == L_553654846))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -10047,16 +10707,16 @@ function inCheck_1543503877(p_1543503878, b_1543503879) { piece_1543504182.takes = nimCopy(null, resultHEX60gensym3_1543504211, NTI1543504114); } - if (((!(isAir_1476396035(piece_1543504182)) && !(sameColor_1476396043(p_1543503878, piece_1543504182))) && contains_1476395660(getTakesOn_1476395510(piece_1543504182, b_1543503879), p_1543503878.tile))) { + if (((!(isAir_1476396036(piece_1543504182)) && !(sameColor_1476396044(p_1543503878, piece_1543504182))) && contains_1476395661(getTakesOn_1476395511(piece_1543504182, b_1543503879), p_1543503878.tile))) { result_1543504171 = true; break BeforeRet; } - res_553656685 = addInt(res_553656685, 1); + res_553654848 = addInt(res_553654848, 1); } }; }; - res_553656687 = addInt(res_553656687, 1); + res_553654850 = addInt(res_553654850, 1); } }; }; @@ -10077,11 +10737,11 @@ function HEX3Aanonymous_1543504135(board_1543504136, p_1543504137) { break BeforeRet; } - if ((((((isAir_1476396035(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 1), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)]) && isAir_1476396035(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 2), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)])) && (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)].item == 4)) && sameColor_1476396043(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)], p_1543504137)) && (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)].timesMoved == 0)) && !(inCheck_1543503877(p_1543504137, board_1543504136)))) { + if ((((((isAir_1476396036(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 1), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)]) && isAir_1476396036(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 2), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)])) && (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)].item == 4)) && sameColor_1476396044(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)], p_1543504137)) && (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)].timesMoved == 0)) && !(inCheck_1543503877(p_1543504137, board_1543504136)))) { var _ = addIfTake_1543503979(result_1543504138, 0, board_1543504136, p_1543504137, p_1543504137.tile, shooterFactory_1560281208(3, 0), false, true); } - if (((((((isAir_1476396035(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 1), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)]) && isAir_1476396035(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 2), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)])) && isAir_1476396035(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)])) && (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 4), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)].item == 4)) && sameColor_1476396043(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)], p_1543504137)) && (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 4), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)].timesMoved == 0)) && !(inCheck_1543503877(p_1543504137, board_1543504136)))) { + if (((((((isAir_1476396036(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 1), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)]) && isAir_1476396036(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 2), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)])) && isAir_1476396036(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)])) && (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 4), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)].item == 4)) && sameColor_1476396044(board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(addInt(p_1543504137.tile.Field0, 3), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)], p_1543504137)) && (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)][chckIndx(subInt(p_1543504137.tile.Field0, 4), 0, (board_1543504136[chckIndx(p_1543504137.tile.Field1, 0, (board_1543504136).length - 1)]).length - 1)].timesMoved == 0)) && !(inCheck_1543503877(p_1543504137, board_1543504136)))) { var _ = addIfTake_1543503979(result_1543504138, 0, board_1543504136, p_1543504137, p_1543504137.tile, shooterFactory_1560281208((-4), 0), false, true); } @@ -10121,22 +10781,22 @@ function HEX3Aanonymous_1543504089(board_1543504090, p_1543504091) { } function HEX3Aanonymous_1526726838(piece_1526726839, board_1526726840, state_1526726841) { - if ((isAtEnd_1476396237(piece_1526726839) && !(piece_1526726839.promoted))) { + if ((isAtEnd_1476396238(piece_1526726839) && !(piece_1526726839.promoted))) { Label1: { var xHEX60gensym0_1526726846 = null; - var i_553656690 = 0; - var L_553656691 = (piece_1526726839.onPromote).length; + var i_553654853 = 0; + var L_553654854 = (piece_1526726839.onPromote).length; Label2: { Label3: while (true) { - if (!(i_553656690 < L_553656691)) break Label3; - xHEX60gensym0_1526726846 = piece_1526726839.onPromote[chckIndx(i_553656690, 0, (piece_1526726839.onPromote).length - 1)]; + if (!(i_553654853 < L_553654854)) break Label3; + xHEX60gensym0_1526726846 = piece_1526726839.onPromote[chckIndx(i_553654853, 0, (piece_1526726839.onPromote).length - 1)]; xHEX60gensym0_1526726846(piece_1526726839, board_1526726840, state_1526726841); if (piece_1526726839.promoted) { break Label1; } - i_553656690 += 1; - if (!(((piece_1526726839.onPromote).length == L_553656691))) { + i_553654853 += 1; + if (!(((piece_1526726839.onPromote).length == L_553654854))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -10153,29 +10813,29 @@ function HEX3Aanonymous_1526726659(taken_1526726660, taker_1526726661, board_152 var result_1526726666 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; BeforeRet: { - if ((((((taker_1526726661.item == 0) && (taken_1526726660.item == 4)) && sameColor_1476396043(taken_1526726660, taker_1526726661)) && (taker_1526726661.timesMoved == 1)) && (taken_1526726660.timesMoved == 0))) { + if ((((((taker_1526726661.item == 0) && (taken_1526726660.item == 4)) && sameColor_1476396044(taken_1526726660, taker_1526726661)) && (taker_1526726661.timesMoved == 1)) && (taken_1526726660.timesMoved == 0))) { state_1526726663.Field1[chckIndx(taken_1526726660.color, 0, (state_1526726663.Field1).length - 1)].hasCastled = true; var kingTile_1526726675 = nimCopy(null, taker_1526726661.tile, NTI1476395011); if ((taken_1526726660.tile.Field0 == 0)) { - pieceMove_1476395795(taker_1526726661, kingTile_1526726675.Field1, subInt(kingTile_1526726675.Field0, 2), board_1526726662, state_1526726663); - pieceMove_1476395795(taken_1526726660, kingTile_1526726675.Field1, subInt(kingTile_1526726675.Field0, 1), board_1526726662, state_1526726663); - var colontmp__553656693 = {Field0: subInt(kingTile_1526726675.Field0, 1), Field1: kingTile_1526726675.Field1}; - var colontmp__553656694 = false; - result_1526726666 = nimCopy(result_1526726666, {Field0: nimCopy(null, colontmp__553656693, NTI1476395011), Field1: colontmp__553656694}, NTI1526726664); + pieceMove_1476395796(taker_1526726661, kingTile_1526726675.Field1, subInt(kingTile_1526726675.Field0, 2), board_1526726662, state_1526726663); + pieceMove_1476395796(taken_1526726660, kingTile_1526726675.Field1, subInt(kingTile_1526726675.Field0, 1), board_1526726662, state_1526726663); + var colontmp__553654856 = {Field0: subInt(kingTile_1526726675.Field0, 1), Field1: kingTile_1526726675.Field1}; + var colontmp__553654857 = false; + result_1526726666 = nimCopy(result_1526726666, {Field0: nimCopy(null, colontmp__553654856, NTI1476395011), Field1: colontmp__553654857}, NTI1526726664); break BeforeRet; } else { - pieceMove_1476395795(taker_1526726661, kingTile_1526726675.Field1, addInt(kingTile_1526726675.Field0, 2), board_1526726662, state_1526726663); - pieceMove_1476395795(taken_1526726660, kingTile_1526726675.Field1, addInt(kingTile_1526726675.Field0, 1), board_1526726662, state_1526726663); - var colontmp__553656695 = {Field0: addInt(kingTile_1526726675.Field0, 1), Field1: kingTile_1526726675.Field1}; - var colontmp__553656696 = false; - result_1526726666 = nimCopy(result_1526726666, {Field0: nimCopy(null, colontmp__553656695, NTI1476395011), Field1: colontmp__553656696}, NTI1526726664); + pieceMove_1476395796(taker_1526726661, kingTile_1526726675.Field1, addInt(kingTile_1526726675.Field0, 2), board_1526726662, state_1526726663); + pieceMove_1476395796(taken_1526726660, kingTile_1526726675.Field1, addInt(kingTile_1526726675.Field0, 1), board_1526726662, state_1526726663); + var colontmp__553654858 = {Field0: addInt(kingTile_1526726675.Field0, 1), Field1: kingTile_1526726675.Field1}; + var colontmp__553654859 = false; + result_1526726666 = nimCopy(result_1526726666, {Field0: nimCopy(null, colontmp__553654858, NTI1476395011), Field1: colontmp__553654859}, NTI1526726664); break BeforeRet; } } else { - result_1526726666 = nimCopy(result_1526726666, HEX3Aanonymous_1476395843(taken_1526726660, taker_1526726661, board_1526726662, state_1526726663), NTI1526726664); + result_1526726666 = nimCopy(result_1526726666, HEX3Aanonymous_1476395844(taken_1526726660, taker_1526726661, board_1526726662, state_1526726663), NTI1526726664); break BeforeRet; } @@ -10215,12 +10875,12 @@ function HEX3Aanonymous_1543504100(board_1543504101, p_1543504102) { } function startingState_1526727015() { - var result_1526727016 = {Field0: ({nextIndex: 0, nextGroup: 0, randSeed: 0, turnNumber: 0}), Field1: [({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]}), ({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]})]}; + var result_1526727016 = {Field0: ({nextIndex: 0, nextGroup: 0, randSeed: 0, turnNumber: 0}), Field1: [({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]}), ({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]})]}; result_1526727016.Field0 = nimCopy(result_1526727016.Field0, {nextIndex: 1, nextGroup: 1, randSeed: 0, turnNumber: 0}, NTI1476395036); - result_1526727016.Field1 = nimCopy(result_1526727016.Field1, [{abilityTakes: 0, hasCastled: false, dna: arrayWith_1526727017({timesMoved: 0, piecesTaken: 0, tile: nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011), promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, item: 0, color: 0, index: 0, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], casts: []}), wallet: {val: 0, has: false}, buys: [], piecesSold: 0, glass: [{val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}], transforms: [[], [], [], [], [], [], [], []]}, {abilityTakes: 0, hasCastled: false, dna: arrayWith_1526727017({timesMoved: 0, piecesTaken: 0, tile: nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011), promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, item: 0, color: 0, index: 0, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], casts: []}), wallet: {val: 0, has: false}, buys: [], piecesSold: 0, glass: [{val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}], transforms: [[], [], [], [], [], [], [], []]}], NTI1476395095); - result_1526727016.Field1[chckIndx(1, 0, (result_1526727016.Field1).length - 1)].dna = nimCopy(result_1526727016.Field1[chckIndx(1, 0, (result_1526727016.Field1).length - 1)].dna, [{item: 0, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504120, HEX3Aanonymous_1543504135], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], NTI1476395097); - result_1526727016.Field1[chckIndx(0, 0, (result_1526727016.Field1).length - 1)].dna = nimCopy(result_1526727016.Field1[chckIndx(0, 0, (result_1526727016.Field1).length - 1)].dna, [{item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504120, HEX3Aanonymous_1543504135], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], NTI1476395097); + result_1526727016.Field1 = nimCopy(result_1526727016.Field1, [{abilityTakes: 0, hasCastled: false, dna: arrayWith_1526727017({timesMoved: 0, piecesTaken: 0, tile: nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011), promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, item: 0, color: 0, index: 0, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], casts: []}), wallet: {val: 0, has: false}, buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [{val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}], transforms: [[], [], [], [], [], [], [], []]}, {abilityTakes: 0, hasCastled: false, dna: arrayWith_1526727017({timesMoved: 0, piecesTaken: 0, tile: nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011), promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, item: 0, color: 0, index: 0, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], casts: []}), wallet: {val: 0, has: false}, buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [{val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}, {val: {Field0: 0, Field1: {Field0: null, Field1: null}, Field2: {Field0: null, Field1: null}}, has: false}], transforms: [[], [], [], [], [], [], [], []]}], NTI1476395095); + result_1526727016.Field1[chckIndx(1, 0, (result_1526727016.Field1).length - 1)].dna = nimCopy(result_1526727016.Field1[chckIndx(1, 0, (result_1526727016.Field1).length - 1)].dna, [{item: 0, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504120, HEX3Aanonymous_1543504135], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], NTI1476395097); + result_1526727016.Field1[chckIndx(0, 0, (result_1526727016.Field1).length - 1)].dna = nimCopy(result_1526727016.Field1[chckIndx(0, 0, (result_1526727016.Field1).length - 1)].dna, [{item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504120, HEX3Aanonymous_1543504135], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], NTI1476395097); return result_1526727016; @@ -10229,39 +10889,39 @@ function startingState_1526727015() { function startingBoard_1526726884(state_1526726885) { var result_1526726886 = [[({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]]; - result_1526726886 = nimCopy(result_1526726886, [[{item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504322], takes: [HEX3Aanonymous_1543504327], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504120, HEX3Aanonymous_1543504135], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504322], takes: [HEX3Aanonymous_1543504327], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504322], takes: [HEX3Aanonymous_1543504327], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 0, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504120, HEX3Aanonymous_1543504135], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504322], takes: [HEX3Aanonymous_1543504327], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1476395843, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395449], onPromote: [HEX3Aanonymous_1476395449], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}]], NTI1476395013); + result_1526726886 = nimCopy(result_1526726886, [[{item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504322], takes: [HEX3Aanonymous_1543504327], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504120, HEX3Aanonymous_1543504135], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504322], takes: [HEX3Aanonymous_1543504327], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504094], takes: [HEX3Aanonymous_1543504100], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}, {item: 6, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [], takes: [], onMove: {Field0: null, Field1: null}, onTake: {Field0: null, Field1: null}, whenTaken: {Field0: null, Field1: null}, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 3, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504067], takes: [HEX3Aanonymous_1543504089], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1526726838], onPromote: [HEX3Aanonymous_1526726832], promoted: false, filePath: [112,97,119,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}], [{item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504322], takes: [HEX3Aanonymous_1543504327], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 1, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270, HEX3Aanonymous_1543504228, HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504291, HEX3Aanonymous_1543504249, HEX3Aanonymous_1543504120], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [113,117,101,101,110,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 0, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504105], takes: [HEX3Aanonymous_1543504120, HEX3Aanonymous_1543504135], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,105,110,103,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 2, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504270], takes: [HEX3Aanonymous_1543504291], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [98,105,115,104,111,112,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 5, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504322], takes: [HEX3Aanonymous_1543504327], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1476395844, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [107,110,105,103,104,116,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}, {item: 4, color: 1, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: (-1), Field1: (-1)}, moves: [HEX3Aanonymous_1543504228], takes: [HEX3Aanonymous_1543504249], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1526726659, onEndTurn: [HEX3Aanonymous_1476395450], onPromote: [HEX3Aanonymous_1476395450], promoted: false, filePath: [114,111,111,107,46,115,118,103], colorable: true, rotate: false, drunk: false, casts: []}]], NTI1476395013); Label1: { var i_1526726893 = 0; var r_1526726894 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - var i_553656703 = 0; + var i_553654866 = 0; Label2: { Label3: while (true) { if (!true) break Label3; - i_1526726893 = i_553656703; - r_1526726894 = nimCopy(r_1526726894, result_1526726886[chckIndx(i_553656703, 0, (result_1526726886).length - 1)], NTI1476395012); + i_1526726893 = i_553654866; + r_1526726894 = nimCopy(r_1526726894, result_1526726886[chckIndx(i_553654866, 0, (result_1526726886).length - 1)], NTI1476395012); Label4: { var j_1526726901 = 0; var x_1526726902 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - var i_553656700 = 0; + var i_553654863 = 0; Label5: { Label6: while (true) { if (!true) break Label6; - j_1526726901 = i_553656700; - x_1526726902 = nimCopy(x_1526726902, r_1526726894[chckIndx(i_553656700, 0, (r_1526726894).length - 1)], NTI1476395034); - result_1526726886[chckIndx(i_1526726893, 0, (result_1526726886).length - 1)][chckIndx(j_1526726901, 0, (result_1526726886[chckIndx(i_1526726893, 0, (result_1526726886).length - 1)]).length - 1)] = nimCopy(result_1526726886[chckIndx(i_1526726893, 0, (result_1526726886).length - 1)][chckIndx(j_1526726901, 0, (result_1526726886[chckIndx(i_1526726893, 0, (result_1526726886).length - 1)]).length - 1)], pieceCopy_1476395899(x_1526726902, newIndex_1476395494(state_1526726885), x_1526726902.item, x_1526726902.color, x_1526726902.timesMoved, x_1526726902.piecesTaken, {Field0: nimCopy(null, j_1526726901, NTI1476395038), Field1: nimCopy(null, i_1526726893, NTI1476395044)}, x_1526726902.moves, x_1526726902.takes, x_1526726902.onMove, x_1526726902.onTake, x_1526726902.whenTaken, x_1526726902.onEndTurn, x_1526726902.onPromote, x_1526726902.promoted, x_1526726902.filePath, x_1526726902.colorable, x_1526726902.rotate, x_1526726902.drunk), NTI1476395034); - if ((7 <= i_553656700)) { + j_1526726901 = i_553654863; + x_1526726902 = nimCopy(x_1526726902, r_1526726894[chckIndx(i_553654863, 0, (r_1526726894).length - 1)], NTI1476395034); + result_1526726886[chckIndx(i_1526726893, 0, (result_1526726886).length - 1)][chckIndx(j_1526726901, 0, (result_1526726886[chckIndx(i_1526726893, 0, (result_1526726886).length - 1)]).length - 1)] = nimCopy(result_1526726886[chckIndx(i_1526726893, 0, (result_1526726886).length - 1)][chckIndx(j_1526726901, 0, (result_1526726886[chckIndx(i_1526726893, 0, (result_1526726886).length - 1)]).length - 1)], pieceCopy_1476395900(x_1526726902, newIndex_1476395495(state_1526726885), x_1526726902.item, x_1526726902.color, x_1526726902.timesMoved, x_1526726902.piecesTaken, {Field0: nimCopy(null, j_1526726901, NTI1476395038), Field1: nimCopy(null, i_1526726893, NTI1476395044)}, x_1526726902.moves, x_1526726902.takes, x_1526726902.onMove, x_1526726902.onTake, x_1526726902.whenTaken, x_1526726902.onEndTurn, x_1526726902.onPromote, x_1526726902.promoted, x_1526726902.filePath, x_1526726902.colorable, x_1526726902.rotate, x_1526726902.drunk), NTI1476395034); + if ((7 <= i_553654863)) { break Label5; } - i_553656700 += 1; + i_553654863 += 1; } }; }; - if ((7 <= i_553656703)) { + if ((7 <= i_553654866)) { break Label2; } - i_553656703 += 1; + i_553654866 += 1; } }; }; @@ -10388,15 +11048,15 @@ function sorted_1728053786(a_1728053788, cmp_1728053791, order_1728053792) { result_1728053793 = nimCopy(null, newSeq_1728053798(chckRange((a_1728053788).length, 0, 2147483647)), NTI1728053670); Label1: { var i_1728053813 = 0; - var colontmp__553656729 = 0; - colontmp__553656729 = (a_1728053788).length - 1; - var res_553656730 = 0; + var colontmp__553654892 = 0; + colontmp__553654892 = (a_1728053788).length - 1; + var res_553654893 = 0; Label2: { Label3: while (true) { - if (!(res_553656730 <= colontmp__553656729)) break Label3; - i_1728053813 = res_553656730; + if (!(res_553654893 <= colontmp__553654892)) break Label3; + i_1728053813 = res_553654893; result_1728053793[chckIndx(i_1728053813, 0, (result_1728053793).length - 1)] = nimCopy(result_1728053793[chckIndx(i_1728053813, 0, (result_1728053793).length - 1)], a_1728053788[chckIndx(i_1728053813, 0, (a_1728053788).length - 1)], NTI1728053254); - res_553656730 = addInt(res_553656730, 1); + res_553654893 = addInt(res_553654893, 1); } }; }; @@ -10435,17 +11095,17 @@ function find_1090519095(a_1090519098, item_1090519099) { result_1090519100 = 0; Label1: { var i_1090519104 = []; - var i_553652550 = 0; + var i_553651987 = 0; Label2: { Label3: while (true) { - if (!(i_553652550 < (a_1090519098).length)) break Label3; - i_1090519104 = a_1090519098[chckIndx(i_553652550, 0, (a_1090519098).length - 1)]; + if (!(i_553651987 < (a_1090519098).length)) break Label3; + i_1090519104 = a_1090519098[chckIndx(i_553651987, 0, (a_1090519098).length - 1)]; if (eqStrings(i_1090519104, item_1090519099)) { break BeforeRet; } result_1090519100 = addInt(result_1090519100, 1); - i_553652550 += 1; + i_553651987 += 1; } }; }; @@ -10473,15 +11133,15 @@ function HEX26_1728053688(x_1728053690, y_1728053691) { result_1728053692 = new Array(chckRange(addInt((x_1728053690).length, 1), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1728053690).length, 1), 0, 2147483647) ; ++i) { result_1728053692[i] = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); } Label1: { var i_1728053707 = 0; - var colontmp__553656738 = 0; - colontmp__553656738 = subInt((x_1728053690).length, 1); - var res_553656739 = 0; + var colontmp__553654901 = 0; + colontmp__553654901 = subInt((x_1728053690).length, 1); + var res_553654902 = 0; Label2: { Label3: while (true) { - if (!(res_553656739 <= colontmp__553656738)) break Label3; - i_1728053707 = res_553656739; + if (!(res_553654902 <= colontmp__553654901)) break Label3; + i_1728053707 = res_553654902; result_1728053692[chckIndx(i_1728053707, 0, (result_1728053692).length - 1)] = nimCopy(result_1728053692[chckIndx(i_1728053707, 0, (result_1728053692).length - 1)], x_1728053690[chckIndx(i_1728053707, 0, (x_1728053690).length - 1)], NTI1728053253); - res_553656739 = addInt(res_553656739, 1); + res_553654902 = addInt(res_553654902, 1); } }; }; @@ -10511,15 +11171,15 @@ function HEX3Aanonymous_1728053768(xHEX60gensym23_1728053772, yHEX60gensym23_172 result_1728053762 = nimCopy(null, currentPowers_1728053760, NTI1728053648); Label1: { var s_1728053910 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; - var colontmp__553656724 = []; + var colontmp__553654887 = []; var resultHEX60gensym23_1728053906 = sorted_1728053786(synergies_1728053761, HEX3Aanonymous_1728053768, 1); - colontmp__553656724 = resultHEX60gensym23_1728053906; - var i_553656725 = 0; - var L_553656726 = (colontmp__553656724).length; + colontmp__553654887 = resultHEX60gensym23_1728053906; + var i_553654888 = 0; + var L_553654889 = (colontmp__553654887).length; Label2: { Label3: while (true) { - if (!(i_553656725 < L_553656726)) break Label3; - s_1728053910 = colontmp__553656724[chckIndx(i_553656725, 0, (colontmp__553656724).length - 1)]; + if (!(i_553654888 < L_553654889)) break Label3; + s_1728053910 = colontmp__553654887[chckIndx(i_553654888, 0, (colontmp__553654887).length - 1)]; Label4: { if (contains_1728053911(currentPowers_1728053760, s_1728053910.Field0)) { break Label4; @@ -10528,19 +11188,19 @@ function HEX3Aanonymous_1728053768(xHEX60gensym23_1728053772, yHEX60gensym23_172 var resultHEX60gensym27_1728053964 = newSeq_1728053603(0); Label5: { var it_1728053968 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656717 = 0; - var L_553656718 = (result_1728053762).length; + var i_553654880 = 0; + var L_553654881 = (result_1728053762).length; Label6: { Label7: while (true) { - if (!(i_553656717 < L_553656718)) break Label7; - it_1728053968 = result_1728053762[chckIndx(i_553656717, 0, (result_1728053762).length - 1)]; + if (!(i_553654880 < L_553654881)) break Label7; + it_1728053968 = result_1728053762[chckIndx(i_553654880, 0, (result_1728053762).length - 1)]; if (contains_1090519090(s_1728053910.Field2, it_1728053968.name)) { var Temporary8 = nimCopy(null, it_1728053968, NTI1728053253); resultHEX60gensym27_1728053964.push(Temporary8);; } - i_553656717 += 1; - if (!(((result_1728053762).length == L_553656718))) { + i_553654880 += 1; + if (!(((result_1728053762).length == L_553654881))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -10556,19 +11216,19 @@ function HEX3Aanonymous_1728053768(xHEX60gensym23_1728053772, yHEX60gensym23_172 var resultHEX60gensym30_1728053994 = newSeq_1728053603(0); Label10: { var it_1728053998 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656721 = 0; - var L_553656722 = (result_1728053762).length; + var i_553654884 = 0; + var L_553654885 = (result_1728053762).length; Label11: { Label12: while (true) { - if (!(i_553656721 < L_553656722)) break Label12; - it_1728053998 = result_1728053762[chckIndx(i_553656721, 0, (result_1728053762).length - 1)]; + if (!(i_553654884 < L_553654885)) break Label12; + it_1728053998 = result_1728053762[chckIndx(i_553654884, 0, (result_1728053762).length - 1)]; if (!(contains_1090519090(s_1728053910.Field3, it_1728053998.name))) { var Temporary13 = nimCopy(null, it_1728053998, NTI1728053253); resultHEX60gensym30_1728053994.push(Temporary13);; } - i_553656721 += 1; - if (!(((result_1728053762).length == L_553656722))) { + i_553654884 += 1; + if (!(((result_1728053762).length == L_553654885))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -10581,8 +11241,8 @@ function HEX3Aanonymous_1728053768(xHEX60gensym23_1728053772, yHEX60gensym23_172 } }; - i_553656725 += 1; - if (!(((colontmp__553656724).length == L_553656726))) { + i_553654888 += 1; + if (!(((colontmp__553654887).length == L_553654889))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -10599,29 +11259,29 @@ function HEX26_1728054386(x_1728054388, y_1728054389) { result_1728054390 = new Array(chckRange(addInt((x_1728054388).length, (y_1728054389).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1728054388).length, (y_1728054389).length), 0, 2147483647) ; ++i) { result_1728054390[i] = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; } Label1: { var i_1728054408 = 0; - var colontmp__553656742 = 0; - colontmp__553656742 = subInt((x_1728054388).length, 1); - var res_553656743 = 0; + var colontmp__553654905 = 0; + colontmp__553654905 = subInt((x_1728054388).length, 1); + var res_553654906 = 0; Label2: { Label3: while (true) { - if (!(res_553656743 <= colontmp__553656742)) break Label3; - i_1728054408 = res_553656743; + if (!(res_553654906 <= colontmp__553654905)) break Label3; + i_1728054408 = res_553654906; result_1728054390[chckIndx(i_1728054408, 0, (result_1728054390).length - 1)] = nimCopy(result_1728054390[chckIndx(i_1728054408, 0, (result_1728054390).length - 1)], x_1728054388[chckIndx(i_1728054408, 0, (x_1728054388).length - 1)], NTI1728053254); - res_553656743 = addInt(res_553656743, 1); + res_553654906 = addInt(res_553654906, 1); } }; }; Label4: { var i_1728054416 = 0; - var colontmp__553656746 = 0; - colontmp__553656746 = subInt((y_1728054389).length, 1); - var res_553656747 = 0; + var colontmp__553654909 = 0; + colontmp__553654909 = subInt((y_1728054389).length, 1); + var res_553654910 = 0; Label5: { Label6: while (true) { - if (!(res_553656747 <= colontmp__553656746)) break Label6; - i_1728054416 = res_553656747; + if (!(res_553654910 <= colontmp__553654909)) break Label6; + i_1728054416 = res_553654910; result_1728054390[chckIndx(addInt(i_1728054416, (x_1728054388).length), 0, (result_1728054390).length - 1)] = nimCopy(result_1728054390[chckIndx(addInt(i_1728054416, (x_1728054388).length), 0, (result_1728054390).length - 1)], y_1728054389[chckIndx(i_1728054416, 0, (y_1728054389).length - 1)], NTI1728053254); - res_553656747 = addInt(res_553656747, 1); + res_553654910 = addInt(res_553654910, 1); } }; }; @@ -10708,15 +11368,15 @@ function sorted_1728054510(a_1728054512, cmp_1728054515, order_1728054516) { result_1728054517 = nimCopy(null, newSeq_1728053603(chckRange((a_1728054512).length, 0, 2147483647)), NTI1728053541); Label1: { var i_1728054531 = 0; - var colontmp__553656750 = 0; - colontmp__553656750 = (a_1728054512).length - 1; - var res_553656751 = 0; + var colontmp__553654913 = 0; + colontmp__553654913 = (a_1728054512).length - 1; + var res_553654914 = 0; Label2: { Label3: while (true) { - if (!(res_553656751 <= colontmp__553656750)) break Label3; - i_1728054531 = res_553656751; + if (!(res_553654914 <= colontmp__553654913)) break Label3; + i_1728054531 = res_553654914; result_1728054517[chckIndx(i_1728054531, 0, (result_1728054517).length - 1)] = nimCopy(result_1728054517[chckIndx(i_1728054531, 0, (result_1728054517).length - 1)], a_1728054512[chckIndx(i_1728054531, 0, (a_1728054512).length - 1)], NTI1728053253); - res_553656751 = addInt(res_553656751, 1); + res_553654914 = addInt(res_553654914, 1); } }; }; @@ -10732,43 +11392,43 @@ function concat_1728054426(seqs_1728054428) { var L_1728054430 = 0; Label1: { var seqitm_1728054444 = []; - var i_553656760 = 0; + var i_553654923 = 0; Label2: { Label3: while (true) { - if (!(i_553656760 < (seqs_1728054428).length)) break Label3; - seqitm_1728054444 = seqs_1728054428[chckIndx(i_553656760, 0, (seqs_1728054428).length - 1)]; + if (!(i_553654923 < (seqs_1728054428).length)) break Label3; + seqitm_1728054444 = seqs_1728054428[chckIndx(i_553654923, 0, (seqs_1728054428).length - 1)]; L_1728054430 = addInt(L_1728054430, (seqitm_1728054444).length); - i_553656760 += 1; + i_553654923 += 1; } }; }; result_1728054429 = new Array(chckRange(L_1728054430, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_1728054430, 0, 2147483647) ; ++i) { result_1728054429[i] = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); } var i_1728054457 = 0; Label4: { var s_1728054461 = []; - var i_553656767 = 0; + var i_553654930 = 0; Label5: { Label6: while (true) { - if (!(i_553656767 < (seqs_1728054428).length)) break Label6; - s_1728054461 = seqs_1728054428[chckIndx(i_553656767, 0, (seqs_1728054428).length - 1)]; + if (!(i_553654930 < (seqs_1728054428).length)) break Label6; + s_1728054461 = seqs_1728054428[chckIndx(i_553654930, 0, (seqs_1728054428).length - 1)]; Label7: { var itm_1728054465 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656764 = 0; - var L_553656765 = (s_1728054461).length; + var i_553654927 = 0; + var L_553654928 = (s_1728054461).length; Label8: { Label9: while (true) { - if (!(i_553656764 < L_553656765)) break Label9; - itm_1728054465 = s_1728054461[chckIndx(i_553656764, 0, (s_1728054461).length - 1)]; + if (!(i_553654927 < L_553654928)) break Label9; + itm_1728054465 = s_1728054461[chckIndx(i_553654927, 0, (s_1728054461).length - 1)]; result_1728054429[chckIndx(i_1728054457, 0, (result_1728054429).length - 1)] = nimCopy(result_1728054429[chckIndx(i_1728054457, 0, (result_1728054429).length - 1)], itm_1728054465, NTI1728053253); i_1728054457 = addInt(i_1728054457, 1); - i_553656764 += 1; - if (!(((s_1728054461).length == L_553656765))) { + i_553654927 += 1; + if (!(((s_1728054461).length == L_553654928))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - i_553656767 += 1; + i_553654930 += 1; } }; }; @@ -10794,18 +11454,18 @@ function HEX3Aanonymous_1728054492(xHEX60gensym51_1728054496, yHEX60gensym51_172 Label1: { var x_1728054376 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656706 = 0; - var L_553656707 = (myDrafts_1728054368).length; + var i_553654869 = 0; + var L_553654870 = (myDrafts_1728054368).length; Label2: { Label3: while (true) { - if (!(i_553656706 < L_553656707)) break Label3; - x_1728054376 = myDrafts_1728054368[chckIndx(i_553656706, 0, (myDrafts_1728054368).length - 1)]; + if (!(i_553654869 < L_553654870)) break Label3; + x_1728054376 = myDrafts_1728054368[chckIndx(i_553654869, 0, (myDrafts_1728054368).length - 1)]; if (!((!(contains_1728053911(opponentDrafts_1728054369, x_1728054376)) && !(eqStrings(x_1728054376.name, [78,111,116,104,105,110,103,46,32,78,111,116,104,105,110,103,46,46,46]))))) { failedAssertImpl_268435541((makeNimstrLit("power.nim(198, 9) `x notin opponentDrafts and x.name != emptyPower.name` ") || []).concat(x_1728054376.name || [],[32,105,115,32,115,111,109,101,104,111,119,32,105,110,32,98,111,116,104,32,112,111,111,108,115] || [])); } - i_553656706 += 1; - if (!(((myDrafts_1728054368).length == L_553656707))) { + i_553654869 += 1; + if (!(((myDrafts_1728054368).length == L_553654870))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -10816,24 +11476,24 @@ function HEX3Aanonymous_1728054492(xHEX60gensym51_1728054496, yHEX60gensym51_172 var opponentSynergizedDrafts_1728054425 = secretSynergize_1728053759(opponentDrafts_1728054369, HEX26_1728054386(secretSynergies_1728053323[0], secretSecretSynergies_1728053324[0])); Label4: { var d_1728054613 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var colontmp__553656710 = []; + var colontmp__553654873 = []; var resultHEX60gensym51_1728054609 = sorted_1728054510(concat_1728054426([nimCopy(null, mySynergizedDrafts_1728054420, NTI1728054125), nimCopy(null, opponentSynergizedDrafts_1728054425, NTI1728054130)]), HEX3Aanonymous_1728054492, 1); - colontmp__553656710 = resultHEX60gensym51_1728054609; - var i_553656711 = 0; - var L_553656712 = (colontmp__553656710).length; + colontmp__553654873 = resultHEX60gensym51_1728054609; + var i_553654874 = 0; + var L_553654875 = (colontmp__553654873).length; Label5: { Label6: while (true) { - if (!(i_553656711 < L_553656712)) break Label6; - d_1728054613 = colontmp__553656710[chckIndx(i_553656711, 0, (colontmp__553656710).length - 1)]; + if (!(i_553654874 < L_553654875)) break Label6; + d_1728054613 = colontmp__553654873[chckIndx(i_553654874, 0, (colontmp__553654873).length - 1)]; if (contains_1728053911(mySynergizedDrafts_1728054420, d_1728054613)) { d_1728054613.onStart(mySide_1728054370, mySide_1728054370, board_1728054371, state_1728054372); } else { - d_1728054613.onStart(otherSide_1476396060(mySide_1728054370), mySide_1728054370, board_1728054371, state_1728054372); + d_1728054613.onStart(otherSide_1476396061(mySide_1728054370), mySide_1728054370, board_1728054371, state_1728054372); } - i_553656711 += 1; - if (!(((colontmp__553656710).length == L_553656712))) { + i_553654874 += 1; + if (!(((colontmp__553654873).length == L_553654875))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -10844,23 +11504,23 @@ function HEX3Aanonymous_1728054492(xHEX60gensym51_1728054496, yHEX60gensym51_172 } -function add_553652282(x_553652284, x_553652284_Idx, y_553652285) { +function add_553651719(x_553651721, x_553651721_Idx, y_553651722) { var Temporary1; - var xl_553652289 = (x_553652284[x_553652284_Idx]).length; - if (x_553652284[x_553652284_Idx].length < (Temporary1 = chckRange(addInt(xl_553652289, (y_553652285).length), 0, 2147483647), Temporary1)) { for (var i = x_553652284[x_553652284_Idx].length ; i < Temporary1 ; ++i) x_553652284[x_553652284_Idx].push(({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0})); } - else { x_553652284[x_553652284_Idx].length = Temporary1; }; + var xl_553651726 = (x_553651721[x_553651721_Idx]).length; + if (x_553651721[x_553651721_Idx].length < (Temporary1 = chckRange(addInt(xl_553651726, (y_553651722).length), 0, 2147483647), Temporary1)) { for (var i = x_553651721[x_553651721_Idx].length ; i < Temporary1 ; ++i) x_553651721[x_553651721_Idx].push(({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0})); } + else { x_553651721[x_553651721_Idx].length = Temporary1; }; Label2: { - var i_553652304 = 0; - var colontmp__553656770 = 0; - colontmp__553656770 = (y_553652285).length - 1; - var res_553656771 = 0; + var i_553651741 = 0; + var colontmp__553654933 = 0; + colontmp__553654933 = (y_553651722).length - 1; + var res_553654934 = 0; Label3: { Label4: while (true) { - if (!(res_553656771 <= colontmp__553656770)) break Label4; - i_553652304 = res_553656771; - x_553652284[x_553652284_Idx][chckIndx(addInt(xl_553652289, i_553652304), 0, (x_553652284[x_553652284_Idx]).length - 1)] = nimCopy(x_553652284[x_553652284_Idx][chckIndx(addInt(xl_553652289, i_553652304), 0, (x_553652284[x_553652284_Idx]).length - 1)], y_553652285[chckIndx(i_553652304, 0, (y_553652285).length - 1)], NTI1728053253); - res_553656771 = addInt(res_553656771, 1); + if (!(res_553654934 <= colontmp__553654933)) break Label4; + i_553651741 = res_553654934; + x_553651721[x_553651721_Idx][chckIndx(addInt(xl_553651726, i_553651741), 0, (x_553651721[x_553651721_Idx]).length - 1)] = nimCopy(x_553651721[x_553651721_Idx][chckIndx(addInt(xl_553651726, i_553651741), 0, (x_553651721[x_553651721_Idx]).length - 1)], y_553651722[chckIndx(i_553651741, 0, (y_553651722).length - 1)], NTI1728053253); + res_553654934 = addInt(res_553654934, 1); } }; }; @@ -10872,9 +11532,9 @@ function HEX3Aanonymous_1845495767(taken_1845495768, taker_1845495769, board_184 var result_1845495774 = {Field0: {Field0: 0, Field1: 0}, Field1: false}; BeforeRet: { - var colontmp__553656774 = nimCopy(null, taker_1845495769.tile, NTI1476395011); - var colontmp__553656775 = false; - result_1845495774 = nimCopy(result_1845495774, {Field0: nimCopy(null, colontmp__553656774, NTI1476395011), Field1: colontmp__553656775}, NTI1845495714); + var colontmp__553654937 = nimCopy(null, taker_1845495769.tile, NTI1476395011); + var colontmp__553654938 = false; + result_1845495774 = nimCopy(result_1845495774, {Field0: nimCopy(null, colontmp__553654937, NTI1476395011), Field1: colontmp__553654938}, NTI1845495714); break BeforeRet; }; @@ -10890,22 +11550,22 @@ function HEX3Aanonymous_1845495730(piece_1845495731, board_1845495732, state_184 piece_1845495731.moves.push(HEX3Aanonymous_1543504105);; var moves_1845495738 = HEX3Aanonymous_1543504105(board_1845495732, piece_1845495731); var takes_1845495739 = HEX3Aanonymous_1543504120(board_1845495732, piece_1845495731); - var resultHEX60gensym80_1845495744 = newSeq_1476395758(0); + var resultHEX60gensym80_1845495744 = newSeq_1476395759(0); Label1: { var it_1845495748 = {Field0: 0, Field1: 0}; - var i_553656777 = 0; - var L_553656778 = (moves_1845495738).length; + var i_553654940 = 0; + var L_553654941 = (moves_1845495738).length; Label2: { Label3: while (true) { - if (!(i_553656777 < L_553656778)) break Label3; - it_1845495748 = moves_1845495738[chckIndx(i_553656777, 0, (moves_1845495738).length - 1)]; - if (!(contains_1476395660(takes_1845495739, it_1845495748))) { + if (!(i_553654940 < L_553654941)) break Label3; + it_1845495748 = moves_1845495738[chckIndx(i_553654940, 0, (moves_1845495738).length - 1)]; + if (!(contains_1476395661(takes_1845495739, it_1845495748))) { var Temporary4 = nimCopy(null, it_1845495748, NTI1476395011); resultHEX60gensym80_1845495744.push(Temporary4);; } - i_553656777 += 1; - if (!(((moves_1845495738).length == L_553656778))) { + i_553654940 += 1; + if (!(((moves_1845495738).length == L_553654941))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -10939,16 +11599,16 @@ function HEX3Aanonymous_1845495776(side_1845495777, __1845495778, b_1845495779, } var rank_1845495785 = Temporary1; - var commoner_1845495802 = {item: 7, color: side_1845495777, moves: [HEX3Aanonymous_1543504105], takes: [], onMove: HEX3Aanonymous_1476395870, onTake: HEX3Aanonymous_1476395881, whenTaken: HEX3Aanonymous_1845495767, onEndTurn: [HEX3Aanonymous_1845495730], onPromote: [HEX3Aanonymous_1476395449], filePath: [99,105,118,105,108,105,97,110,46,115,118,103], timesMoved: 0, piecesTaken: 0, tile: nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011), promoted: false, colorable: true, rotate: false, drunk: false, index: 0, casts: []}; + var commoner_1845495802 = {item: 7, color: side_1845495777, moves: [HEX3Aanonymous_1543504105], takes: [], onMove: HEX3Aanonymous_1476395871, onTake: HEX3Aanonymous_1476395882, whenTaken: HEX3Aanonymous_1845495767, onEndTurn: [HEX3Aanonymous_1845495730], onPromote: [HEX3Aanonymous_1476395450], filePath: [99,105,118,105,108,105,97,110,46,115,118,103], timesMoved: 0, piecesTaken: 0, tile: nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011), promoted: false, colorable: true, rotate: false, drunk: false, index: 0, casts: []}; var spawns_1845495803 = 0; var failsafe_1845495804 = 20; var attempt_1845495805 = rand_1644167304(7); Label2: { Label3: while (true) { if (!(!((spawns_1845495803 == 3)) && !((failsafe_1845495804 == 0)))) break Label3; - if (isAir_1476396035(b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)][chckIndx(attempt_1845495805, 0, (b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)]).length - 1)])) { + if (isAir_1476396036(b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)][chckIndx(attempt_1845495805, 0, (b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)]).length - 1)])) { var tile_1845495806 = nimCopy(null, b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)][chckIndx(attempt_1845495805, 0, (b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)]).length - 1)].tile, NTI1476395011); - b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)][chckIndx(attempt_1845495805, 0, (b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)]).length - 1)] = nimCopy(b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)][chckIndx(attempt_1845495805, 0, (b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)]).length - 1)], pieceCopy_1476395899(commoner_1845495802, newIndex_1476395494(state_1845495780), commoner_1845495802.item, commoner_1845495802.color, commoner_1845495802.timesMoved, commoner_1845495802.piecesTaken, tile_1845495806, commoner_1845495802.moves, commoner_1845495802.takes, commoner_1845495802.onMove, commoner_1845495802.onTake, commoner_1845495802.whenTaken, commoner_1845495802.onEndTurn, commoner_1845495802.onPromote, commoner_1845495802.promoted, commoner_1845495802.filePath, commoner_1845495802.colorable, commoner_1845495802.rotate, commoner_1845495802.drunk), NTI1476395034); + b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)][chckIndx(attempt_1845495805, 0, (b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)]).length - 1)] = nimCopy(b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)][chckIndx(attempt_1845495805, 0, (b_1845495779[chckIndx(rank_1845495785, 0, (b_1845495779).length - 1)]).length - 1)], pieceCopy_1476395900(commoner_1845495802, newIndex_1476395495(state_1845495780), commoner_1845495802.item, commoner_1845495802.color, commoner_1845495802.timesMoved, commoner_1845495802.piecesTaken, tile_1845495806, commoner_1845495802.moves, commoner_1845495802.takes, commoner_1845495802.onMove, commoner_1845495802.onTake, commoner_1845495802.whenTaken, commoner_1845495802.onEndTurn, commoner_1845495802.onPromote, commoner_1845495802.promoted, commoner_1845495802.filePath, commoner_1845495802.colorable, commoner_1845495802.rotate, commoner_1845495802.drunk), NTI1476395034); spawns_1845495803 = addInt(spawns_1845495803, 1); } else { @@ -10968,28 +11628,28 @@ function synergize_1728053574(pool_1728053575, currentPowers_1728053576, t_17280 result_1728053578 = nimCopy(null, pool_1728053575, NTI1728053517); Label1: { var s_1728053601 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; - var i_553656816 = 0; - var L_553656817 = (draftSynergies_1728053322[0]).length; + var i_553654979 = 0; + var L_553654980 = (draftSynergies_1728053322[0]).length; Label2: { Label3: while (true) { - if (!(i_553656816 < L_553656817)) break Label3; - s_1728053601 = draftSynergies_1728053322[0][chckIndx(i_553656816, 0, (draftSynergies_1728053322[0]).length - 1)]; + if (!(i_553654979 < L_553654980)) break Label3; + s_1728053601 = draftSynergies_1728053322[0][chckIndx(i_553654979, 0, (draftSynergies_1728053322[0]).length - 1)]; var resultHEX60gensym16_1728053627 = newSeq_1728053603(0); Label4: { var it_1728053649 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656809 = 0; - var L_553656810 = (currentPowers_1728053576).length; + var i_553654972 = 0; + var L_553654973 = (currentPowers_1728053576).length; Label5: { Label6: while (true) { - if (!(i_553656809 < L_553656810)) break Label6; - it_1728053649 = currentPowers_1728053576[chckIndx(i_553656809, 0, (currentPowers_1728053576).length - 1)]; + if (!(i_553654972 < L_553654973)) break Label6; + it_1728053649 = currentPowers_1728053576[chckIndx(i_553654972, 0, (currentPowers_1728053576).length - 1)]; if (contains_1090519090(s_1728053601.Field2, it_1728053649.name)) { var Temporary7 = nimCopy(null, it_1728053649, NTI1728053253); resultHEX60gensym16_1728053627.push(Temporary7);; } - i_553656809 += 1; - if (!(((currentPowers_1728053576).length == L_553656810))) { + i_553654972 += 1; + if (!(((currentPowers_1728053576).length == L_553654973))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -11005,19 +11665,19 @@ function synergize_1728053574(pool_1728053575, currentPowers_1728053576, t_17280 var resultHEX60gensym21_1728053675 = newSeq_1728053603(0); Label9: { var it_1728053679 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656813 = 0; - var L_553656814 = (result_1728053578).length; + var i_553654976 = 0; + var L_553654977 = (result_1728053578).length; Label10: { Label11: while (true) { - if (!(i_553656813 < L_553656814)) break Label11; - it_1728053679 = result_1728053578[chckIndx(i_553656813, 0, (result_1728053578).length - 1)]; + if (!(i_553654976 < L_553654977)) break Label11; + it_1728053679 = result_1728053578[chckIndx(i_553654976, 0, (result_1728053578).length - 1)]; if (!(contains_1090519090(s_1728053601.Field3, it_1728053679.name))) { var Temporary12 = nimCopy(null, it_1728053679, NTI1728053253); resultHEX60gensym21_1728053675.push(Temporary12);; } - i_553656813 += 1; - if (!(((result_1728053578).length == L_553656814))) { + i_553654976 += 1; + if (!(((result_1728053578).length == L_553654977))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -11029,8 +11689,8 @@ function synergize_1728053574(pool_1728053575, currentPowers_1728053576, t_17280 } - i_553656816 += 1; - if (!(((draftSynergies_1728053322[0]).length == L_553656817))) { + i_553654979 += 1; + if (!(((draftSynergies_1728053322[0]).length == L_553654980))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -11067,29 +11727,29 @@ function randomPower_1728054090(t_1728054091, currentPowers_1728054092, alreadyS var resultHEX60gensym32_1728054103 = newSeq_1728053603(0); Label1: { var it_1728054107 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var colontmp__553656790 = []; - colontmp__553656790 = synergize_1728053574((Temporary2 = seqOf_1728054057(t_1728054091), Temporary2)[0][Temporary2[1]], currentPowers_1728054092, t_1728054091); - var i_553656791 = 0; - var L_553656792 = (colontmp__553656790).length; + var colontmp__553654953 = []; + colontmp__553654953 = synergize_1728053574((Temporary2 = seqOf_1728054057(t_1728054091), Temporary2)[0][Temporary2[1]], currentPowers_1728054092, t_1728054091); + var i_553654954 = 0; + var L_553654955 = (colontmp__553654953).length; Label3: { Label4: while (true) { - if (!(i_553656791 < L_553656792)) break Label4; - it_1728054107 = colontmp__553656790[chckIndx(i_553656791, 0, (colontmp__553656790).length - 1)]; + if (!(i_553654954 < L_553654955)) break Label4; + it_1728054107 = colontmp__553654953[chckIndx(i_553654954, 0, (colontmp__553654953).length - 1)]; Label5: { var iHEX60gensym34_1728054128 = 0; var resultHEX60gensym34_1728054135 = newSeq_536871458(chckRange((alreadySelected_1728054097).length, 0, 2147483647)); Label6: { var it_1728054139 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656787 = 0; - var L_553656788 = (alreadySelected_1728054097).length; + var i_553654950 = 0; + var L_553654951 = (alreadySelected_1728054097).length; Label7: { Label8: while (true) { - if (!(i_553656787 < L_553656788)) break Label8; - it_1728054139 = alreadySelected_1728054097[chckIndx(i_553656787, 0, (alreadySelected_1728054097).length - 1)]; + if (!(i_553654950 < L_553654951)) break Label8; + it_1728054139 = alreadySelected_1728054097[chckIndx(i_553654950, 0, (alreadySelected_1728054097).length - 1)]; resultHEX60gensym34_1728054135[chckIndx(iHEX60gensym34_1728054128, 0, (resultHEX60gensym34_1728054135).length - 1)] = nimCopy(null, it_1728054139.name, NTI33554449); iHEX60gensym34_1728054128 = addInt(iHEX60gensym34_1728054128, 1); - i_553656787 += 1; - if (!(((alreadySelected_1728054097).length == L_553656788))) { + i_553654950 += 1; + if (!(((alreadySelected_1728054097).length == L_553654951))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -11102,8 +11762,8 @@ function randomPower_1728054090(t_1728054091, currentPowers_1728054092, alreadyS resultHEX60gensym32_1728054103.push(Temporary9);; } - i_553656791 += 1; - if (!(((colontmp__553656790).length == L_553656792))) { + i_553654954 += 1; + if (!(((colontmp__553654953).length == L_553654955))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -11121,16 +11781,16 @@ function randomPower_1728054090(t_1728054091, currentPowers_1728054092, alreadyS var resultHEX60gensym38_1728054208 = newSeq_1728054184(chckRange((search_1728054152).length, 0, 2147483647)); Label11: { var it_1728054212 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656796 = 0; - var L_553656797 = (search_1728054152).length; + var i_553654959 = 0; + var L_553654960 = (search_1728054152).length; Label12: { Label13: while (true) { - if (!(i_553656796 < L_553656797)) break Label13; - it_1728054212 = search_1728054152[chckIndx(i_553656796, 0, (search_1728054152).length - 1)]; + if (!(i_553654959 < L_553654960)) break Label13; + it_1728054212 = search_1728054152[chckIndx(i_553654959, 0, (search_1728054152).length - 1)]; resultHEX60gensym38_1728054208[chckIndx(iHEX60gensym38_1728054180, 0, (resultHEX60gensym38_1728054208).length - 1)] = it_1728054212.rarity; iHEX60gensym38_1728054180 = addInt(iHEX60gensym38_1728054180, 1); - i_553656796 += 1; - if (!(((search_1728054152).length == L_553656797))) { + i_553654959 += 1; + if (!(((search_1728054152).length == L_553654960))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -11147,17 +11807,17 @@ function randomPower_1728054090(t_1728054091, currentPowers_1728054092, alreadyS var resultHEX60gensym37_1728054228 = sHEX60gensym37_1728054217[chckIndx(subInt(nHEX60gensym37_1728054222, 1), 0, (sHEX60gensym37_1728054217).length - 1)]; Label14: { var iHEX60gensym37_1728054234 = 0; - var colontmp__553656800 = 0; - colontmp__553656800 = subInt(nHEX60gensym37_1728054222, 2); - var res_553656801 = colontmp__553656800; + var colontmp__553654963 = 0; + colontmp__553654963 = subInt(nHEX60gensym37_1728054222, 2); + var res_553654964 = colontmp__553654963; Label15: { Label16: while (true) { - if (!(0 <= res_553656801)) break Label16; - iHEX60gensym37_1728054234 = res_553656801; + if (!(0 <= res_553654964)) break Label16; + iHEX60gensym37_1728054234 = res_553654964; var a_1728054235 = sHEX60gensym37_1728054217[chckIndx(iHEX60gensym37_1728054234, 0, (sHEX60gensym37_1728054217).length - 1)]; var b_1728054236 = resultHEX60gensym37_1728054228; resultHEX60gensym37_1728054228 = addInt(a_1728054235, b_1728054236); - res_553656801 = subInt(res_553656801, 1); + res_553654964 = subInt(res_553654964, 1); } }; }; @@ -11165,20 +11825,20 @@ function randomPower_1728054090(t_1728054091, currentPowers_1728054092, alreadyS var x_1728054238 = rand_1644167304(sum_1728054237); Label17: { var p_1728054242 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656804 = 0; - var L_553656805 = (search_1728054152).length; + var i_553654967 = 0; + var L_553654968 = (search_1728054152).length; Label18: { Label19: while (true) { - if (!(i_553656804 < L_553656805)) break Label19; - p_1728054242 = search_1728054152[chckIndx(i_553656804, 0, (search_1728054152).length - 1)]; + if (!(i_553654967 < L_553654968)) break Label19; + p_1728054242 = search_1728054152[chckIndx(i_553654967, 0, (search_1728054152).length - 1)]; x_1728054238 = subInt(x_1728054238, p_1728054242.rarity); if ((x_1728054238 <= 0)) { result_1728054098 = nimCopy(result_1728054098, p_1728054242, NTI1728053253); break BeforeRet; } - i_553656804 += 1; - if (!(((search_1728054152).length == L_553656805))) { + i_553654967 += 1; + if (!(((search_1728054152).length == L_553654968))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -11230,29 +11890,29 @@ function HEX26_1728054285(x_1728054287, y_1728054288) { result_1728054289 = new Array(chckRange(addInt((x_1728054287).length, (y_1728054288).length), 0, 2147483647)); for (var i = 0 ; i < chckRange(addInt((x_1728054287).length, (y_1728054288).length), 0, 2147483647) ; ++i) { result_1728054289[i] = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); } Label1: { var i_1728054307 = 0; - var colontmp__553656820 = 0; - colontmp__553656820 = subInt((x_1728054287).length, 1); - var res_553656821 = 0; + var colontmp__553654983 = 0; + colontmp__553654983 = subInt((x_1728054287).length, 1); + var res_553654984 = 0; Label2: { Label3: while (true) { - if (!(res_553656821 <= colontmp__553656820)) break Label3; - i_1728054307 = res_553656821; + if (!(res_553654984 <= colontmp__553654983)) break Label3; + i_1728054307 = res_553654984; result_1728054289[chckIndx(i_1728054307, 0, (result_1728054289).length - 1)] = nimCopy(result_1728054289[chckIndx(i_1728054307, 0, (result_1728054289).length - 1)], x_1728054287[chckIndx(i_1728054307, 0, (x_1728054287).length - 1)], NTI1728053253); - res_553656821 = addInt(res_553656821, 1); + res_553654984 = addInt(res_553654984, 1); } }; }; Label4: { var i_1728054315 = 0; - var colontmp__553656824 = 0; - colontmp__553656824 = subInt((y_1728054288).length, 1); - var res_553656825 = 0; + var colontmp__553654987 = 0; + colontmp__553654987 = subInt((y_1728054288).length, 1); + var res_553654988 = 0; Label5: { Label6: while (true) { - if (!(res_553656825 <= colontmp__553656824)) break Label6; - i_1728054315 = res_553656825; + if (!(res_553654988 <= colontmp__553654987)) break Label6; + i_1728054315 = res_553654988; result_1728054289[chckIndx(addInt(i_1728054315, (x_1728054287).length), 0, (result_1728054289).length - 1)] = nimCopy(result_1728054289[chckIndx(addInt(i_1728054315, (x_1728054287).length), 0, (result_1728054289).length - 1)], y_1728054288[chckIndx(i_1728054315, 0, (y_1728054288).length - 1)], NTI1728053253); - res_553656825 = addInt(res_553656825, 1); + res_553654988 = addInt(res_553654988, 1); } }; }; @@ -11276,15 +11936,15 @@ function draftRandomPower_1728054323(allSelected_1728054324, drafterSelected_172 var weights_1728054334 = nimCopy(null, Temporary1, NTI1728053255); Label2: { var x_1728054339 = 0; - var colontmp__553656781 = 0; - colontmp__553656781 = subInt(options_1728054326, 1); - var res_553656782 = 0; + var colontmp__553654944 = 0; + colontmp__553654944 = subInt(options_1728054326, 1); + var res_553654945 = 0; Label3: { Label4: while (true) { - if (!(res_553656782 <= colontmp__553656781)) break Label4; - x_1728054339 = res_553656782; + if (!(res_553654945 <= colontmp__553654944)) break Label4; + x_1728054339 = res_553654945; result_1728054329.push(randomPower_1728054090(randomTier_1728054247(weights_1728054334), drafterSelected_1728054325, HEX26_1728054285(allSelected_1728054324, result_1728054329)));; - res_553656782 = addInt(res_553656782, 1); + res_553654945 = addInt(res_553654945, 1); } }; }; @@ -11298,15 +11958,15 @@ function draftRandomPowerTier_1728054272(t_1728054273, allSelected_1728054274, d Label1: { var x_1728054284 = 0; - var colontmp__553656828 = 0; - colontmp__553656828 = subInt(options_1728054276, 1); - var res_553656829 = 0; + var colontmp__553654991 = 0; + colontmp__553654991 = subInt(options_1728054276, 1); + var res_553654992 = 0; Label2: { Label3: while (true) { - if (!(res_553656829 <= colontmp__553656828)) break Label3; - x_1728054284 = res_553656829; + if (!(res_553654992 <= colontmp__553654991)) break Label3; + x_1728054284 = res_553654992; result_1728054279.push(randomPower_1728054090(t_1728054273, drafterSelected_1728054275, HEX26_1728054285(allSelected_1728054274, result_1728054279)));; - res_553656829 = addInt(res_553656829, 1); + res_553654992 = addInt(res_553654992, 1); } }; }; @@ -11315,26 +11975,26 @@ function draftRandomPowerTier_1728054272(t_1728054273, allSelected_1728054274, d } -function draft_553652266(allDrafts_553652271, drafter_553652276) { - var disabled_553652281 = [[]]; +function draft_553651703(allDrafts_553651708, drafter_553651713) { + var disabled_553651718 = [[]]; if (disableRNGPowers_553648284[0]) { - add_553652282(disabled_553652281, 0, rngPowers_1845497408); + add_553651719(disabled_553651718, 0, rngPowers_1845500210); } if (!(enableExperimental_553648286[0])) { - add_553652282(disabled_553652281, 0, experimentalPowers_1845497413); + add_553651719(disabled_553651718, 0, experimentalPowers_1845500215); } if ((gameMode_553648289[0] == 2)) { - draftOptions_553648252[0] = nimCopy(null, draftRandomPower_1728054323(HEX26_1728054285(allDrafts_553652271, disabled_553652281[0]), drafter_553652276, draftChoices_553648253[0], {Field0: 60, Field1: 30, Field2: 9, Field3: 1}, {Field0: 50, Field1: 36, Field2: 12, Field3: 2}), NTI1728054056); + draftOptions_553648252[0] = nimCopy(null, draftRandomPower_1728054323(HEX26_1728054285(allDrafts_553651708, disabled_553651718[0]), drafter_553651713, draftChoices_553648253[0], {Field0: 60, Field1: 30, Field2: 9, Field3: 1}, {Field0: 50, Field1: 36, Field2: 12, Field3: 2}), NTI1728054056); } else { if ((gameMode_553648289[0] == 1)) { - draftOptions_553648252[0] = nimCopy(null, draftRandomPowerTier_1728054272(draftTier_553648255[0], HEX26_1728054285(HEX26_1728053688(allDrafts_553652271, holy_1728053316), disabled_553652281[0]), drafter_553652276, draftChoices_553648253[0], {Field0: 60, Field1: 30, Field2: 9, Field3: 1}, {Field0: 50, Field1: 36, Field2: 12, Field3: 2}), NTI1728054019); + draftOptions_553648252[0] = nimCopy(null, draftRandomPowerTier_1728054272(draftTier_553648255[0], HEX26_1728054285(HEX26_1728053688(allDrafts_553651708, holy_1728053316), disabled_553651718[0]), drafter_553651713, draftChoices_553648253[0], {Field0: 60, Field1: 30, Field2: 9, Field3: 1}, {Field0: 50, Field1: 36, Field2: 12, Field3: 2}), NTI1728054019); } else { if ((gameMode_553648289[0] == 3)) { - draftOptions_553648252[0] = nimCopy(null, draftRandomPower_1728054323(HEX26_1728054285(allDrafts_553652271, disabled_553652281[0]), drafter_553652276, draftChoices_553648253[0], {Field0: 25, Field1: 35, Field2: 30, Field3: 10}, {Field0: 15, Field1: 38, Field2: 35, Field3: 12}), NTI1728054056); + draftOptions_553648252[0] = nimCopy(null, draftRandomPower_1728054323(HEX26_1728054285(allDrafts_553651708, disabled_553651718[0]), drafter_553651713, draftChoices_553648253[0], {Field0: 25, Field1: 35, Field2: 30, Field3: 10}, {Field0: 15, Field1: 38, Field2: 35, Field3: 12}), NTI1728054056); } }} @@ -11443,13 +12103,13 @@ function tree_754975616(kind_754975617, kids_754975618) { result_754975619 = newVNode_754975613(kind_754975617); Label1: { var k_754975632 = null; - var i_553656833 = 0; + var i_553654996 = 0; Label2: { Label3: while (true) { - if (!(i_553656833 < (kids_754975618).length)) break Label3; - k_754975632 = kids_754975618[chckIndx(i_553656833, 0, (kids_754975618).length - 1)]; + if (!(i_553654996 < (kids_754975618).length)) break Label3; + k_754975632 = kids_754975618[chckIndx(i_553654996, 0, (kids_754975618).length - 1)]; add_754975552(result_754975619, k_754975632); - i_553656833 += 1; + i_553654996 += 1; } }; }; @@ -11541,15 +12201,15 @@ function substr_33558084(s_33558085, first_33558086, last_33558087) { result_33558088 = nimCopy(null, mnewString(chckRange(L_33558090, 0, 2147483647)), NTI33554449); Label1: { var i_33558095 = 0; - var colontmp__553656844 = 0; - colontmp__553656844 = subInt(L_33558090, 1); - var res_553656845 = 0; + var colontmp__553655007 = 0; + colontmp__553655007 = subInt(L_33558090, 1); + var res_553655008 = 0; Label2: { Label3: while (true) { - if (!(res_553656845 <= colontmp__553656844)) break Label3; - i_33558095 = res_553656845; + if (!(res_553655008 <= colontmp__553655007)) break Label3; + i_33558095 = res_553655008; result_33558088[chckIndx(i_33558095, 0, (result_33558088).length - 1)] = s_33558085[chckIndx(addInt(i_33558095, first_33558089), 0, (s_33558085).length - 1)]; - res_553656845 = addInt(res_553656845, 1); + res_553655008 = addInt(res_553655008, 1); } }; }; @@ -11564,31 +12224,31 @@ function nsuSplitChar(s_889192993, sep_889192994, maxsplit_889192995) { result_889192996 = nimCopy(null, [], NTI889192821); Label1: { var xHEX60gensym67_889193002 = []; - var lastHEX60gensym34_553656838 = 0; - var splitsHEX60gensym34_553656839 = maxsplit_889192995; + var lastHEX60gensym34_553655001 = 0; + var splitsHEX60gensym34_553655002 = maxsplit_889192995; Label2: { Label3: while (true) { - if (!(lastHEX60gensym34_553656838 <= (s_889192993).length)) break Label3; - var firstHEX60gensym34_553656841 = lastHEX60gensym34_553656838; + if (!(lastHEX60gensym34_553655001 <= (s_889192993).length)) break Label3; + var firstHEX60gensym34_553655004 = lastHEX60gensym34_553655001; Label4: { Label5: while (true) { - if (!((lastHEX60gensym34_553656838 < (s_889192993).length) && !((s_889192993[chckIndx(lastHEX60gensym34_553656838, 0, (s_889192993).length - 1)] == sep_889192994)))) break Label5; - lastHEX60gensym34_553656838 = addInt(lastHEX60gensym34_553656838, 1); + if (!((lastHEX60gensym34_553655001 < (s_889192993).length) && !((s_889192993[chckIndx(lastHEX60gensym34_553655001, 0, (s_889192993).length - 1)] == sep_889192994)))) break Label5; + lastHEX60gensym34_553655001 = addInt(lastHEX60gensym34_553655001, 1); } }; - if ((splitsHEX60gensym34_553656839 == 0)) { - lastHEX60gensym34_553656838 = (s_889192993).length; + if ((splitsHEX60gensym34_553655002 == 0)) { + lastHEX60gensym34_553655001 = (s_889192993).length; } - xHEX60gensym67_889193002 = substr_33558084(s_889192993, firstHEX60gensym34_553656841, subInt(lastHEX60gensym34_553656838, 1)); + xHEX60gensym67_889193002 = substr_33558084(s_889192993, firstHEX60gensym34_553655004, subInt(lastHEX60gensym34_553655001, 1)); var Temporary6 = nimCopy(null, xHEX60gensym67_889193002, NTI33554449); result_889192996.push(Temporary6);; - if ((splitsHEX60gensym34_553656839 == 0)) { + if ((splitsHEX60gensym34_553655002 == 0)) { break Label2; } - splitsHEX60gensym34_553656839 = subInt(splitsHEX60gensym34_553656839, 1); - lastHEX60gensym34_553656838 = addInt(lastHEX60gensym34_553656838, 1); + splitsHEX60gensym34_553655002 = subInt(splitsHEX60gensym34_553655002, 1); + lastHEX60gensym34_553655001 = addInt(lastHEX60gensym34_553655001, 1); } }; }; @@ -11766,32 +12426,32 @@ function nsuSplitString(s_889193023, sep_889193024, maxsplit_889193025) { Temporary2 = (sep_889193024).length; } - var sepLen_553656852 = Temporary2; - var lastHEX60gensym41_553656853 = 0; - var splitsHEX60gensym41_553656854 = maxsplit_889193025; + var sepLen_553655015 = Temporary2; + var lastHEX60gensym41_553655016 = 0; + var splitsHEX60gensym41_553655017 = maxsplit_889193025; Label3: { Label4: while (true) { - if (!(lastHEX60gensym41_553656853 <= (s_889193023).length)) break Label4; - var firstHEX60gensym41_553656856 = lastHEX60gensym41_553656853; + if (!(lastHEX60gensym41_553655016 <= (s_889193023).length)) break Label4; + var firstHEX60gensym41_553655019 = lastHEX60gensym41_553655016; Label5: { Label6: while (true) { - if (!((lastHEX60gensym41_553656853 < (s_889193023).length) && !(substrEq_889192703(s_889193023, lastHEX60gensym41_553656853, sep_889193024)))) break Label6; - lastHEX60gensym41_553656853 = addInt(lastHEX60gensym41_553656853, 1); + if (!((lastHEX60gensym41_553655016 < (s_889193023).length) && !(substrEq_889192703(s_889193023, lastHEX60gensym41_553655016, sep_889193024)))) break Label6; + lastHEX60gensym41_553655016 = addInt(lastHEX60gensym41_553655016, 1); } }; - if ((splitsHEX60gensym41_553656854 == 0)) { - lastHEX60gensym41_553656853 = (s_889193023).length; + if ((splitsHEX60gensym41_553655017 == 0)) { + lastHEX60gensym41_553655016 = (s_889193023).length; } - xHEX60gensym69_889193032 = substr_33558084(s_889193023, firstHEX60gensym41_553656856, subInt(lastHEX60gensym41_553656853, 1)); + xHEX60gensym69_889193032 = substr_33558084(s_889193023, firstHEX60gensym41_553655019, subInt(lastHEX60gensym41_553655016, 1)); var Temporary7 = nimCopy(null, xHEX60gensym69_889193032, NTI33554449); result_889193026.push(Temporary7);; - if ((splitsHEX60gensym41_553656854 == 0)) { + if ((splitsHEX60gensym41_553655017 == 0)) { break Label3; } - splitsHEX60gensym41_553656854 = subInt(splitsHEX60gensym41_553656854, 1); - lastHEX60gensym41_553656853 = addInt(lastHEX60gensym41_553656853, sepLen_553656852); + splitsHEX60gensym41_553655017 = subInt(splitsHEX60gensym41_553655017, 1); + lastHEX60gensym41_553655016 = addInt(lastHEX60gensym41_553655016, sepLen_553655015); } }; }; @@ -11957,33 +12617,33 @@ function buy_1879048300(piece_1879048301, option_1879048302, b_1879048303, s_187 } -function otherBuy_553651978(d_553651979) { - var data_553651980 = nsuSplitString(d_553651979, [44], (-1)); - if (!(eqStrings(data_553651980[chckIndx(0, 0, (data_553651980).length - 1)], [98,117,121]))) { +function otherBuy_553651450(d_553651451) { + var data_553651452 = nsuSplitString(d_553651451, [44], (-1)); + if (!(eqStrings(data_553651452[chckIndx(0, 0, (data_553651452).length - 1)], [98,117,121]))) { failedAssertImpl_268435541([109,97,105,110,46,110,105,109,40,50,55,53,44,32,53,41,32,96,100,97,116,97,91,48,93,32,61,61,32,34,98,117,121,34,96,32]); } - var piece_553651986 = {Field0: nsuParseInt(data_553651980[chckIndx(3, 0, (data_553651980).length - 1)]), Field1: nsuParseInt(data_553651980[chckIndx(2, 0, (data_553651980).length - 1)])}; - if (!(hasWallet_1879048196(pieceOf_553648356(piece_553651986).color, theState_553648258[0]))) { + var piece_553651458 = {Field0: nsuParseInt(data_553651452[chckIndx(3, 0, (data_553651452).length - 1)]), Field1: nsuParseInt(data_553651452[chckIndx(2, 0, (data_553651452).length - 1)])}; + if (!(hasWallet_1879048196(pieceOf_553648356(piece_553651458).color, theState_553648258[0]))) { failedAssertImpl_268435541([109,97,105,110,46,110,105,109,40,50,55,55,44,32,53,41,32,96,112,105,101,99,101,79,102,40,112,105,101,99,101,41,46,99,111,108,111,114,46,104,97,115,87,97,108,108,101,116,40,116,104,101,83,116,97,116,101,41,96,32]); } Label1: { - var option_553652014 = {Field0: [], Field1: null, Field2: null, Field3: null}; - var colontmp__553656862 = []; - colontmp__553656862 = theState_553648258[0].Field1[chckIndx(otherSide_1476396060(side_553648239[0]), 0, (theState_553648258[0].Field1).length - 1)].buys; - var i_553656864 = 0; - var L_553656865 = (colontmp__553656862).length; + var option_553651467 = {Field0: [], Field1: null, Field2: null, Field3: null}; + var colontmp__553655025 = []; + colontmp__553655025 = theState_553648258[0].Field1[chckIndx(otherSide_1476396061(side_553648239[0]), 0, (theState_553648258[0].Field1).length - 1)].buys; + var i_553655026 = 0; + var L_553655027 = (colontmp__553655025).length; Label2: { Label3: while (true) { - if (!(i_553656864 < L_553656865)) break Label3; - option_553652014 = colontmp__553656862[chckIndx(i_553656864, 0, (colontmp__553656862).length - 1)]; - if (eqStrings(option_553652014.Field0, data_553651980[chckIndx(1, 0, (data_553651980).length - 1)])) { - buy_1879048300(pieceOf_553648356(piece_553651986), option_553652014, theBoard_553648257[0], theState_553648258[0]); + if (!(i_553655026 < L_553655027)) break Label3; + option_553651467 = colontmp__553655025[chckIndx(i_553655026, 0, (colontmp__553655025).length - 1)]; + if (eqStrings(option_553651467.Field0, data_553651452[chckIndx(1, 0, (data_553651452).length - 1)])) { + buy_1879048300(pieceOf_553648356(piece_553651458), option_553651467, theBoard_553648257[0], theState_553648258[0]); } - i_553656864 += 1; - if (!(((colontmp__553656862).length == L_553656865))) { + i_553655026 += 1; + if (!(((colontmp__553655025).length == L_553655027))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -11994,597 +12654,313 @@ function otherBuy_553651978(d_553651979) { } -function gameIsOver_1476396143(b_1476396144) { - var result_1476396145 = false; +function gameIsOver_1476396144(b_1476396145) { + var result_1476396146 = false; BeforeRet: { - var kings_1476396146 = 0; + var kings_1476396147 = 0; Label1: { - var row_1476396151 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - var i_553656911 = 0; + var row_1476396152 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; + var i_553655073 = 0; Label2: { Label3: while (true) { if (!true) break Label3; - row_1476396151 = nimCopy(row_1476396151, b_1476396144[chckIndx(i_553656911, 0, (b_1476396144).length - 1)], NTI1476395012); + row_1476396152 = nimCopy(row_1476396152, b_1476396145[chckIndx(i_553655073, 0, (b_1476396145).length - 1)], NTI1476395012); Label4: { - var p_1476396156 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - var i_553656909 = 0; + var p_1476396157 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_553655071 = 0; Label5: { Label6: while (true) { if (!true) break Label6; - p_1476396156 = nimCopy(p_1476396156, row_1476396151[chckIndx(i_553656909, 0, (row_1476396151).length - 1)], NTI1476395034); - if ((p_1476396156.item == 0)) { - kings_1476396146 = addInt(kings_1476396146, 1); + p_1476396157 = nimCopy(p_1476396157, row_1476396152[chckIndx(i_553655071, 0, (row_1476396152).length - 1)], NTI1476395034); + if ((p_1476396157.item == 0)) { + kings_1476396147 = addInt(kings_1476396147, 1); } - if ((7 <= i_553656909)) { + if ((7 <= i_553655071)) { break Label5; } - i_553656909 += 1; + i_553655071 += 1; } }; }; - if ((7 <= i_553656911)) { + if ((7 <= i_553655073)) { break Label2; } - i_553656911 += 1; + i_553655073 += 1; } }; }; - result_1476396145 = !((kings_1476396146 == 2)); + result_1476396146 = !((kings_1476396147 == 2)); break BeforeRet; }; - return result_1476396145; + return result_1476396146; } -function alive_1476396067(c_1476396068, b_1476396069) { - var result_1476396070 = false; +function alive_1476396068(c_1476396069, b_1476396070) { + var result_1476396071 = false; BeforeRet: { Label1: { - var row_1476396096 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - var i_553656917 = 0; + var row_1476396097 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; + var i_553655079 = 0; Label2: { Label3: while (true) { if (!true) break Label3; - row_1476396096 = nimCopy(row_1476396096, b_1476396069[chckIndx(i_553656917, 0, (b_1476396069).length - 1)], NTI1476395012); + row_1476396097 = nimCopy(row_1476396097, b_1476396070[chckIndx(i_553655079, 0, (b_1476396070).length - 1)], NTI1476395012); Label4: { - var p_1476396122 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - var i_553656915 = 0; + var p_1476396123 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_553655077 = 0; Label5: { Label6: while (true) { if (!true) break Label6; - p_1476396122 = nimCopy(p_1476396122, row_1476396096[chckIndx(i_553656915, 0, (row_1476396096).length - 1)], NTI1476395034); - if (((p_1476396122.item == 0) && isColor_1476396052(p_1476396122, c_1476396068))) { - result_1476396070 = true; + p_1476396123 = nimCopy(p_1476396123, row_1476396097[chckIndx(i_553655077, 0, (row_1476396097).length - 1)], NTI1476395034); + if (((p_1476396123.item == 0) && isColor_1476396053(p_1476396123, c_1476396069))) { + result_1476396071 = true; break BeforeRet; } - if ((7 <= i_553656915)) { + if ((7 <= i_553655077)) { break Label5; } - i_553656915 += 1; + i_553655077 += 1; } }; }; - if ((7 <= i_553656917)) { + if ((7 <= i_553655079)) { break Label2; } - i_553656917 += 1; - } - }; - }; - result_1476396070 = false; - break BeforeRet; - }; - - return result_1476396070; - -} - -function addWins_1929379860(with_1929379861) { - Label1: { - var power_1929379865 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656920 = 0; - var L_553656921 = (with_1929379861).length; - Label2: { - Label3: while (true) { - if (!(i_553656920 < L_553656921)) break Label3; - power_1929379865 = with_1929379861[chckIndx(i_553656920, 0, (with_1929379861).length - 1)]; - if (!(localStorage.getItem(toJSStr(power_1929379865.technicalName)) !== null)) { - localStorage.setItem(toJSStr(power_1929379865.technicalName), JSON.stringify({wins: 0, losses: 0})); - } - - incrementWins(toJSStr(power_1929379865.technicalName)); - i_553656920 += 1; - if (!(((with_1929379861).length == L_553656921))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - incrementWins("wins"); - - -} - -function addLosses_1929379866(with_1929379867) { - Label1: { - var power_1929379871 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553656924 = 0; - var L_553656925 = (with_1929379867).length; - Label2: { - Label3: while (true) { - if (!(i_553656924 < L_553656925)) break Label3; - power_1929379871 = with_1929379867[chckIndx(i_553656924, 0, (with_1929379867).length - 1)]; - if (!(localStorage.getItem(toJSStr(power_1929379871.technicalName)) !== null)) { - localStorage.setItem(toJSStr(power_1929379871.technicalName), JSON.stringify({wins: 0, losses: 0})); - } - - incrementLosses(toJSStr(power_1929379871.technicalName)); - i_553656924 += 1; - if (!(((with_1929379867).length == L_553656925))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - incrementLosses("losses"); - - -} - -function find_553651303(a_553651306, item_553651307) { - var result_553651308 = 0; - - BeforeRet: { - result_553651308 = 0; - Label1: { - var i_553651312 = 0; - var i_553656928 = 0; - Label2: { - Label3: while (true) { - if (!(i_553656928 < (a_553651306).length)) break Label3; - i_553651312 = a_553651306[chckIndx(i_553656928, 0, (a_553651306).length - 1)]; - if ((i_553651312 == item_553651307)) { - break BeforeRet; - } - - result_553651308 = addInt(result_553651308, 1); - i_553656928 += 1; + i_553655079 += 1; } }; }; - result_553651308 = (-1); - }; - - return result_553651308; - -} - -function contains_553651298(a_553651300, item_553651301) { - var result_553651302 = false; - - BeforeRet: { - result_553651302 = (0 <= find_553651303(a_553651300, item_553651301)); - break BeforeRet; - }; - - return result_553651302; - -} - -function addQuoted_553650793(s_553650795, s_553650795_Idx, x_553650796) { - s_553650795[s_553650795_Idx].push.apply(s_553650795[s_553650795_Idx], reprEnum(x_553650796, NTI1476395016));; - - -} - -function addQuoted_553650813(s_553650815, s_553650815_Idx, x_553650816) { - s_553650815[s_553650815_Idx].push.apply(s_553650815[s_553650815_Idx], reprEnum(x_553650816, NTI1476395017));; - - -} - -function addQuoted_553650869(s_553650871, s_553650871_Idx, x_553650872) { - s_553650871[s_553650871_Idx].push.apply(s_553650871[s_553650871_Idx], HEX24_1476395715(x_553650872));; - - -} - -function addQuoted_553651045(s_553651047, s_553651047_Idx, x_553651048) { - s_553651047[s_553651047_Idx].push.apply(s_553651047[s_553651047_Idx], nimBoolToStr(x_553651048));; - - -} - -function addQuoted_553651284(s_553651286, s_553651286_Idx, x_553651287) { - s_553651286[s_553651286_Idx].push.apply(s_553651286[s_553651286_Idx], reprEnum(x_553651287, NTI1476395029));; - - -} - -function HEX24_553651228(x_553651230) { - var result_553651231 = [[]]; - - result_553651231[0] = nimCopy(null, [40], NTI33554449); - var countHEX60gensym80_553651242 = 0; - if ((0 < countHEX60gensym80_553651242)) { - result_553651231[0].push.apply(result_553651231[0], [44,32]);; - } - - result_553651231[0].push.apply(result_553651231[0], [111,110]);; - result_553651231[0].push.apply(result_553651231[0], [58,32]);; - countHEX60gensym80_553651242 += 1; - addQuoted_553650869(result_553651231, 0, x_553651230["Field0"]); - if ((0 < countHEX60gensym80_553651242)) { - result_553651231[0].push.apply(result_553651231[0], [44,32]);; - } - - result_553651231[0].push.apply(result_553651231[0], [103,114,111,117,112]);; - result_553651231[0].push.apply(result_553651231[0], [58,32]);; - countHEX60gensym80_553651242 += 1; - addQuoted_889193861(result_553651231, 0, x_553651230["Field1"]); - if ((0 < countHEX60gensym80_553651242)) { - result_553651231[0].push.apply(result_553651231[0], [44,32]);; - } - - result_553651231[0].push.apply(result_553651231[0], [103,108,97,115,115]);; - result_553651231[0].push.apply(result_553651231[0], [58,32]);; - countHEX60gensym80_553651242 += 1; - addQuoted_553651284(result_553651231, 0, x_553651230["Field2"]); - result_553651231[0].push.apply(result_553651231[0], [41]);; + result_1476396071 = false; + break BeforeRet; + }; - return result_553651231[0]; + return result_1476396071; } -function addQuoted_553651222(s_553651224, s_553651224_Idx, x_553651225) { - s_553651224[s_553651224_Idx].push.apply(s_553651224[s_553651224_Idx], HEX24_553651228(x_553651225));; +function addWins_1929379860(with_1929379861) { + Label1: { + var power_1929379865 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655082 = 0; + var L_553655083 = (with_1929379861).length; + Label2: { + Label3: while (true) { + if (!(i_553655082 < L_553655083)) break Label3; + power_1929379865 = with_1929379861[chckIndx(i_553655082, 0, (with_1929379861).length - 1)]; + if (!(localStorage.getItem(toJSStr(power_1929379865.technicalName)) !== null)) { + localStorage.setItem(toJSStr(power_1929379865.technicalName), JSON.stringify({wins: 0, losses: 0})); + } + + incrementWins(toJSStr(power_1929379865.technicalName)); + i_553655082 += 1; + if (!(((with_1929379861).length == L_553655083))) { + failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); + } + + } + }; + }; + incrementWins("wins"); } -function collectionToString_553651207(x_553651209, prefix_553651210, separator_553651211, suffix_553651212) { - var result_553651213 = [[]]; - - result_553651213[0] = nimCopy(null, prefix_553651210, NTI33554449); - var firstElement_553651214 = true; +function addLosses_1929379866(with_1929379867) { Label1: { - var value_553651218 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - var i_553656931 = 0; - var L_553656932 = (x_553651209).length; + var power_1929379871 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655086 = 0; + var L_553655087 = (with_1929379867).length; Label2: { Label3: while (true) { - if (!(i_553656931 < L_553656932)) break Label3; - value_553651218 = x_553651209[i_553656931]; - if (firstElement_553651214) { - firstElement_553651214 = false; - } - else { - result_553651213[0].push.apply(result_553651213[0], separator_553651211);; + if (!(i_553655086 < L_553655087)) break Label3; + power_1929379871 = with_1929379867[chckIndx(i_553655086, 0, (with_1929379867).length - 1)]; + if (!(localStorage.getItem(toJSStr(power_1929379871.technicalName)) !== null)) { + localStorage.setItem(toJSStr(power_1929379871.technicalName), JSON.stringify({wins: 0, losses: 0})); } - addQuoted_553651222(result_553651213, 0, value_553651218); - i_553656931 += 1; - if (!(((x_553651209).length == L_553656932))) { + incrementLosses(toJSStr(power_1929379871.technicalName)); + i_553655086 += 1; + if (!(((with_1929379867).length == L_553655087))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - result_553651213[0].push.apply(result_553651213[0], suffix_553651212);; - - return result_553651213[0]; + incrementLosses("losses"); + } -function HEX24_553651203(x_553651205) { - var result_553651206 = []; - - result_553651206 = nimCopy(null, collectionToString_553651207(x_553651205, [64,91], [44,32], [93]), NTI33554449); - - return result_553651206; +function find_553650775(a_553650778, item_553650779) { + var result_553650780 = 0; -} + BeforeRet: { + result_553650780 = 0; + Label1: { + var i_553650784 = 0; + var i_553655090 = 0; + Label2: { + Label3: while (true) { + if (!(i_553655090 < (a_553650778).length)) break Label3; + i_553650784 = a_553650778[chckIndx(i_553655090, 0, (a_553650778).length - 1)]; + if ((i_553650784 == item_553650779)) { + break BeforeRet; + } + + result_553650780 = addInt(result_553650780, 1); + i_553655090 += 1; + } + }; + }; + result_553650780 = (-1); + }; -function addQuoted_553651197(s_553651199, s_553651199_Idx, x_553651200) { - s_553651199[s_553651199_Idx].push.apply(s_553651199[s_553651199_Idx], HEX24_553651203(x_553651200));; + return result_553650780; - } -function HEX24_553650764(x_553650766) { - var result_553650767 = [[]]; +function contains_553650770(a_553650772, item_553650773) { + var result_553650774 = false; - result_553650767[0] = nimCopy(null, [40], NTI33554449); - var countHEX60gensym26_553650778 = 0; - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [105,116,101,109]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - addQuoted_553650793(result_553650767, 0, x_553650766.item); - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [99,111,108,111,114]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - addQuoted_553650813(result_553650767, 0, x_553650766.color); - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [105,110,100,101,120]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - addQuoted_889193861(result_553650767, 0, x_553650766.index); - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [116,105,109,101,115,77,111,118,101,100]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - addQuoted_889193861(result_553650767, 0, x_553650766.timesMoved); - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [112,105,101,99,101,115,84,97,107,101,110]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - addQuoted_889193861(result_553650767, 0, x_553650766.piecesTaken); - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [116,105,108,101]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - addQuoted_553650869(result_553650767, 0, x_553650766.tile); - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [109,111,118,101,115]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - result_553650767[0].push.apply(result_553650767[0], [46,46,46]);; - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [116,97,107,101,115]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - result_553650767[0].push.apply(result_553650767[0], [46,46,46]);; - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [111,110,77,111,118,101]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - result_553650767[0].push.apply(result_553650767[0], [46,46,46]);; - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [111,110,84,97,107,101]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - result_553650767[0].push.apply(result_553650767[0], [46,46,46]);; - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [119,104,101,110,84,97,107,101,110]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - result_553650767[0].push.apply(result_553650767[0], [46,46,46]);; - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [111,110,69,110,100,84,117,114,110]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - result_553650767[0].push.apply(result_553650767[0], [46,46,46]);; - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [111,110,80,114,111,109,111,116,101]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - result_553650767[0].push.apply(result_553650767[0], [46,46,46]);; - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [112,114,111,109,111,116,101,100]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - addQuoted_553651045(result_553650767, 0, x_553650766.promoted); - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [102,105,108,101,80,97,116,104]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - addQuoted_553649236(result_553650767, 0, x_553650766.filePath); - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [99,111,108,111,114,97,98,108,101]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - addQuoted_553651045(result_553650767, 0, x_553650766.colorable); - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [114,111,116,97,116,101]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - addQuoted_553651045(result_553650767, 0, x_553650766.rotate); - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [100,114,117,110,107]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - addQuoted_553651045(result_553650767, 0, x_553650766.drunk); - if ((0 < countHEX60gensym26_553650778)) { - result_553650767[0].push.apply(result_553650767[0], [44,32]);; - } - - result_553650767[0].push.apply(result_553650767[0], [99,97,115,116,115]);; - result_553650767[0].push.apply(result_553650767[0], [58,32]);; - countHEX60gensym26_553650778 += 1; - addQuoted_553651197(result_553650767, 0, x_553650766.casts); - result_553650767[0].push.apply(result_553650767[0], [41]);; + BeforeRet: { + result_553650774 = (0 <= find_553650775(a_553650772, item_553650773)); + break BeforeRet; + }; - return result_553650767[0]; + return result_553650774; } -function formatValue_553650758(result_553650761, result_553650761_Idx, value_553650762) { - formatValue_1728053380(result_553650761, result_553650761_Idx, HEX24_553650764(value_553650762)); +function formatValue_553650756(result_553650759, result_553650759_Idx, value_553650760) { + formatValue_1728053380(result_553650759, result_553650759_Idx, HEX24_1845498085(value_553650760)); } -function endRound_553650663() { +function endRound_553650661() { theState_553648258[0].Field0.turnNumber = addInt(theState_553648258[0].Field0.turnNumber, 1); Label1: { - var i_553650669 = 0; - var j_553650670 = 0; + var i_553650667 = 0; + var j_553650668 = 0; Label2: { - var i_553656874 = 0; - var i_553656875 = 0; + var i_553655036 = 0; + var i_553655037 = 0; Label3: { Label4: while (true) { - if (!(i_553656875 < 8)) break Label4; - i_553656874 = i_553656875; + if (!(i_553655037 < 8)) break Label4; + i_553655036 = i_553655037; Label5: { - var j_553656878 = 0; - var i_553656879 = 0; + var j_553655040 = 0; + var i_553655041 = 0; Label6: { Label7: while (true) { - if (!(i_553656879 < 8)) break Label7; - j_553656878 = i_553656879; - i_553650669 = i_553656874; - j_553650670 = j_553656878; + if (!(i_553655041 < 8)) break Label7; + j_553655040 = i_553655041; + i_553650667 = i_553655036; + j_553650668 = j_553655040; Label8: { - var xHEX60gensym22_553650675 = null; - var colontmp__553656869 = []; - colontmp__553656869 = theBoard_553648257[0][chckIndx(i_553650669, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650670, 0, (theBoard_553648257[0][chckIndx(i_553650669, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].onEndTurn; - var i_553656870 = 0; - var L_553656871 = (colontmp__553656869).length; + var xHEX60gensym22_553650673 = null; + var colontmp__553655031 = []; + colontmp__553655031 = theBoard_553648257[0][chckIndx(i_553650667, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650668, 0, (theBoard_553648257[0][chckIndx(i_553650667, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].onEndTurn; + var i_553655032 = 0; + var L_553655033 = (colontmp__553655031).length; Label9: { Label10: while (true) { - if (!(i_553656870 < L_553656871)) break Label10; - xHEX60gensym22_553650675 = colontmp__553656869[chckIndx(i_553656870, 0, (colontmp__553656869).length - 1)]; - xHEX60gensym22_553650675(theBoard_553648257[0][chckIndx(i_553650669, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650670, 0, (theBoard_553648257[0][chckIndx(i_553650669, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], theBoard_553648257[0], theState_553648258[0]); - i_553656870 += 1; - if (!(((colontmp__553656869).length == L_553656871))) { + if (!(i_553655032 < L_553655033)) break Label10; + xHEX60gensym22_553650673 = colontmp__553655031[chckIndx(i_553655032, 0, (colontmp__553655031).length - 1)]; + xHEX60gensym22_553650673(theBoard_553648257[0][chckIndx(i_553650667, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650668, 0, (theBoard_553648257[0][chckIndx(i_553650667, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], theBoard_553648257[0], theState_553648258[0]); + i_553655032 += 1; + if (!(((colontmp__553655031).length == L_553655033))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - i_553656879 = addInt(i_553656879, 1); + i_553655041 = addInt(i_553655041, 1); } }; }; - i_553656875 = addInt(i_553656875, 1); + i_553655037 = addInt(i_553655037, 1); } }; }; }; Label11: { - var i_553650676 = 0; - var j_553650677 = 0; + var i_553650674 = 0; + var j_553650675 = 0; Label12: { - var i_553656889 = 0; - var i_553656890 = 0; + var i_553655051 = 0; + var i_553655052 = 0; Label13: { Label14: while (true) { - if (!(i_553656890 < 8)) break Label14; - i_553656889 = i_553656890; + if (!(i_553655052 < 8)) break Label14; + i_553655051 = i_553655052; Label15: { - var j_553656893 = 0; - var i_553656894 = 0; + var j_553655055 = 0; + var i_553655056 = 0; Label16: { Label17: while (true) { - if (!(i_553656894 < 8)) break Label17; - j_553656893 = i_553656894; - i_553650676 = i_553656889; - j_553650677 = j_553656893; + if (!(i_553655056 < 8)) break Label17; + j_553655055 = i_553655056; + i_553650674 = i_553655051; + j_553650675 = j_553655055; Label18: { - var ic_553650740 = 0; - var c_553650741 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - var colontmp__553656883 = []; - colontmp__553656883 = theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; - var i_553656885 = 0; - var L_553656886 = (colontmp__553656883).length; + var ic_553650738 = 0; + var c_553650739 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655045 = []; + colontmp__553655045 = theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655047 = 0; + var L_553655048 = (colontmp__553655045).length; Label19: { Label20: while (true) { - if (!(i_553656885 < L_553656886)) break Label20; - ic_553650740 = i_553656885; - c_553650741 = nimCopy(c_553650741, colontmp__553656883[chckIndx(i_553656885, 0, (colontmp__553656883).length - 1)], NTI1476395028); - if ((c_553650741.Field2 == 2)) { - if (isColor_1476396052(theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], 1)) { - theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts[chckIndx(ic_553650740, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts).length - 1)].Field0 = nimCopy(theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts[chckIndx(ic_553650740, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts).length - 1)].Field0, tileAbove_1560281230(theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].tile), NTI1476395011); + if (!(i_553655047 < L_553655048)) break Label20; + ic_553650738 = i_553655047; + c_553650739 = nimCopy(c_553650739, colontmp__553655045[chckIndx(i_553655047, 0, (colontmp__553655045).length - 1)], NTI1476395028); + if ((c_553650739.Field2 == 2)) { + if (isColor_1476396053(theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], 1)) { + theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts[chckIndx(ic_553650738, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts).length - 1)].Field0 = nimCopy(theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts[chckIndx(ic_553650738, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts).length - 1)].Field0, tileAbove_1560281230(theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].tile), NTI1476395011); } else { - theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts[chckIndx(ic_553650740, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts).length - 1)].Field0 = nimCopy(theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts[chckIndx(ic_553650740, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts).length - 1)].Field0, tileBelow_1560281233(theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].tile), NTI1476395011); + theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts[chckIndx(ic_553650738, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts).length - 1)].Field0 = nimCopy(theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts[chckIndx(ic_553650738, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts).length - 1)].Field0, tileBelow_1560281233(theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].tile), NTI1476395011); } } - i_553656885 += 1; - if (!(((colontmp__553656883).length == L_553656886))) { + i_553655047 += 1; + if (!(((colontmp__553655045).length == L_553655048))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(187, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650677, 0, (theBoard_553648257[0][chckIndx(i_553650676, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].drunk = false; - i_553656894 = addInt(i_553656894, 1); + theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650675, 0, (theBoard_553648257[0][chckIndx(i_553650674, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].drunk = false; + i_553655056 = addInt(i_553655056, 1); } }; }; - i_553656890 = addInt(i_553656890, 1); + i_553655052 = addInt(i_553655052, 1); } }; }; }; - piecesChecking_553648281[0] = nimCopy(null, getPiecesChecking_1476396166(theBoard_553648257[0], side_553648239[0]), NTI1476395823); - if (gameIsOver_1476396143(theBoard_553648257[0])) { + piecesChecking_553648281[0] = nimCopy(null, getPiecesChecking_1476396167(theBoard_553648257[0], side_553648239[0]), NTI1476395823); + if (gameIsOver_1476396144(theBoard_553648257[0])) { currentScreen_553648287[0] = 6; if (!(practiceMode_553648282[0])) { - if (alive_1476396067(side_553648239[0], theBoard_553648257[0])) { + if (alive_1476396068(side_553648239[0], theBoard_553648257[0])) { addWins_1929379860(myDrafts_553648245[0]); } else { @@ -12595,41 +12971,41 @@ function endRound_553650663() { } - var test_553650750 = []; + var test_553650748 = []; Label21: { - var i_553650751 = 0; - var j_553650752 = 0; + var i_553650749 = 0; + var j_553650750 = 0; Label22: { - var i_553656900 = 0; - var i_553656901 = 0; + var i_553655062 = 0; + var i_553655063 = 0; Label23: { Label24: while (true) { - if (!(i_553656901 < 8)) break Label24; - i_553656900 = i_553656901; + if (!(i_553655063 < 8)) break Label24; + i_553655062 = i_553655063; Label25: { - var j_553656904 = 0; - var i_553656905 = 0; + var j_553655066 = 0; + var i_553655067 = 0; Label26: { Label27: while (true) { - if (!(i_553656905 < 8)) break Label27; - j_553656904 = i_553656905; - i_553650751 = i_553656900; - j_553650752 = j_553656904; - if (!(!(contains_553651298(test_553650750, theBoard_553648257[0][chckIndx(i_553650751, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650752, 0, (theBoard_553648257[0][chckIndx(i_553650751, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].index)))) { + if (!(i_553655067 < 8)) break Label27; + j_553655066 = i_553655067; + i_553650749 = i_553655062; + j_553650750 = j_553655066; + if (!(!(contains_553650770(test_553650748, theBoard_553648257[0][chckIndx(i_553650749, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650750, 0, (theBoard_553648257[0][chckIndx(i_553650749, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].index)))) { Label28: { - var fmtRes_553650757 = [mnewString(0)]; - formatValue_553650758(fmtRes_553650757, 0, theBoard_553648257[0][chckIndx(i_553650751, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650752, 0, (theBoard_553648257[0][chckIndx(i_553650751, 0, (theBoard_553648257[0]).length - 1)]).length - 1)]); - fmtRes_553650757[0].push.apply(fmtRes_553650757[0], [32,104,97,115,32,115,111,109,101,32,105,115,115,117,101,115]);; + var fmtRes_553650755 = [mnewString(0)]; + formatValue_553650756(fmtRes_553650755, 0, theBoard_553648257[0][chckIndx(i_553650749, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650750, 0, (theBoard_553648257[0][chckIndx(i_553650749, 0, (theBoard_553648257[0]).length - 1)]).length - 1)]); + fmtRes_553650755[0].push.apply(fmtRes_553650755[0], [32,104,97,115,32,115,111,109,101,32,105,115,115,117,101,115]);; }; - failedAssertImpl_268435541(([109,97,105,110,46,110,105,109,40,50,50,51,44,32,57,41,32,96,116,104,101,66,111,97,114,100,91,105,93,91,106,93,46,105,110,100,101,120,32,110,111,116,105,110,32,116,101,115,116,96,32] || []).concat(fmtRes_553650757[0] || [])); + failedAssertImpl_268435541(([109,97,105,110,46,110,105,109,40,50,50,51,44,32,57,41,32,96,116,104,101,66,111,97,114,100,91,105,93,91,106,93,46,105,110,100,101,120,32,110,111,116,105,110,32,116,101,115,116,96,32] || []).concat(fmtRes_553650755[0] || [])); } - test_553650750.push(theBoard_553648257[0][chckIndx(i_553650751, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650752, 0, (theBoard_553648257[0][chckIndx(i_553650751, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].index);; - i_553656905 = addInt(i_553656905, 1); + test_553650748.push(theBoard_553648257[0][chckIndx(i_553650749, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553650750, 0, (theBoard_553648257[0][chckIndx(i_553650749, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].index);; + i_553655067 = addInt(i_553655067, 1); } }; }; - i_553656901 = addInt(i_553656901, 1); + i_553655063 = addInt(i_553655063, 1); } }; }; @@ -12638,20 +13014,20 @@ function endRound_553650663() { } -function otherMove_553652031(d_553652032) { - var data_553652033 = nsuSplitString(d_553652032, [44], (-1)); - var mover_553652034 = nimCopy(null, {Field0: nsuParseInt(data_553652033[chckIndx(2, 0, (data_553652033).length - 1)]), Field1: nsuParseInt(data_553652033[chckIndx(1, 0, (data_553652033).length - 1)])}, NTI1476395011); - var moveTo_553652035 = nimCopy(null, {Field0: nsuParseInt(data_553652033[chckIndx(4, 0, (data_553652033).length - 1)]), Field1: nsuParseInt(data_553652033[chckIndx(3, 0, (data_553652033).length - 1)])}, NTI1476395011); - lastMove_553648276[0] = nimCopy(null, [nimCopy(null, mover_553652034, NTI1476395011), nimCopy(null, moveTo_553652035, NTI1476395011)], NTI553650667); +function otherMove_553651468(d_553651469) { + var data_553651470 = nsuSplitString(d_553651469, [44], (-1)); + var mover_553651471 = nimCopy(null, {Field0: nsuParseInt(data_553651470[chckIndx(2, 0, (data_553651470).length - 1)]), Field1: nsuParseInt(data_553651470[chckIndx(1, 0, (data_553651470).length - 1)])}, NTI1476395011); + var moveTo_553651472 = nimCopy(null, {Field0: nsuParseInt(data_553651470[chckIndx(4, 0, (data_553651470).length - 1)]), Field1: nsuParseInt(data_553651470[chckIndx(3, 0, (data_553651470).length - 1)])}, NTI1476395011); + lastMove_553648276[0] = nimCopy(null, [nimCopy(null, mover_553651471, NTI1476395011), nimCopy(null, moveTo_553651472, NTI1476395011)], NTI553650239); possibleMoves_553648266[0] = nimCopy(null, [], NTI1543504077); possibleTakes_553648271[0] = nimCopy(null, [], NTI1543504077); - rawEcho(d_553652032, data_553652033[chckIndx(0, 0, (data_553652033).length - 1)], HEX24_1476395715(mover_553652034), HEX24_1476395715(moveTo_553652035)); - if (eqStrings(data_553652033[chckIndx(0, 0, (data_553652033).length - 1)], [109,111,118,101])) { - pieceOf_553648356(mover_553652034).onMove(pieceOf_553648356(mover_553652034), moveTo_553652035, theBoard_553648257[0], theState_553648258[0]); + rawEcho(d_553651469, data_553651470[chckIndx(0, 0, (data_553651470).length - 1)], HEX24_1476395716(mover_553651471), HEX24_1476395716(moveTo_553651472)); + if (eqStrings(data_553651470[chckIndx(0, 0, (data_553651470).length - 1)], [109,111,118,101])) { + pieceOf_553648356(mover_553651471).onMove(pieceOf_553648356(mover_553651471), moveTo_553651472, theBoard_553648257[0], theState_553648258[0]); } else { - if (eqStrings(data_553652033[chckIndx(0, 0, (data_553652033).length - 1)], [116,97,107,101])) { - pieceOf_553648356(mover_553652034).onTake(pieceOf_553648356(mover_553652034), moveTo_553652035, theBoard_553648257[0], theState_553648258[0]); + if (eqStrings(data_553651470[chckIndx(0, 0, (data_553651470).length - 1)], [116,97,107,101])) { + pieceOf_553648356(mover_553651471).onTake(pieceOf_553648356(mover_553651471), moveTo_553651472, theBoard_553648257[0], theState_553648258[0]); } } @@ -12922,194 +13298,194 @@ function toGlassType_1946157061(str_1946157062) { } -function newGroup_1476395502(s_1476395503) { - var result_1476395504 = 0; +function newGroup_1476395503(s_1476395504) { + var result_1476395505 = 0; BeforeRet: { - s_1476395503.Field0.nextGroup = addInt(s_1476395503.Field0.nextGroup, 1); - result_1476395504 = s_1476395503.Field0.nextGroup; + s_1476395504.Field0.nextGroup = addInt(s_1476395504.Field0.nextGroup, 1); + result_1476395505 = s_1476395504.Field0.nextGroup; break BeforeRet; }; - return result_1476395504; + return result_1476395505; } -function newSeq_553651950(len_553651952) { - var result_553651953 = []; +function newSeq_553651422(len_553651424) { + var result_553651425 = []; - result_553651953 = new Array(len_553651952); for (var i = 0 ; i < len_553651952 ; ++i) { result_553651953[i] = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; } - return result_553651953; + result_553651425 = new Array(len_553651424); for (var i = 0 ; i < len_553651424 ; ++i) { result_553651425[i] = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; } + return result_553651425; } -function isNone_553652164(self_553652166) { - var result_553652167 = false; +function isNone_553651601(self_553651603) { + var result_553651604 = false; - result_553652167 = !(self_553652166.has); + result_553651604 = !(self_553651603.has); - return result_553652167; + return result_553651604; } -function get_553652156(self_553652158) { - var result_553652159 = null; +function get_553651593(self_553651595) { + var result_553651596 = null; BeforeRet: { - if (isNone_553652164(self_553652158)) { + if (isNone_553651601(self_553651595)) { raiseException({message: [67,97,110,39,116,32,111,98,116,97,105,110,32,97,32,118,97,108,117,101,32,102,114,111,109,32,97,32,96,110,111,110,101,96], parent: null, m_type: NTI1493172247, name: null, trace: [], up: null}, "UnpackDefect"); } - result_553652159 = self_553652158.val; + result_553651596 = self_553651595.val; break BeforeRet; }; - return result_553652159; + return result_553651596; } -function otherGlass_553652096(d_553652097) { +function otherGlass_553651533(d_553651534) { var Temporary1; var Temporary27; - var data_553652098 = nsuSplitString(d_553652097, [44], (-1)); - if (eqStrings(data_553652098[chckIndx(0, 0, (data_553652098).length - 1)], [99,97,115,116,105,110,103,115,116,97,114,116])) { - (Temporary1 = theBoard_553648257[0][chckIndx(nsuParseInt(data_553652098[chckIndx(1, 0, (data_553652098).length - 1)]), 0, (theBoard_553648257[0]).length - 1)], Temporary1)[chckIndx(nsuParseInt(data_553652098[chckIndx(2, 0, (data_553652098).length - 1)]), 0, (Temporary1).length - 1)].casts.push({Field0: nimCopy(null, {Field0: nsuParseInt(data_553652098[chckIndx(4, 0, (data_553652098).length - 1)]), Field1: nsuParseInt(data_553652098[chckIndx(3, 0, (data_553652098).length - 1)])}, NTI1476395011), Field1: nsuParseInt(data_553652098[chckIndx(5, 0, (data_553652098).length - 1)]), Field2: toGlassType_1946157061(data_553652098[chckIndx(6, 0, (data_553652098).length - 1)])});; - var _ = newGroup_1476395502(theState_553648258[0]); + var data_553651535 = nsuSplitString(d_553651534, [44], (-1)); + if (eqStrings(data_553651535[chckIndx(0, 0, (data_553651535).length - 1)], [99,97,115,116,105,110,103,115,116,97,114,116])) { + (Temporary1 = theBoard_553648257[0][chckIndx(nsuParseInt(data_553651535[chckIndx(1, 0, (data_553651535).length - 1)]), 0, (theBoard_553648257[0]).length - 1)], Temporary1)[chckIndx(nsuParseInt(data_553651535[chckIndx(2, 0, (data_553651535).length - 1)]), 0, (Temporary1).length - 1)].casts.push({Field0: nimCopy(null, {Field0: nsuParseInt(data_553651535[chckIndx(4, 0, (data_553651535).length - 1)]), Field1: nsuParseInt(data_553651535[chckIndx(3, 0, (data_553651535).length - 1)])}, NTI1476395011), Field1: nsuParseInt(data_553651535[chckIndx(5, 0, (data_553651535).length - 1)]), Field2: toGlassType_1946157061(data_553651535[chckIndx(6, 0, (data_553651535).length - 1)])});; + var _ = newGroup_1476395503(theState_553648258[0]); } else { - if (eqStrings(data_553652098[chckIndx(0, 0, (data_553652098).length - 1)], [99,97,115,116,105,110,103,99,97,110,99,101,108])) { + if (eqStrings(data_553651535[chckIndx(0, 0, (data_553651535).length - 1)], [99,97,115,116,105,110,103,99,97,110,99,101,108])) { turn_553648240[0] = true; rawEcho([116,117,114,110,32,101,113,117,97,108,115,32,116,114,117,101,58,32,111,116,104,101,114,103,108,97,115,115,32,99,97,110,99,101,108]); Label2: { - var i_553652110 = 0; - var j_553652111 = 0; + var i_553651547 = 0; + var j_553651548 = 0; Label3: { - var i_553656941 = 0; - var i_553656942 = 0; + var i_553655099 = 0; + var i_553655100 = 0; Label4: { Label5: while (true) { - if (!(i_553656942 < 8)) break Label5; - i_553656941 = i_553656942; + if (!(i_553655100 < 8)) break Label5; + i_553655099 = i_553655100; Label6: { - var j_553656945 = 0; - var i_553656946 = 0; + var j_553655103 = 0; + var i_553655104 = 0; Label7: { Label8: while (true) { - if (!(i_553656946 < 8)) break Label8; - j_553656945 = i_553656946; - i_553652110 = i_553656941; - j_553652111 = j_553656945; - var resultHEX60gensym163_553652116 = newSeq_553651950(0); + if (!(i_553655104 < 8)) break Label8; + j_553655103 = i_553655104; + i_553651547 = i_553655099; + j_553651548 = j_553655103; + var resultHEX60gensym97_553651553 = newSeq_553651422(0); Label9: { - var it_553652120 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - var colontmp__553656936 = []; - colontmp__553656936 = theBoard_553648257[0][chckIndx(i_553652110, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652111, 0, (theBoard_553648257[0][chckIndx(i_553652110, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; - var i_553656937 = 0; - var L_553656938 = (colontmp__553656936).length; + var it_553651557 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655094 = []; + colontmp__553655094 = theBoard_553648257[0][chckIndx(i_553651547, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651548, 0, (theBoard_553648257[0][chckIndx(i_553651547, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655095 = 0; + var L_553655096 = (colontmp__553655094).length; Label10: { Label11: while (true) { - if (!(i_553656937 < L_553656938)) break Label11; - it_553652120 = colontmp__553656936[chckIndx(i_553656937, 0, (colontmp__553656936).length - 1)]; - if (!((it_553652120.Field1 == nsuParseInt(data_553652098[chckIndx(1, 0, (data_553652098).length - 1)])))) { - var Temporary12 = nimCopy(null, it_553652120, NTI1476395028); - resultHEX60gensym163_553652116.push(Temporary12);; + if (!(i_553655095 < L_553655096)) break Label11; + it_553651557 = colontmp__553655094[chckIndx(i_553655095, 0, (colontmp__553655094).length - 1)]; + if (!((it_553651557.Field1 == nsuParseInt(data_553651535[chckIndx(1, 0, (data_553651535).length - 1)])))) { + var Temporary12 = nimCopy(null, it_553651557, NTI1476395028); + resultHEX60gensym97_553651553.push(Temporary12);; } - i_553656937 += 1; - if (!(((colontmp__553656936).length == L_553656938))) { + i_553655095 += 1; + if (!(((colontmp__553655094).length == L_553655096))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - theBoard_553648257[0][chckIndx(i_553652110, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652111, 0, (theBoard_553648257[0][chckIndx(i_553652110, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym163_553652116, NTI553650598); - i_553656946 = addInt(i_553656946, 1); + theBoard_553648257[0][chckIndx(i_553651547, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651548, 0, (theBoard_553648257[0][chckIndx(i_553651547, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym97_553651553, NTI553650189); + i_553655104 = addInt(i_553655104, 1); } }; }; - i_553656942 = addInt(i_553656942, 1); + i_553655100 = addInt(i_553655100, 1); } }; }; }; } else { - if (eqStrings(data_553652098[chckIndx(0, 0, (data_553652098).length - 1)], [99,97,115,116,105,110,103,99,111,109,112,108,101,116,101])) { + if (eqStrings(data_553651535[chckIndx(0, 0, (data_553651535).length - 1)], [99,97,115,116,105,110,103,99,111,109,112,108,101,116,101])) { turn_553648240[0] = true; rawEcho([116,117,114,110,32,101,113,117,97,108,115,32,116,114,117,101,58,32,111,116,104,101,114,103,108,97,115,115,32,99,111,109,112,108,101,116,101]); Label13: { - var i_553652125 = 0; - var j_553652126 = 0; + var i_553651562 = 0; + var j_553651563 = 0; Label14: { - var i_553656960 = 0; - var i_553656961 = 0; + var i_553655118 = 0; + var i_553655119 = 0; Label15: { Label16: while (true) { - if (!(i_553656961 < 8)) break Label16; - i_553656960 = i_553656961; + if (!(i_553655119 < 8)) break Label16; + i_553655118 = i_553655119; Label17: { - var j_553656964 = 0; - var i_553656965 = 0; + var j_553655122 = 0; + var i_553655123 = 0; Label18: { Label19: while (true) { - if (!(i_553656965 < 8)) break Label19; - j_553656964 = i_553656965; - i_553652125 = i_553656960; - j_553652126 = j_553656964; + if (!(i_553655123 < 8)) break Label19; + j_553655122 = i_553655123; + i_553651562 = i_553655118; + j_553651563 = j_553655122; Label20: { - var c_553652130 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - var colontmp__553656955 = []; - colontmp__553656955 = theBoard_553648257[0][chckIndx(i_553652125, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652126, 0, (theBoard_553648257[0][chckIndx(i_553652125, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; - var i_553656956 = 0; - var L_553656957 = (colontmp__553656955).length; + var c_553651567 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655113 = []; + colontmp__553655113 = theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651563, 0, (theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655114 = 0; + var L_553655115 = (colontmp__553655113).length; Label21: { Label22: while (true) { - if (!(i_553656956 < L_553656957)) break Label22; - c_553652130 = colontmp__553656955[chckIndx(i_553656956, 0, (colontmp__553656955).length - 1)]; - if ((c_553652130.Field1 == nsuParseInt(data_553652098[chckIndx(1, 0, (data_553652098).length - 1)]))) { - var resultHEX60gensym165_553652135 = newSeq_553651950(0); + if (!(i_553655114 < L_553655115)) break Label22; + c_553651567 = colontmp__553655113[chckIndx(i_553655114, 0, (colontmp__553655113).length - 1)]; + if ((c_553651567.Field1 == nsuParseInt(data_553651535[chckIndx(1, 0, (data_553651535).length - 1)]))) { + var resultHEX60gensym99_553651572 = newSeq_553651422(0); Label23: { - var it_553652139 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - var colontmp__553656951 = []; - colontmp__553656951 = theBoard_553648257[0][chckIndx(i_553652125, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652126, 0, (theBoard_553648257[0][chckIndx(i_553652125, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; - var i_553656952 = 0; - var L_553656953 = (colontmp__553656951).length; + var it_553651576 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655109 = []; + colontmp__553655109 = theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651563, 0, (theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655110 = 0; + var L_553655111 = (colontmp__553655109).length; Label24: { Label25: while (true) { - if (!(i_553656952 < L_553656953)) break Label25; - it_553652139 = colontmp__553656951[chckIndx(i_553656952, 0, (colontmp__553656951).length - 1)]; - if (!((it_553652139.Field1 == c_553652130.Field1))) { - var Temporary26 = nimCopy(null, it_553652139, NTI1476395028); - resultHEX60gensym165_553652135.push(Temporary26);; + if (!(i_553655110 < L_553655111)) break Label25; + it_553651576 = colontmp__553655109[chckIndx(i_553655110, 0, (colontmp__553655109).length - 1)]; + if (!((it_553651576.Field1 == c_553651567.Field1))) { + var Temporary26 = nimCopy(null, it_553651576, NTI1476395028); + resultHEX60gensym99_553651572.push(Temporary26);; } - i_553656952 += 1; - if (!(((colontmp__553656951).length == L_553656953))) { + i_553655110 += 1; + if (!(((colontmp__553655109).length == L_553655111))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - theBoard_553648257[0][chckIndx(i_553652125, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652126, 0, (theBoard_553648257[0][chckIndx(i_553652125, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym165_553652135, NTI553650598); - get_553652156((Temporary27 = theState_553648258[0].Field1[chckIndx(otherSide_1476396060(side_553648239[0]), 0, (theState_553648258[0].Field1).length - 1)].glass, Temporary27)[chckIndx(c_553652130.Field2, 0, (Temporary27).length - 1)]).Field1(theBoard_553648257[0][chckIndx(i_553652125, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652126, 0, (theBoard_553648257[0][chckIndx(i_553652125, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], c_553652130.Field0, theBoard_553648257[0], theState_553648258[0]); + theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651563, 0, (theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym99_553651572, NTI553650189); + get_553651593((Temporary27 = theState_553648258[0].Field1[chckIndx(otherSide_1476396061(side_553648239[0]), 0, (theState_553648258[0].Field1).length - 1)].glass, Temporary27)[chckIndx(c_553651567.Field2, 0, (Temporary27).length - 1)]).Field1(theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651563, 0, (theBoard_553648257[0][chckIndx(i_553651562, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], c_553651567.Field0, theBoard_553648257[0], theState_553648258[0]); } - i_553656956 += 1; - if (!(((colontmp__553656955).length == L_553656957))) { + i_553655114 += 1; + if (!(((colontmp__553655113).length == L_553655115))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - i_553656965 = addInt(i_553656965, 1); + i_553655123 = addInt(i_553655123, 1); } }; }; - i_553656961 = addInt(i_553656961, 1); + i_553655119 = addInt(i_553655119, 1); } }; }; @@ -13120,41 +13496,41 @@ function otherGlass_553652096(d_553652097) { } -function otherAction_553652188(d_553652189) { - var data_553652190 = nsuSplitString(d_553652189, [44], (-1)); - if (eqStrings(data_553652190[chckIndx(0, 0, (data_553652190).length - 1)], [98,117,121])) { - otherBuy_553651978(d_553652189); - endRound_553650663(); +function otherAction_553651625(d_553651626) { + var data_553651627 = nsuSplitString(d_553651626, [44], (-1)); + if (eqStrings(data_553651627[chckIndx(0, 0, (data_553651627).length - 1)], [98,117,121])) { + otherBuy_553651450(d_553651626); + endRound_553650661(); } else { - if ((eqStrings(data_553652190[chckIndx(0, 0, (data_553652190).length - 1)], [109,111,118,101]) || eqStrings(data_553652190[chckIndx(0, 0, (data_553652190).length - 1)], [116,97,107,101]))) { + if ((eqStrings(data_553651627[chckIndx(0, 0, (data_553651627).length - 1)], [109,111,118,101]) || eqStrings(data_553651627[chckIndx(0, 0, (data_553651627).length - 1)], [116,97,107,101]))) { turn_553648240[0] = true; rawEcho([111,116,104,101,114,97,99,116,105,111,110,32,111,102,32,109,111,118,101,47,116,97,107,101,58,32,116,117,114,110,32,101,113,117,97,108,115,32,116,114,117,101]); - otherMove_553652031(d_553652189); - endRound_553650663(); + otherMove_553651468(d_553651626); + endRound_553650661(); } else { - if ((toJSStr(data_553652190[chckIndx(0, 0, (data_553652190).length - 1)]).indexOf("casting")>=0)) { - otherGlass_553652096(d_553652189); + if ((toJSStr(data_553651627[chckIndx(0, 0, (data_553651627).length - 1)]).indexOf("casting")>=0)) { + otherGlass_553651533(d_553651626); } else { - if (eqStrings(data_553652190[chckIndx(0, 0, (data_553652190).length - 1)], [112,97,115,115])) { + if (eqStrings(data_553651627[chckIndx(0, 0, (data_553651627).length - 1)], [112,97,115,115])) { turn_553648240[0] = true; rawEcho([111,116,104,101,114,97,99,116,105,111,110,32,111,102,32,112,97,115,115,58,32,116,117,114,110,32,101,113,117,97,108,115,32,116,114,117,101]); - endRound_553650663(); + endRound_553650661(); } }}} } -function hostLogic_553652338(d_553652339, m_553652340) { - rawEcho(reprEnum(m_553652340, NTI1577058309), [32,111,102,32], d_553652339, [10]); - switch (m_553652340) { +function hostLogic_553651775(d_553651776, m_553651777) { + rawEcho(reprEnum(m_553651777, NTI1577058309), [32,111,102,32], d_553651776, [10]); + switch (m_553651777) { case 0: - var colontmp__553656847 = true; - var colontmp__553656848 = toJSStr(d_553652339); - roomId_553648232[0] = nimCopy(roomId_553648232[0], {Field0: colontmp__553656847, Field1: colontmp__553656848}, NTI553648169); + var colontmp__553655010 = true; + var colontmp__553655011 = toJSStr(d_553651776); + roomId_553648232[0] = nimCopy(roomId_553648232[0], {Field0: colontmp__553655010, Field1: colontmp__553655011}, NTI553648169); side_553648239[0] = 1; break; case 1: @@ -13164,15 +13540,15 @@ function hostLogic_553652338(d_553652339, m_553652340) { draftTier_553648255[0] = randomTier_1728054247({Field0: 50, Field1: 36, Field2: 12, Field3: 2}); break; case 3: - var x_553652344 = nsuSplitString(d_553652339, [44], (-1)); - if (eqStrings(x_553652344[chckIndx(0, 0, (x_553652344).length - 1)], [109,121])) { + var x_553651781 = nsuSplitString(d_553651776, [44], (-1)); + if (eqStrings(x_553651781[chckIndx(0, 0, (x_553651781).length - 1)], [109,121])) { turn_553648240[0] = true; - var Temporary1 = nimCopy(null, powers_1728053321[0][chckIndx(nsuParseInt(x_553652344[chckIndx(1, 0, (x_553652344).length - 1)]), 0, (powers_1728053321[0]).length - 1)], NTI1728053253); + var Temporary1 = nimCopy(null, powers_1728053321[0][chckIndx(nsuParseInt(x_553651781[chckIndx(1, 0, (x_553651781).length - 1)]), 0, (powers_1728053321[0]).length - 1)], NTI1728053253); opponentDrafts_553648250[0].push(Temporary1);; if ((1 <= draftsLeft_553648254[0])) { draftsLeft_553648254[0] = subInt(draftsLeft_553648254[0], 1); draftTier_553648255[0] = randomTier_1728054247({Field0: 50, Field1: 36, Field2: 12, Field3: 2}); - draft_553652266(HEX26_1728054285(myDrafts_553648245[0], opponentDrafts_553648250[0]), myDrafts_553648245[0]); + draft_553651703(HEX26_1728054285(myDrafts_553648245[0], opponentDrafts_553648250[0]), myDrafts_553648245[0]); } else { execute_1728054367(myDrafts_553648245[0], opponentDrafts_553648250[0], side_553648239[0], theBoard_553648257[0], theState_553648258[0]); @@ -13184,10 +13560,10 @@ function hostLogic_553652338(d_553652339, m_553652340) { break; case 6: - otherAction_553652188(d_553652339); + otherAction_553651625(d_553651776); break; case 4: - if ((eqStrings(d_553652339, [100,105,115,99,111,110,110]) || eqStrings(d_553652339, [101,120,105,116]))) { + if ((eqStrings(d_553651776, [100,105,115,99,111,110,110]) || eqStrings(d_553651776, [101,120,105,116]))) { currentScreen_553648287[0] = 8; } else { @@ -13206,15 +13582,15 @@ function hostLogic_553652338(d_553652339, m_553652340) { } -function createLobby_553652648() { +function createLobby_553652085() { -function HEX3Aanonymous_553652658(__553652659, __553652660) { +function HEX3Aanonymous_553652095(__553652096, __553652097) { currentScreen_553648287[0] = 2; } -function HEX3Aanonymous_553652661(ev_553652662, __553652663) { +function HEX3Aanonymous_553652098(ev_553652099, __553652100) { initSelectedSubPower_553648467(); rawEcho([115,101,116,116,105,110,103,32,115,99,114,101,101,110,32,116,111,32,83,101,101,32,80,111,119,101,114]); currentScreen_553648287[0] = 11; @@ -13222,59 +13598,59 @@ function HEX3Aanonymous_553652661(ev_553652662, __553652663) { } -function HEX3Aanonymous_553652664(ev_553652665, __553652666) { +function HEX3Aanonymous_553652101(ev_553652102, __553652103) { if (!((peer_553648238[0].Field1 == null))) { peer_553648238[0].Field1(); } - peer_553648238[0] = nimCopy(peer_553648238[0], newHost_1577058350(hostLogic_553652338), NTI553648171); + peer_553648238[0] = nimCopy(peer_553648238[0], newHost_1577058350(hostLogic_553651775), NTI553648171); currentScreen_553648287[0] = 1; } -function HEX3Aanonymous_553652718(ev_553652719, __553652720) { +function HEX3Aanonymous_553652155(ev_553652156, __553652157) { currentScreen_553648287[0] = 10; } - var result_553652649 = null; - - var tmp_553652650 = tree_754975616(44, []); - tmp_553652650.class = "start-column height-100"; - var tmp_553652651 = tree_754975616(44, []); - tmp_553652651.class = "main"; - var tmp_553652652 = tree_754975616(44, []); - tmp_553652652.class = "start-column"; - var tmp_553652653 = tree_754975616(195, []); - tmp_553652653.class = " menu-button "; - add_754975552(tmp_553652653, text_754975684([74,111,105,110,32,97,32,82,111,111,109])); - addEventHandler_721422102(tmp_553652653, 0, HEX3Aanonymous_553652658, kxi__); - add_754975552(tmp_553652652, tmp_553652653); - var tmp_553652654 = tree_754975616(195, []); - tmp_553652654.class = " menu-button "; - add_754975552(tmp_553652654, text_754975684([83,101,101,32,80,111,119,101,114,115])); - addEventHandler_721422102(tmp_553652654, 0, HEX3Aanonymous_553652661, kxi__); - add_754975552(tmp_553652652, tmp_553652654); - add_754975552(tmp_553652651, tmp_553652652); - var tmp_553652655 = tree_754975616(44, []); - tmp_553652655.class = "start-column"; - var tmp_553652656 = tree_754975616(195, []); - tmp_553652656.class = " menu-button "; - add_754975552(tmp_553652656, text_754975684([67,114,101,97,116,101,32,97,32,82,111,111,109])); - addEventHandler_721422102(tmp_553652656, 0, HEX3Aanonymous_553652664, kxi__); - add_754975552(tmp_553652655, tmp_553652656); - var tmp_553652657 = tree_754975616(195, []); - tmp_553652657.class = " menu-button "; - add_754975552(tmp_553652657, text_754975684([79,116,104,101,114])); - addEventHandler_721422102(tmp_553652657, 0, HEX3Aanonymous_553652718, kxi__); - add_754975552(tmp_553652655, tmp_553652657); - add_754975552(tmp_553652651, tmp_553652655); - add_754975552(tmp_553652650, tmp_553652651); - result_553652649 = tmp_553652650; - - return result_553652649; + var result_553652086 = null; + + var tmp_553652087 = tree_754975616(44, []); + tmp_553652087.class = "start-column height-100"; + var tmp_553652088 = tree_754975616(44, []); + tmp_553652088.class = "main"; + var tmp_553652089 = tree_754975616(44, []); + tmp_553652089.class = "start-column"; + var tmp_553652090 = tree_754975616(195, []); + tmp_553652090.class = " menu-button "; + add_754975552(tmp_553652090, text_754975684([74,111,105,110,32,97,32,82,111,111,109])); + addEventHandler_721422102(tmp_553652090, 0, HEX3Aanonymous_553652095, kxi__); + add_754975552(tmp_553652089, tmp_553652090); + var tmp_553652091 = tree_754975616(195, []); + tmp_553652091.class = " menu-button "; + add_754975552(tmp_553652091, text_754975684([83,101,101,32,80,111,119,101,114,115])); + addEventHandler_721422102(tmp_553652091, 0, HEX3Aanonymous_553652098, kxi__); + add_754975552(tmp_553652089, tmp_553652091); + add_754975552(tmp_553652088, tmp_553652089); + var tmp_553652092 = tree_754975616(44, []); + tmp_553652092.class = "start-column"; + var tmp_553652093 = tree_754975616(195, []); + tmp_553652093.class = " menu-button "; + add_754975552(tmp_553652093, text_754975684([67,114,101,97,116,101,32,97,32,82,111,111,109])); + addEventHandler_721422102(tmp_553652093, 0, HEX3Aanonymous_553652101, kxi__); + add_754975552(tmp_553652092, tmp_553652093); + var tmp_553652094 = tree_754975616(195, []); + tmp_553652094.class = " menu-button "; + add_754975552(tmp_553652094, text_754975684([79,116,104,101,114])); + addEventHandler_721422102(tmp_553652094, 0, HEX3Aanonymous_553652155, kxi__); + add_754975552(tmp_553652092, tmp_553652094); + add_754975552(tmp_553652088, tmp_553652092); + add_754975552(tmp_553652087, tmp_553652088); + result_553652086 = tmp_553652087; + + return result_553652086; } @@ -13287,26 +13663,26 @@ function text_754975687(s_754975688) { } -function createRoomMenu_553652737() { - var result_553652738 = null; +function createRoomMenu_553652174() { + var result_553652175 = null; - var tmp_553652739 = tree_754975616(44, []); - tmp_553652739.class = "main"; + var tmp_553652176 = tree_754975616(44, []); + tmp_553652176.class = "main"; if (!(roomId_553648232[0].Field0)) { - add_754975552(tmp_553652739, text_754975684([67,114,101,97,116,105,110,103,32,114,111,111,109,32,107,101,121])); + add_754975552(tmp_553652176, text_754975684([67,114,101,97,116,105,110,103,32,114,111,111,109,32,107,101,121])); } else { - var tmp_553652740 = tree_754975616(22, []); - add_754975552(tmp_553652740, text_754975684([82,111,111,109,32,75,101,121,58,32])); - add_754975552(tmp_553652739, tmp_553652740); - var tmp_553652741 = tree_754975616(72, []); - add_754975552(tmp_553652739, tmp_553652741); - add_754975552(tmp_553652739, text_754975687(roomId_553648232[0].Field1)); + var tmp_553652177 = tree_754975616(22, []); + add_754975552(tmp_553652177, text_754975684([82,111,111,109,32,75,101,121,58,32])); + add_754975552(tmp_553652176, tmp_553652177); + var tmp_553652178 = tree_754975616(72, []); + add_754975552(tmp_553652176, tmp_553652178); + add_754975552(tmp_553652176, text_754975687(roomId_553648232[0].Field1)); } - result_553652738 = tmp_553652739; + result_553652175 = tmp_553652176; - return result_553652738; + return result_553652175; } @@ -13355,13 +13731,13 @@ function len_754975743(a_754975744) { function toString_754975748(n_754975749, result_754975750, result_754975750_Idx, indent_754975751) { Label1: { var i_754975756 = 0; - var res_553656970 = 1; + var res_553655128 = 1; Label2: { Label3: while (true) { - if (!(res_553656970 <= indent_754975751)) break Label3; - i_754975756 = res_553656970; + if (!(res_553655128 <= indent_754975751)) break Label3; + i_754975756 = res_553655128; addChar(result_754975750[result_754975750_Idx], 32);; - res_553656970 = addInt(res_553656970, 1); + res_553655128 = addInt(res_553655128, 1); } }; }; @@ -13382,18 +13758,18 @@ function toString_754975748(n_754975749, result_754975750, result_754975750_Idx, var k_754975760 = null; var v_754975761 = null; Label5: { - var i_553656974 = 0; - var colontmp__553656975 = 0; - colontmp__553656975 = subInt((n_754975749.attrs).length, 2); - var res_553656976 = 0; + var i_553655132 = 0; + var colontmp__553655133 = 0; + colontmp__553655133 = subInt((n_754975749.attrs).length, 2); + var res_553655134 = 0; Label6: { Label7: while (true) { - if (!(res_553656976 <= colontmp__553656975)) break Label7; - i_553656974 = res_553656976; - k_754975760 = n_754975749.attrs[chckIndx(i_553656974, 0, (n_754975749.attrs).length - 1)]; - v_754975761 = n_754975749.attrs[chckIndx(addInt(i_553656974, 1), 0, (n_754975749.attrs).length - 1)]; + if (!(res_553655134 <= colontmp__553655133)) break Label7; + i_553655132 = res_553655134; + k_754975760 = n_754975749.attrs[chckIndx(i_553655132, 0, (n_754975749.attrs).length - 1)]; + v_754975761 = n_754975749.attrs[chckIndx(addInt(i_553655132, 1), 0, (n_754975749.attrs).length - 1)]; result_754975750[result_754975750_Idx].push.apply(result_754975750[result_754975750_Idx], ([32] || []).concat(cstrToNimstr(k_754975760) || [],[32,61,32] || [],cstrToNimstr(v_754975761) || []));; - res_553656976 = addInt(res_553656976, 2); + res_553655134 = addInt(res_553655134, 2); } }; }; @@ -13411,17 +13787,17 @@ function toString_754975748(n_754975749, result_754975750, result_754975750_Idx, Label8: { var child_754975767 = null; Label9: { - var i_553656980 = 0; - var colontmp__553656981 = 0; - colontmp__553656981 = (n_754975749.kids).length; - var i_553656982 = 0; + var i_553655138 = 0; + var colontmp__553655139 = 0; + colontmp__553655139 = (n_754975749.kids).length; + var i_553655140 = 0; Label10: { Label11: while (true) { - if (!(i_553656982 < colontmp__553656981)) break Label11; - i_553656980 = i_553656982; - child_754975767 = n_754975749.kids[chckIndx(i_553656980, 0, (n_754975749.kids).length - 1)]; + if (!(i_553655140 < colontmp__553655139)) break Label11; + i_553655138 = i_553655140; + child_754975767 = n_754975749.kids[chckIndx(i_553655138, 0, (n_754975749.kids).length - 1)]; toString_754975748(child_754975767, result_754975750, result_754975750_Idx, addInt(indent_754975751, 2)); - i_553656982 = addInt(i_553656982, 1); + i_553655140 = addInt(i_553655140, 1); } }; }; @@ -13430,13 +13806,13 @@ function toString_754975748(n_754975749, result_754975750, result_754975750_Idx, Label12: { var i_754975772 = 0; - var res_553656985 = 1; + var res_553655143 = 1; Label13: { Label14: while (true) { - if (!(res_553656985 <= indent_754975751)) break Label14; - i_754975772 = res_553656985; + if (!(res_553655143 <= indent_754975751)) break Label14; + i_754975772 = res_553655143; addChar(result_754975750[result_754975750_Idx], 32);; - res_553656985 = addInt(res_553656985, 1); + res_553655143 = addInt(res_553655143, 1); } }; }; @@ -13525,31 +13901,31 @@ function HEX3Aanonymous_1577058686(data_1577058687) { } -function HEX5BHEX5D_553652407(s_553652411, x_553652412) { - var result_553652413 = []; +function HEX5BHEX5D_553651844(s_553651848, x_553651849) { + var result_553651850 = []; - var a_553652415 = x_553652412.a; - var L_553652420 = addInt(subInt(subInt((s_553652411).length, x_553652412.b), a_553652415), 1); - result_553652413 = new Array(chckRange(L_553652420, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_553652420, 0, 2147483647) ; ++i) { result_553652413[i] = []; } Label1: { - var i_553652429 = 0; - var i_553656994 = 0; + var a_553651852 = x_553651849.a; + var L_553651857 = addInt(subInt(subInt((s_553651848).length, x_553651849.b), a_553651852), 1); + result_553651850 = new Array(chckRange(L_553651857, 0, 2147483647)); for (var i = 0 ; i < chckRange(L_553651857, 0, 2147483647) ; ++i) { result_553651850[i] = []; } Label1: { + var i_553651866 = 0; + var i_553655152 = 0; Label2: { Label3: while (true) { - if (!(i_553656994 < L_553652420)) break Label3; - i_553652429 = i_553656994; - result_553652413[chckIndx(i_553652429, 0, (result_553652413).length - 1)] = nimCopy(null, s_553652411[chckIndx(addInt(i_553652429, a_553652415), 0, (s_553652411).length - 1)], NTI33554449); - i_553656994 = addInt(i_553656994, 1); + if (!(i_553655152 < L_553651857)) break Label3; + i_553651866 = i_553655152; + result_553651850[chckIndx(i_553651866, 0, (result_553651850).length - 1)] = nimCopy(null, s_553651848[chckIndx(addInt(i_553651866, a_553651852), 0, (s_553651848).length - 1)], NTI33554449); + i_553655152 = addInt(i_553655152, 1); } }; }; - return result_553652413; + return result_553651850; } -function joinLogic_553652383(d_553652384, m_553652385) { - rawEcho(reprEnum(m_553652385, NTI1577058309), [32,111,102,32], d_553652384, [10]); - switch (m_553652385) { +function joinLogic_553651820(d_553651821, m_553651822) { + rawEcho(reprEnum(m_553651822, NTI1577058309), [32,111,102,32], d_553651821, [10]); + switch (m_553651822) { case 2: currentScreen_553648287[0] = 4; side_553648239[0] = 0; @@ -13571,32 +13947,32 @@ function joinLogic_553652383(d_553652384, m_553652385) { break; case 3: - var x_553652389 = nsuSplitString(d_553652384, [44], (-1)); - if (eqStrings(d_553652384, [115,116,97,114,116])) { + var x_553651826 = nsuSplitString(d_553651821, [44], (-1)); + if (eqStrings(d_553651821, [115,116,97,114,116])) { currentScreen_553648287[0] = 5; } else { - if (eqStrings(x_553652389[chckIndx(0, 0, (x_553652389).length - 1)], [109,121])) { - var Temporary1 = nimCopy(null, powers_1728053321[0][chckIndx(nsuParseInt(x_553652389[chckIndx(1, 0, (x_553652389).length - 1)]), 0, (powers_1728053321[0]).length - 1)], NTI1728053253); + if (eqStrings(x_553651826[chckIndx(0, 0, (x_553651826).length - 1)], [109,121])) { + var Temporary1 = nimCopy(null, powers_1728053321[0][chckIndx(nsuParseInt(x_553651826[chckIndx(1, 0, (x_553651826).length - 1)]), 0, (powers_1728053321[0]).length - 1)], NTI1728053253); opponentDrafts_553648250[0].push(Temporary1);; } else { - if (eqStrings(x_553652389[chckIndx(0, 0, (x_553652389).length - 1)], [103,111])) { + if (eqStrings(x_553651826[chckIndx(0, 0, (x_553651826).length - 1)], [103,111])) { draftOptions_553648252[0] = nimCopy(null, [], NTI1728053886); Label2: { - var i_553652451 = []; - var colontmp__553656988 = []; - colontmp__553656988 = HEX5BHEX5D_553652407(x_553652389, HEX2EHEX2E_1090519145(1, 1)); - var i_553656990 = 0; - var L_553656991 = (colontmp__553656988).length; + var i_553651888 = []; + var colontmp__553655146 = []; + colontmp__553655146 = HEX5BHEX5D_553651844(x_553651826, HEX2EHEX2E_1090519145(1, 1)); + var i_553655148 = 0; + var L_553655149 = (colontmp__553655146).length; Label3: { Label4: while (true) { - if (!(i_553656990 < L_553656991)) break Label4; - i_553652451 = colontmp__553656988[chckIndx(i_553656990, 0, (colontmp__553656988).length - 1)]; - var Temporary5 = nimCopy(null, powers_1728053321[0][chckIndx(nsuParseInt(i_553652451), 0, (powers_1728053321[0]).length - 1)], NTI1728053253); + if (!(i_553655148 < L_553655149)) break Label4; + i_553651888 = colontmp__553655146[chckIndx(i_553655148, 0, (colontmp__553655146).length - 1)]; + var Temporary5 = nimCopy(null, powers_1728053321[0][chckIndx(nsuParseInt(i_553651888), 0, (powers_1728053321[0]).length - 1)], NTI1728053253); draftOptions_553648252[0].push(Temporary5);; - i_553656990 += 1; - if (!(((colontmp__553656988).length == L_553656991))) { + i_553655148 += 1; + if (!(((colontmp__553655146).length == L_553655149))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -13608,10 +13984,10 @@ function joinLogic_553652383(d_553652384, m_553652385) { }} break; case 6: - otherAction_553652188(d_553652384); + otherAction_553651625(d_553651821); break; case 4: - if ((eqStrings(d_553652384, [100,105,115,99,111,110,110]) || eqStrings(d_553652384, [101,120,105,116]))) { + if ((eqStrings(d_553651821, [100,105,115,99,111,110,110]) || eqStrings(d_553651821, [101,120,105,116]))) { currentScreen_553648287[0] = 8; } else { @@ -13629,15 +14005,15 @@ function joinLogic_553652383(d_553652384, m_553652385) { } -function join_553652742(__553652743, __553652744) { - var id_553652745 = getInputText_721422193(getVNodeById_721420594("joincode", kxi__)); - roomId_553648232[0].Field1 = id_553652745; +function join_553652179(__553652180, __553652181) { + var id_553652182 = getInputText_721422193(getVNodeById_721420594("joincode", kxi__)); + roomId_553648232[0].Field1 = id_553652182; rawEcho(HEX24_754975843(getVNodeById_721420594("joincode", kxi__))); if (!((peer_553648238[0].Field1 == null))) { peer_553648238[0].Field1(); } - peer_553648238[0] = nimCopy(peer_553648238[0], newJoin_1577058551(id_553652745, joinLogic_553652383), NTI553648171); + peer_553648238[0] = nimCopy(peer_553648238[0], newJoin_1577058551(id_553652182, joinLogic_553651820), NTI553648171); } @@ -13650,19 +14026,19 @@ function setAttr_754975467(n_754975468, key_754975469, val_754975470) { else { Label1: { var i_754975487 = 0; - var colontmp__553656997 = 0; - colontmp__553656997 = subInt((n_754975468.attrs).length, 2); - var res_553656998 = 0; + var colontmp__553655155 = 0; + colontmp__553655155 = subInt((n_754975468.attrs).length, 2); + var res_553655156 = 0; Label2: { Label3: while (true) { - if (!(res_553656998 <= colontmp__553656997)) break Label3; - i_754975487 = res_553656998; + if (!(res_553655156 <= colontmp__553655155)) break Label3; + i_754975487 = res_553655156; if ((n_754975468.attrs[chckIndx(i_754975487, 0, (n_754975468.attrs).length - 1)] == key_754975469)) { n_754975468.attrs[chckIndx(addInt(i_754975487, 1), 0, (n_754975468.attrs).length - 1)] = val_754975470; break BeforeRet; } - res_553656998 = addInt(res_553656998, 2); + res_553655156 = addInt(res_553655156, 2); } }; }; @@ -13727,57 +14103,57 @@ function setError_1459617834(field_1459617835, msg_1459617836) { } -function validateNotEmpty_553652462(field_553652463) { +function validateNotEmpty_553651899(field_553651900) { -function HEX3Aanonymous_553652466() { - var x_553652467 = getInputText_721422193(getVNodeById_721420594(field_553652463, kxi__)); - if (((x_553652467 == null) || (x_553652467 == ""))) { - setError_1459617834(field_553652463, (field_553652463 + " must not be empty")); +function HEX3Aanonymous_553651903() { + var x_553651904 = getInputText_721422193(getVNodeById_721420594(field_553651900, kxi__)); + if (((x_553651904 == null) || (x_553651904 == ""))) { + setError_1459617834(field_553651900, (field_553651900 + " must not be empty")); } else { - setError_1459617834(field_553652463, ""); + setError_1459617834(field_553651900, ""); } } - var result_553652465 = null; + var result_553651902 = null; - result_553652465 = HEX3Aanonymous_553652466; + result_553651902 = HEX3Aanonymous_553651903; - return result_553652465; + return result_553651902; } -function createJoinMenu_553652767() { - var result_553652768 = null; +function createJoinMenu_553652204() { + var result_553652205 = null; - var tmp_553652769 = tree_754975616(44, []); - tmp_553652769.class = "main cut-down"; - tmp_553652769.id = "join"; - addEventHandler_721422102(tmp_553652769, 29, join_553652742, kxi__); - var tmp_553652770 = tree_754975616(193, []); - setAttr_754975467(tmp_553652770, "for", "joincode"); - add_754975552(tmp_553652770, text_754975684([74,111,105,110,32,67,111,100,101,58])); - add_754975552(tmp_553652769, tmp_553652770); - var tmp_553652771 = tree_754975616(194, []); - tmp_553652771.id = "joincode"; - addEventHandler_721422110(tmp_553652771, 8, validateNotEmpty_553652462("joincode"), kxi__); - add_754975552(tmp_553652769, tmp_553652771); - var tmp_553652772 = tree_754975616(195, []); - addEventHandler_721422102(tmp_553652772, 0, join_553652742, kxi__); - add_754975552(tmp_553652772, text_754975684([69,110,116,101,114])); - add_754975552(tmp_553652769, tmp_553652772); - result_553652768 = tmp_553652769; + var tmp_553652206 = tree_754975616(44, []); + tmp_553652206.class = "main cut-down"; + tmp_553652206.id = "join"; + addEventHandler_721422102(tmp_553652206, 29, join_553652179, kxi__); + var tmp_553652207 = tree_754975616(193, []); + setAttr_754975467(tmp_553652207, "for", "joincode"); + add_754975552(tmp_553652207, text_754975684([74,111,105,110,32,67,111,100,101,58])); + add_754975552(tmp_553652206, tmp_553652207); + var tmp_553652208 = tree_754975616(194, []); + tmp_553652208.id = "joincode"; + addEventHandler_721422110(tmp_553652208, 8, validateNotEmpty_553651899("joincode"), kxi__); + add_754975552(tmp_553652206, tmp_553652208); + var tmp_553652209 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553652209, 0, join_553652179, kxi__); + add_754975552(tmp_553652209, text_754975684([69,110,116,101,114])); + add_754975552(tmp_553652206, tmp_553652209); + result_553652205 = tmp_553652206; - return result_553652768; + return result_553652205; } -function createOptionsMenu_553652773() { +function createOptionsMenu_553652210() { -function HEX3Aanonymous_553652803(__553652804, __553652805) { +function HEX3Aanonymous_553652240(__553652241, __553652242) { peer_553648238[0].Field0("handshake:gamestart"); turn_553648240[0] = true; currentScreen_553648287[0] = 3; @@ -13785,7 +14161,7 @@ function HEX3Aanonymous_553652803(__553652804, __553652805) { } -function HEX3Aanonymous_553652808(__553652809, __553652810) { +function HEX3Aanonymous_553652245(__553652246, __553652247) { peer_553648238[0].Field0("draft:start"); currentScreen_553648287[0] = 5; gameMode_553648289[0] = 1; @@ -13793,12 +14169,12 @@ function HEX3Aanonymous_553652808(__553652809, __553652810) { baseDrafts_553648251[0] = parseInt(getInputText_721422193(getVNodeById_721420594("draftTierNumber", kxi__)), 10); draftsLeft_553648254[0] = subInt(baseDrafts_553648251[0], 1); draftChoices_553648253[0] = parseInt(getInputText_721422193(getVNodeById_721420594("draftChoiceTierNumber", kxi__)), 10); - draft_553652266([], []); + draft_553651703([], []); } -function HEX3Aanonymous_553652829(__553652830, __553652831) { +function HEX3Aanonymous_553652266(__553652267, __553652268) { peer_553648238[0].Field0("draft:start"); currentScreen_553648287[0] = 5; gameMode_553648289[0] = 2; @@ -13806,12 +14182,12 @@ function HEX3Aanonymous_553652829(__553652830, __553652831) { baseDrafts_553648251[0] = parseInt(getInputText_721422193(getVNodeById_721420594("draftRandNumber", kxi__)), 10); draftsLeft_553648254[0] = subInt(baseDrafts_553648251[0], 1); draftChoices_553648253[0] = parseInt(getInputText_721422193(getVNodeById_721420594("draftChoiceRandNumber", kxi__)), 10); - draft_553652266([], []); + draft_553651703([], []); } -function HEX3Aanonymous_553652834(__553652835, __553652836) { +function HEX3Aanonymous_553652271(__553652272, __553652273) { peer_553648238[0].Field0("draft:start"); currentScreen_553648287[0] = 5; gameMode_553648289[0] = 3; @@ -13819,176 +14195,176 @@ function HEX3Aanonymous_553652834(__553652835, __553652836) { baseDrafts_553648251[0] = parseInt(getInputText_721422193(getVNodeById_721420594("draftSuperRandNumber", kxi__)), 10); draftsLeft_553648254[0] = subInt(baseDrafts_553648251[0], 1); draftChoices_553648253[0] = parseInt(getInputText_721422193(getVNodeById_721420594("draftChoiceSuperRandNumber", kxi__)), 10); - draft_553652266([], []); + draft_553651703([], []); } - var result_553652774 = null; + var result_553652211 = null; - var tmp_553652775 = tree_754975616(44, []); - tmp_553652775.class = "main"; + var tmp_553652212 = tree_754975616(44, []); + tmp_553652212.class = "main"; if ((side_553648239[0] == 0)) { - add_754975552(tmp_553652775, text_754975684([87,97,105,116,105,110,103,32,102,111,114,32,104,111,115,116,32,116,111,32,100,101,99,105,100,101,32,114,117,108,101,115,101,116,46,46,46])); + add_754975552(tmp_553652212, text_754975684([87,97,105,116,105,110,103,32,102,111,114,32,104,111,115,116,32,116,111,32,100,101,99,105,100,101,32,114,117,108,101,115,101,116,46,46,46])); } else { - var tmp_553652776 = tree_754975616(44, []); - tmp_553652776.class = "column cut-down"; - var tmp_553652777 = tree_754975616(195, []); - addEventHandler_721422102(tmp_553652777, 0, HEX3Aanonymous_553652803, kxi__); - add_754975552(tmp_553652777, text_754975684([78,111,114,109,97,108,32,67,104,101,115,115])); - add_754975552(tmp_553652776, tmp_553652777); - add_754975552(tmp_553652776, text_754975684([67,108,97,115,115,105,99,32,67,104,101,115,115,44,32,119,105,116,104,32,110,111,32,115,112,101,99,105,97,108,32,114,117,108,101,115,32,111,114,32,97,98,105,108,105,116,101,115,46])); - add_754975552(tmp_553652775, tmp_553652776); - var tmp_553652778 = tree_754975616(44, []); - tmp_553652778.class = "column cut-down"; - var tmp_553652779 = tree_754975616(44, []); - tmp_553652779.class = "column"; - var tmp_553652780 = tree_754975616(195, []); - addEventHandler_721422102(tmp_553652780, 0, HEX3Aanonymous_553652808, kxi__); - add_754975552(tmp_553652780, text_754975684([68,114,97,102,116,32,109,111,100,101])); - add_754975552(tmp_553652779, tmp_553652780); - add_754975552(tmp_553652779, text_754975684(makeNimstrLit("Take turns drafting power ups for your pieces, then play. \x0A Each side is guaranteed to get power ups of the same tier."))); - var tmp_553652781 = tree_754975616(193, []); - setAttr_754975467(tmp_553652781, "for", "draftTierNumber"); - add_754975552(tmp_553652781, text_754975684([78,117,109,98,101,114,32,111,102,32,112,111,119,101,114,115,32,100,114,97,102,116,101,100])); - add_754975552(tmp_553652779, tmp_553652781); - var tmp_553652782 = tree_754975616(194, []); - tmp_553652782.id = "draftTierNumber"; - setAttr_754975467(tmp_553652782, "type", "number"); - addEventHandler_721422110(tmp_553652782, 8, validateNotEmpty_553652462("draftTierNumber"), kxi__); - setAttr_754975467(tmp_553652782, "step", "1"); - setAttr_754975467(tmp_553652782, "min", "1"); - setAttr_754975467(tmp_553652782, "max", "10"); - valueHEX3D_754975173(tmp_553652782, "3"); - setAttr_754975467(tmp_553652782, "value", "3"); - add_754975552(tmp_553652779, tmp_553652782); - var tmp_553652783 = tree_754975616(193, []); - setAttr_754975467(tmp_553652783, "for", "draftChoiceTierNumber"); - add_754975552(tmp_553652783, text_754975684([78,117,109,98,101,114,32,111,102,32,99,104,111,105,99,101,115,32,101,97,99,104,32,114,111,117,110,100])); - add_754975552(tmp_553652779, tmp_553652783); - var tmp_553652784 = tree_754975616(194, []); - tmp_553652784.id = "draftChoiceTierNumber"; - setAttr_754975467(tmp_553652784, "type", "number"); - addEventHandler_721422110(tmp_553652784, 8, validateNotEmpty_553652462("draftChoiceTierNumber"), kxi__); - setAttr_754975467(tmp_553652784, "step", "1"); - setAttr_754975467(tmp_553652784, "min", "1"); - setAttr_754975467(tmp_553652784, "max", "5"); - valueHEX3D_754975173(tmp_553652784, "3"); - setAttr_754975467(tmp_553652784, "value", "3"); - add_754975552(tmp_553652779, tmp_553652784); - add_754975552(tmp_553652778, tmp_553652779); - var tmp_553652785 = tree_754975616(33, []); - add_754975552(tmp_553652778, tmp_553652785); - var tmp_553652786 = tree_754975616(44, []); - tmp_553652786.class = "column"; - var tmp_553652787 = tree_754975616(195, []); - addEventHandler_721422102(tmp_553652787, 0, HEX3Aanonymous_553652829, kxi__); - add_754975552(tmp_553652787, text_754975684([82,97,110,100,111,109,32,109,111,100,101])); - add_754975552(tmp_553652786, tmp_553652787); - add_754975552(tmp_553652786, text_754975684(makeNimstrLit("Draft powerups of random strength and quality, then play. \x0A Completely luck based."))); - var tmp_553652788 = tree_754975616(193, []); - setAttr_754975467(tmp_553652788, "for", "draftRandNumber"); - add_754975552(tmp_553652788, text_754975684([78,117,109,98,101,114,32,111,102,32,112,111,119,101,114,115,32,100,114,97,102,116,101,100])); - add_754975552(tmp_553652786, tmp_553652788); - var tmp_553652789 = tree_754975616(194, []); - tmp_553652789.id = "draftRandNumber"; - setAttr_754975467(tmp_553652789, "type", "number"); - addEventHandler_721422110(tmp_553652789, 8, validateNotEmpty_553652462("draftRandNumber"), kxi__); - setAttr_754975467(tmp_553652789, "step", "1"); - setAttr_754975467(tmp_553652789, "min", "1"); - setAttr_754975467(tmp_553652789, "max", "10"); - valueHEX3D_754975173(tmp_553652789, "3"); - setAttr_754975467(tmp_553652789, "value", "3"); - add_754975552(tmp_553652786, tmp_553652789); - var tmp_553652790 = tree_754975616(193, []); - setAttr_754975467(tmp_553652790, "for", "draftChoiceRandNumber"); - add_754975552(tmp_553652790, text_754975684([78,117,109,98,101,114,32,111,102,32,99,104,111,105,99,101,115,32,101,97,99,104,32,114,111,117,110,100])); - add_754975552(tmp_553652786, tmp_553652790); - var tmp_553652791 = tree_754975616(194, []); - tmp_553652791.id = "draftChoiceRandNumber"; - setAttr_754975467(tmp_553652791, "type", "number"); - addEventHandler_721422110(tmp_553652791, 8, validateNotEmpty_553652462("draftChoiceRandNumber"), kxi__); - setAttr_754975467(tmp_553652791, "step", "1"); - setAttr_754975467(tmp_553652791, "min", "1"); - setAttr_754975467(tmp_553652791, "max", "5"); - valueHEX3D_754975173(tmp_553652791, "3"); - setAttr_754975467(tmp_553652791, "value", "3"); - add_754975552(tmp_553652786, tmp_553652791); - add_754975552(tmp_553652778, tmp_553652786); - var tmp_553652792 = tree_754975616(33, []); - add_754975552(tmp_553652778, tmp_553652792); - var tmp_553652793 = tree_754975616(44, []); - tmp_553652793.class = "column"; - var tmp_553652794 = tree_754975616(195, []); - addEventHandler_721422102(tmp_553652794, 0, HEX3Aanonymous_553652834, kxi__); - add_754975552(tmp_553652794, text_754975684([83,117,112,101,114,32,82,97,110,100,111,109,32,109,111,100,101])); - add_754975552(tmp_553652793, tmp_553652794); - add_754975552(tmp_553652793, text_754975684(makeNimstrLit("Draft powerups of random strength and quality, then play. \x0A Completely luck based, with higher chances for rare pieces."))); - var tmp_553652795 = tree_754975616(193, []); - setAttr_754975467(tmp_553652795, "for", "draftSuperRandNumber"); - add_754975552(tmp_553652795, text_754975684([78,117,109,98,101,114,32,111,102,32,112,111,119,101,114,115,32,100,114,97,102,116,101,100])); - add_754975552(tmp_553652793, tmp_553652795); - var tmp_553652796 = tree_754975616(194, []); - tmp_553652796.id = "draftSuperRandNumber"; - setAttr_754975467(tmp_553652796, "type", "number"); - addEventHandler_721422110(tmp_553652796, 8, validateNotEmpty_553652462("draftSuperRandNumber"), kxi__); - setAttr_754975467(tmp_553652796, "step", "1"); - setAttr_754975467(tmp_553652796, "min", "1"); - setAttr_754975467(tmp_553652796, "max", "10"); - valueHEX3D_754975173(tmp_553652796, "3"); - setAttr_754975467(tmp_553652796, "value", "3"); - add_754975552(tmp_553652793, tmp_553652796); - var tmp_553652797 = tree_754975616(193, []); - setAttr_754975467(tmp_553652797, "for", "draftChoiceSuperRandNumber"); - add_754975552(tmp_553652797, text_754975684([78,117,109,98,101,114,32,111,102,32,99,104,111,105,99,101,115,32,101,97,99,104,32,114,111,117,110,100])); - add_754975552(tmp_553652793, tmp_553652797); - var tmp_553652798 = tree_754975616(194, []); - tmp_553652798.id = "draftChoiceSuperRandNumber"; - setAttr_754975467(tmp_553652798, "type", "number"); - addEventHandler_721422110(tmp_553652798, 8, validateNotEmpty_553652462("draftChoiceSuperRandNumber"), kxi__); - setAttr_754975467(tmp_553652798, "step", "1"); - setAttr_754975467(tmp_553652798, "min", "1"); - setAttr_754975467(tmp_553652798, "max", "5"); - valueHEX3D_754975173(tmp_553652798, "3"); - setAttr_754975467(tmp_553652798, "value", "3"); - add_754975552(tmp_553652793, tmp_553652798); - add_754975552(tmp_553652778, tmp_553652793); - add_754975552(tmp_553652775, tmp_553652778); - } - - result_553652774 = tmp_553652775; - - return result_553652774; - -} - -function createPowerMenu_553652839(p_553652840) { + var tmp_553652213 = tree_754975616(44, []); + tmp_553652213.class = "column cut-down"; + var tmp_553652214 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553652214, 0, HEX3Aanonymous_553652240, kxi__); + add_754975552(tmp_553652214, text_754975684([78,111,114,109,97,108,32,67,104,101,115,115])); + add_754975552(tmp_553652213, tmp_553652214); + add_754975552(tmp_553652213, text_754975684([67,108,97,115,115,105,99,32,67,104,101,115,115,44,32,119,105,116,104,32,110,111,32,115,112,101,99,105,97,108,32,114,117,108,101,115,32,111,114,32,97,98,105,108,105,116,101,115,46])); + add_754975552(tmp_553652212, tmp_553652213); + var tmp_553652215 = tree_754975616(44, []); + tmp_553652215.class = "column cut-down"; + var tmp_553652216 = tree_754975616(44, []); + tmp_553652216.class = "column"; + var tmp_553652217 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553652217, 0, HEX3Aanonymous_553652245, kxi__); + add_754975552(tmp_553652217, text_754975684([68,114,97,102,116,32,109,111,100,101])); + add_754975552(tmp_553652216, tmp_553652217); + add_754975552(tmp_553652216, text_754975684(makeNimstrLit("Take turns drafting power ups for your pieces, then play. \x0A Each side is guaranteed to get power ups of the same tier."))); + var tmp_553652218 = tree_754975616(193, []); + setAttr_754975467(tmp_553652218, "for", "draftTierNumber"); + add_754975552(tmp_553652218, text_754975684([78,117,109,98,101,114,32,111,102,32,112,111,119,101,114,115,32,100,114,97,102,116,101,100])); + add_754975552(tmp_553652216, tmp_553652218); + var tmp_553652219 = tree_754975616(194, []); + tmp_553652219.id = "draftTierNumber"; + setAttr_754975467(tmp_553652219, "type", "number"); + addEventHandler_721422110(tmp_553652219, 8, validateNotEmpty_553651899("draftTierNumber"), kxi__); + setAttr_754975467(tmp_553652219, "step", "1"); + setAttr_754975467(tmp_553652219, "min", "1"); + setAttr_754975467(tmp_553652219, "max", "10"); + valueHEX3D_754975173(tmp_553652219, "3"); + setAttr_754975467(tmp_553652219, "value", "3"); + add_754975552(tmp_553652216, tmp_553652219); + var tmp_553652220 = tree_754975616(193, []); + setAttr_754975467(tmp_553652220, "for", "draftChoiceTierNumber"); + add_754975552(tmp_553652220, text_754975684([78,117,109,98,101,114,32,111,102,32,99,104,111,105,99,101,115,32,101,97,99,104,32,114,111,117,110,100])); + add_754975552(tmp_553652216, tmp_553652220); + var tmp_553652221 = tree_754975616(194, []); + tmp_553652221.id = "draftChoiceTierNumber"; + setAttr_754975467(tmp_553652221, "type", "number"); + addEventHandler_721422110(tmp_553652221, 8, validateNotEmpty_553651899("draftChoiceTierNumber"), kxi__); + setAttr_754975467(tmp_553652221, "step", "1"); + setAttr_754975467(tmp_553652221, "min", "1"); + setAttr_754975467(tmp_553652221, "max", "5"); + valueHEX3D_754975173(tmp_553652221, "3"); + setAttr_754975467(tmp_553652221, "value", "3"); + add_754975552(tmp_553652216, tmp_553652221); + add_754975552(tmp_553652215, tmp_553652216); + var tmp_553652222 = tree_754975616(33, []); + add_754975552(tmp_553652215, tmp_553652222); + var tmp_553652223 = tree_754975616(44, []); + tmp_553652223.class = "column"; + var tmp_553652224 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553652224, 0, HEX3Aanonymous_553652266, kxi__); + add_754975552(tmp_553652224, text_754975684([82,97,110,100,111,109,32,109,111,100,101])); + add_754975552(tmp_553652223, tmp_553652224); + add_754975552(tmp_553652223, text_754975684(makeNimstrLit("Draft powerups of random strength and quality, then play. \x0A Completely luck based."))); + var tmp_553652225 = tree_754975616(193, []); + setAttr_754975467(tmp_553652225, "for", "draftRandNumber"); + add_754975552(tmp_553652225, text_754975684([78,117,109,98,101,114,32,111,102,32,112,111,119,101,114,115,32,100,114,97,102,116,101,100])); + add_754975552(tmp_553652223, tmp_553652225); + var tmp_553652226 = tree_754975616(194, []); + tmp_553652226.id = "draftRandNumber"; + setAttr_754975467(tmp_553652226, "type", "number"); + addEventHandler_721422110(tmp_553652226, 8, validateNotEmpty_553651899("draftRandNumber"), kxi__); + setAttr_754975467(tmp_553652226, "step", "1"); + setAttr_754975467(tmp_553652226, "min", "1"); + setAttr_754975467(tmp_553652226, "max", "10"); + valueHEX3D_754975173(tmp_553652226, "3"); + setAttr_754975467(tmp_553652226, "value", "3"); + add_754975552(tmp_553652223, tmp_553652226); + var tmp_553652227 = tree_754975616(193, []); + setAttr_754975467(tmp_553652227, "for", "draftChoiceRandNumber"); + add_754975552(tmp_553652227, text_754975684([78,117,109,98,101,114,32,111,102,32,99,104,111,105,99,101,115,32,101,97,99,104,32,114,111,117,110,100])); + add_754975552(tmp_553652223, tmp_553652227); + var tmp_553652228 = tree_754975616(194, []); + tmp_553652228.id = "draftChoiceRandNumber"; + setAttr_754975467(tmp_553652228, "type", "number"); + addEventHandler_721422110(tmp_553652228, 8, validateNotEmpty_553651899("draftChoiceRandNumber"), kxi__); + setAttr_754975467(tmp_553652228, "step", "1"); + setAttr_754975467(tmp_553652228, "min", "1"); + setAttr_754975467(tmp_553652228, "max", "5"); + valueHEX3D_754975173(tmp_553652228, "3"); + setAttr_754975467(tmp_553652228, "value", "3"); + add_754975552(tmp_553652223, tmp_553652228); + add_754975552(tmp_553652215, tmp_553652223); + var tmp_553652229 = tree_754975616(33, []); + add_754975552(tmp_553652215, tmp_553652229); + var tmp_553652230 = tree_754975616(44, []); + tmp_553652230.class = "column"; + var tmp_553652231 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553652231, 0, HEX3Aanonymous_553652271, kxi__); + add_754975552(tmp_553652231, text_754975684([83,117,112,101,114,32,82,97,110,100,111,109,32,109,111,100,101])); + add_754975552(tmp_553652230, tmp_553652231); + add_754975552(tmp_553652230, text_754975684(makeNimstrLit("Draft powerups of random strength and quality, then play. \x0A Completely luck based, with higher chances for rare pieces."))); + var tmp_553652232 = tree_754975616(193, []); + setAttr_754975467(tmp_553652232, "for", "draftSuperRandNumber"); + add_754975552(tmp_553652232, text_754975684([78,117,109,98,101,114,32,111,102,32,112,111,119,101,114,115,32,100,114,97,102,116,101,100])); + add_754975552(tmp_553652230, tmp_553652232); + var tmp_553652233 = tree_754975616(194, []); + tmp_553652233.id = "draftSuperRandNumber"; + setAttr_754975467(tmp_553652233, "type", "number"); + addEventHandler_721422110(tmp_553652233, 8, validateNotEmpty_553651899("draftSuperRandNumber"), kxi__); + setAttr_754975467(tmp_553652233, "step", "1"); + setAttr_754975467(tmp_553652233, "min", "1"); + setAttr_754975467(tmp_553652233, "max", "10"); + valueHEX3D_754975173(tmp_553652233, "3"); + setAttr_754975467(tmp_553652233, "value", "3"); + add_754975552(tmp_553652230, tmp_553652233); + var tmp_553652234 = tree_754975616(193, []); + setAttr_754975467(tmp_553652234, "for", "draftChoiceSuperRandNumber"); + add_754975552(tmp_553652234, text_754975684([78,117,109,98,101,114,32,111,102,32,99,104,111,105,99,101,115,32,101,97,99,104,32,114,111,117,110,100])); + add_754975552(tmp_553652230, tmp_553652234); + var tmp_553652235 = tree_754975616(194, []); + tmp_553652235.id = "draftChoiceSuperRandNumber"; + setAttr_754975467(tmp_553652235, "type", "number"); + addEventHandler_721422110(tmp_553652235, 8, validateNotEmpty_553651899("draftChoiceSuperRandNumber"), kxi__); + setAttr_754975467(tmp_553652235, "step", "1"); + setAttr_754975467(tmp_553652235, "min", "1"); + setAttr_754975467(tmp_553652235, "max", "5"); + valueHEX3D_754975173(tmp_553652235, "3"); + setAttr_754975467(tmp_553652235, "value", "3"); + add_754975552(tmp_553652230, tmp_553652235); + add_754975552(tmp_553652215, tmp_553652230); + add_754975552(tmp_553652212, tmp_553652215); + } + + result_553652211 = tmp_553652212; + + return result_553652211; + +} + +function createPowerMenu_553652276(p_553652277) { var Temporary1; - p_553652840 = nimCopy(null, p_553652840, NTI1728053253); + p_553652277 = nimCopy(null, p_553652277, NTI1728053253); -function HEX3Aanonymous_553652855(__553652856, __553652857) { - peer_553648238[0].Field0(toJSStr(([100,114,97,102,116,58,109,121,44] || []).concat(HEX24_385875976(p_553652840.index) || []))); - var Temporary1 = nimCopy(null, p_553652840, NTI1728053253); +function HEX3Aanonymous_553652292(__553652293, __553652294) { + peer_553648238[0].Field0(toJSStr(([100,114,97,102,116,58,109,121,44] || []).concat(HEX24_385875976(p_553652277.index) || []))); + var Temporary1 = nimCopy(null, p_553652277, NTI1728053253); myDrafts_553648245[0].push(Temporary1);; turn_553648240[0] = false; if ((side_553648239[0] == 1)) { - draft_553652266(HEX26_1728054285(myDrafts_553648245[0], opponentDrafts_553648250[0]), opponentDrafts_553648250[0]); + draft_553651703(HEX26_1728054285(myDrafts_553648245[0], opponentDrafts_553648250[0]), opponentDrafts_553648250[0]); Label2: { - var iHEX60gensym184_553652890 = 0; - var resultHEX60gensym184_553652897 = newSeq_536871458(chckRange((draftOptions_553648252[0]).length, 0, 2147483647)); + var iHEX60gensym118_553652327 = 0; + var resultHEX60gensym118_553652334 = newSeq_536871458(chckRange((draftOptions_553648252[0]).length, 0, 2147483647)); Label3: { - var it_553652901 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553657015 = 0; - var L_553657016 = (draftOptions_553648252[0]).length; + var it_553652338 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655173 = 0; + var L_553655174 = (draftOptions_553648252[0]).length; Label4: { Label5: while (true) { - if (!(i_553657015 < L_553657016)) break Label5; - it_553652901 = draftOptions_553648252[0][chckIndx(i_553657015, 0, (draftOptions_553648252[0]).length - 1)]; - resultHEX60gensym184_553652897[chckIndx(iHEX60gensym184_553652890, 0, (resultHEX60gensym184_553652897).length - 1)] = nimCopy(null, ([44] || []).concat(HEX24_385875976(it_553652901.index) || []), NTI33554449); - iHEX60gensym184_553652890 = addInt(iHEX60gensym184_553652890, 1); - i_553657015 += 1; - if (!(((draftOptions_553648252[0]).length == L_553657016))) { + if (!(i_553655173 < L_553655174)) break Label5; + it_553652338 = draftOptions_553648252[0][chckIndx(i_553655173, 0, (draftOptions_553648252[0]).length - 1)]; + resultHEX60gensym118_553652334[chckIndx(iHEX60gensym118_553652327, 0, (resultHEX60gensym118_553652334).length - 1)] = nimCopy(null, ([44] || []).concat(HEX24_385875976(it_553652338.index) || []), NTI33554449); + iHEX60gensym118_553652327 = addInt(iHEX60gensym118_553652327, 1); + i_553655173 += 1; + if (!(((draftOptions_553648252[0]).length == L_553655174))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -13996,96 +14372,96 @@ function HEX3Aanonymous_553652855(__553652856, __553652857) { }; }; }; - var sHEX60gensym187_553652913 = nimCopy(null, resultHEX60gensym184_553652897, NTI536871233); - var nHEX60gensym187_553652917 = (sHEX60gensym187_553652913).length; - if (!((0 < nHEX60gensym187_553652917))) { - failedAssertImpl_268435541(makeNimstrLit("sequtils.nim(977, 3) `n`gensym187 > 0` Can\'t fold empty sequences")); + var sHEX60gensym121_553652350 = nimCopy(null, resultHEX60gensym118_553652334, NTI536871233); + var nHEX60gensym121_553652354 = (sHEX60gensym121_553652350).length; + if (!((0 < nHEX60gensym121_553652354))) { + failedAssertImpl_268435541(makeNimstrLit("sequtils.nim(977, 3) `n`gensym121 > 0` Can\'t fold empty sequences")); } - var resultHEX60gensym187_553652923 = nimCopy(null, sHEX60gensym187_553652913[chckIndx(subInt(nHEX60gensym187_553652917, 1), 0, (sHEX60gensym187_553652913).length - 1)], NTI33554449); + var resultHEX60gensym121_553652360 = nimCopy(null, sHEX60gensym121_553652350[chckIndx(subInt(nHEX60gensym121_553652354, 1), 0, (sHEX60gensym121_553652350).length - 1)], NTI33554449); Label6: { - var iHEX60gensym187_553652929 = 0; - var colontmp__553657019 = 0; - colontmp__553657019 = subInt(nHEX60gensym187_553652917, 2); - var res_553657020 = colontmp__553657019; + var iHEX60gensym121_553652366 = 0; + var colontmp__553655177 = 0; + colontmp__553655177 = subInt(nHEX60gensym121_553652354, 2); + var res_553655178 = colontmp__553655177; Label7: { Label8: while (true) { - if (!(0 <= res_553657020)) break Label8; - iHEX60gensym187_553652929 = res_553657020; - var a_553652930 = nimCopy(null, sHEX60gensym187_553652913[chckIndx(iHEX60gensym187_553652929, 0, (sHEX60gensym187_553652913).length - 1)], NTI33554449); - var b_553652931 = nimCopy(null, resultHEX60gensym187_553652923, NTI33554449); - resultHEX60gensym187_553652923 = nimCopy(null, (a_553652930 || []).concat(b_553652931 || []), NTI33554449); - res_553657020 = subInt(res_553657020, 1); + if (!(0 <= res_553655178)) break Label8; + iHEX60gensym121_553652366 = res_553655178; + var a_553652367 = nimCopy(null, sHEX60gensym121_553652350[chckIndx(iHEX60gensym121_553652366, 0, (sHEX60gensym121_553652350).length - 1)], NTI33554449); + var b_553652368 = nimCopy(null, resultHEX60gensym121_553652360, NTI33554449); + resultHEX60gensym121_553652360 = nimCopy(null, (a_553652367 || []).concat(b_553652368 || []), NTI33554449); + res_553655178 = subInt(res_553655178, 1); } }; }; - peer_553648238[0].Field0(toJSStr(([100,114,97,102,116,58,103,111] || []).concat(resultHEX60gensym187_553652923 || []))); + peer_553648238[0].Field0(toJSStr(([100,114,97,102,116,58,103,111] || []).concat(resultHEX60gensym121_553652360 || []))); } } - var result_553652841 = null; + var result_553652278 = null; - var tmp_553652842 = tree_754975616(44, []); - tmp_553652842.class = "power"; - var tmp_553652843 = tree_754975616(21, []); - if ((showTechnicalNames_553648283[0] && !(eqStrings(p_553652840.technicalName, [])))) { - Temporary1 = p_553652840.technicalName; + var tmp_553652279 = tree_754975616(44, []); + tmp_553652279.class = "power"; + var tmp_553652280 = tree_754975616(21, []); + if ((showTechnicalNames_553648283[0] && !(eqStrings(p_553652277.technicalName, [])))) { + Temporary1 = p_553652277.technicalName; } else { - Temporary1 = p_553652840.name; + Temporary1 = p_553652277.name; } - add_754975552(tmp_553652843, text_754975684(Temporary1)); - add_754975552(tmp_553652842, tmp_553652843); - if (!(eqStrings(p_553652840.icon, []))) { - var src_553652848 = [46,47,105,99,111,110,115,47]; - if (!(p_553652840.noColor)) { - src_553652848.push.apply(src_553652848, reprEnum(side_553648239[0], NTI1476395017));; + add_754975552(tmp_553652280, text_754975684(Temporary1)); + add_754975552(tmp_553652279, tmp_553652280); + if (!(eqStrings(p_553652277.icon, []))) { + var src_553652285 = [46,47,105,99,111,110,115,47]; + if (!(p_553652277.noColor)) { + src_553652285.push.apply(src_553652285, reprEnum(side_553648239[0], NTI1476395017));; } - var tmp_553652844 = tree_754975616(76, []); - setAttr_754975467(tmp_553652844, "src", toJSStr((src_553652848 || []).concat(p_553652840.icon || []))); - add_754975552(tmp_553652842, tmp_553652844); + var tmp_553652281 = tree_754975616(76, []); + setAttr_754975467(tmp_553652281, "src", toJSStr((src_553652285 || []).concat(p_553652277.icon || []))); + add_754975552(tmp_553652279, tmp_553652281); } else { - var tmp_553652845 = tree_754975616(76, []); - setAttr_754975467(tmp_553652845, "src", "./icons/blackbishop.svg"); - add_754975552(tmp_553652842, tmp_553652845); + var tmp_553652282 = tree_754975616(76, []); + setAttr_754975467(tmp_553652282, "src", "./icons/blackbishop.svg"); + add_754975552(tmp_553652279, tmp_553652282); } - var tmp_553652846 = tree_754975616(22, []); - add_754975552(tmp_553652846, text_754975684(reprEnum(p_553652840.tier, NTI1728053251))); - add_754975552(tmp_553652842, tmp_553652846); - var tmp_553652847 = tree_754975616(32, []); - add_754975552(tmp_553652847, text_754975684(p_553652840.description)); - add_754975552(tmp_553652842, tmp_553652847); - addEventHandler_721422102(tmp_553652842, 0, HEX3Aanonymous_553652855, kxi__); - result_553652841 = tmp_553652842; + var tmp_553652283 = tree_754975616(22, []); + add_754975552(tmp_553652283, text_754975684(reprEnum(p_553652277.tier, NTI1728053251))); + add_754975552(tmp_553652279, tmp_553652283); + var tmp_553652284 = tree_754975616(32, []); + add_754975552(tmp_553652284, text_754975684(p_553652277.description)); + add_754975552(tmp_553652279, tmp_553652284); + addEventHandler_721422102(tmp_553652279, 0, HEX3Aanonymous_553652292, kxi__); + result_553652278 = tmp_553652279; - return result_553652841; + return result_553652278; } -function createDraftMenu_553652936() { - var result_553652937 = null; +function createDraftMenu_553652373() { + var result_553652374 = null; - var tmp_553652938 = tree_754975616(44, []); - tmp_553652938.class = "main power-menu"; + var tmp_553652375 = tree_754975616(44, []); + tmp_553652375.class = "main power-menu"; if (turn_553648240[0]) { Label1: { - var p_553652942 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553657001 = 0; - var L_553657002 = (draftOptions_553648252[0]).length; + var p_553652379 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655159 = 0; + var L_553655160 = (draftOptions_553648252[0]).length; Label2: { Label3: while (true) { - if (!(i_553657001 < L_553657002)) break Label3; - p_553652942 = draftOptions_553648252[0][chckIndx(i_553657001, 0, (draftOptions_553648252[0]).length - 1)]; - add_754975552(tmp_553652938, createPowerMenu_553652839(p_553652942)); - i_553657001 += 1; - if (!(((draftOptions_553648252[0]).length == L_553657002))) { + if (!(i_553655159 < L_553655160)) break Label3; + p_553652379 = draftOptions_553648252[0][chckIndx(i_553655159, 0, (draftOptions_553648252[0]).length - 1)]; + add_754975552(tmp_553652375, createPowerMenu_553652276(p_553652379)); + i_553655159 += 1; + if (!(((draftOptions_553648252[0]).length == L_553655160))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -14094,19 +14470,19 @@ function createDraftMenu_553652936() { }; } else { - add_754975552(tmp_553652938, text_754975684([79,112,112,111,110,101,110,116,32,105,115,32,100,114,97,102,116,105,110,103,46,46,46])); + add_754975552(tmp_553652375, text_754975684([79,112,112,111,110,101,110,116,32,105,115,32,100,114,97,102,116,105,110,103,46,46,46])); } - result_553652937 = tmp_553652938; + result_553652374 = tmp_553652375; - return result_553652937; + return result_553652374; } function clear_553648458() { - var colontmp__553657038 = (-1); - var colontmp__553657039 = (-1); - selectedTile_553648261[0] = nimCopy(selectedTile_553648261[0], {Field0: colontmp__553657038, Field1: colontmp__553657039}, NTI1476395011); + var colontmp__553655196 = (-1); + var colontmp__553655197 = (-1); + selectedTile_553648261[0] = nimCopy(selectedTile_553648261[0], {Field0: colontmp__553655196, Field1: colontmp__553655197}, NTI1476395011); possibleMoves_553648266[0] = nimCopy(null, [], NTI1543504077); possibleTakes_553648271[0] = nimCopy(null, [], NTI1543504077); @@ -14125,54 +14501,54 @@ function replaceAnySynergies_1728054684(powers_1728054685) { } -function createPowerSummary_553652943(p_553652944, ofSide_553652945) { +function createPowerSummary_553652380(p_553652381, ofSide_553652382) { var Temporary1; - var result_553652946 = null; + var result_553652383 = null; - var class_553652947 = [105,109,97,103,101,32]; - if ((!((side_553648239[0] == ofSide_553652945)) && p_553652944.rotatable)) { - class_553652947.push.apply(class_553652947, [32,114,111,116,97,116,101,32]);; + var class_553652384 = [105,109,97,103,101,32]; + if ((!((side_553648239[0] == ofSide_553652382)) && p_553652381.rotatable)) { + class_553652384.push.apply(class_553652384, [32,114,111,116,97,116,101,32]);; } - var src_553652952 = [46,47,105,99,111,110,115,47]; - if (!(p_553652944.noColor)) { - src_553652952.push.apply(src_553652952, reprEnum(ofSide_553652945, NTI1476395017));; + var src_553652389 = [46,47,105,99,111,110,115,47]; + if (!(p_553652381.noColor)) { + src_553652389.push.apply(src_553652389, reprEnum(ofSide_553652382, NTI1476395017));; } - var tmp_553652956 = tree_754975616(44, []); - tmp_553652956.class = "power-grid"; - var tmp_553652957 = tree_754975616(24, []); - tmp_553652957.class = "title"; - if ((showTechnicalNames_553648283[0] && !(eqStrings(p_553652944.technicalName, [])))) { - Temporary1 = p_553652944.technicalName; + var tmp_553652393 = tree_754975616(44, []); + tmp_553652393.class = "power-grid"; + var tmp_553652394 = tree_754975616(24, []); + tmp_553652394.class = "title"; + if ((showTechnicalNames_553648283[0] && !(eqStrings(p_553652381.technicalName, [])))) { + Temporary1 = p_553652381.technicalName; } else { - Temporary1 = p_553652944.name; + Temporary1 = p_553652381.name; } - add_754975552(tmp_553652957, text_754975684(Temporary1)); - add_754975552(tmp_553652956, tmp_553652957); - var tmp_553652958 = tree_754975616(32, []); - tmp_553652958.class = "desc"; - add_754975552(tmp_553652958, text_754975684(p_553652944.description)); - add_754975552(tmp_553652956, tmp_553652958); - if (!(eqStrings(p_553652944.icon, []))) { - var tmp_553652959 = tree_754975616(76, []); - tmp_553652959.class = toJSStr(class_553652947); - setAttr_754975467(tmp_553652959, "src", toJSStr((src_553652952 || []).concat(p_553652944.icon || []))); - add_754975552(tmp_553652956, tmp_553652959); + add_754975552(tmp_553652394, text_754975684(Temporary1)); + add_754975552(tmp_553652393, tmp_553652394); + var tmp_553652395 = tree_754975616(32, []); + tmp_553652395.class = "desc"; + add_754975552(tmp_553652395, text_754975684(p_553652381.description)); + add_754975552(tmp_553652393, tmp_553652395); + if (!(eqStrings(p_553652381.icon, []))) { + var tmp_553652396 = tree_754975616(76, []); + tmp_553652396.class = toJSStr(class_553652384); + setAttr_754975467(tmp_553652396, "src", toJSStr((src_553652389 || []).concat(p_553652381.icon || []))); + add_754975552(tmp_553652393, tmp_553652396); } else { - var tmp_553652960 = tree_754975616(76, []); - tmp_553652960.class = toJSStr(class_553652947); - setAttr_754975467(tmp_553652960, "src", "./icons/blackbishop.svg"); - add_754975552(tmp_553652956, tmp_553652960); + var tmp_553652397 = tree_754975616(76, []); + tmp_553652397.class = toJSStr(class_553652384); + setAttr_754975467(tmp_553652397, "src", "./icons/blackbishop.svg"); + add_754975552(tmp_553652393, tmp_553652397); } - result_553652946 = tmp_553652956; + result_553652383 = tmp_553652393; - return result_553652946; + return result_553652383; } @@ -14188,8 +14564,8 @@ function isSelected_553648359(n_553648360, m_553648361) { } -function formatValue_553651936(result_553651939, result_553651939_Idx, value_553651940) { - result_553651939[result_553651939_Idx].push.apply(result_553651939[result_553651939_Idx], HEX24_385875976(value_553651940));; +function formatValue_553651408(result_553651411, result_553651411_Idx, value_553651412) { + result_553651411[result_553651411_Idx].push.apply(result_553651411[result_553651411_Idx], HEX24_385875976(value_553651412));; } @@ -14221,202 +14597,202 @@ function setAttr_754975512(n_754975513, key_754975514, val_754975515) { } -function sendAction_553651361(data_553651362, end_553651363) { +function sendAction_553650833(data_553650834, end_553650835) { if ((true && !(practiceMode_553648282[0]))) { Label1: { - var fmtRes_553651368 = [mnewString(0)]; - fmtRes_553651368[0].push.apply(fmtRes_553651368[0], [97,99,116,105,111,110,58]);; - formatValue_1728053380(fmtRes_553651368, 0, data_553651362); + var fmtRes_553650840 = [mnewString(0)]; + fmtRes_553650840[0].push.apply(fmtRes_553650840[0], [97,99,116,105,111,110,58]);; + formatValue_1728053380(fmtRes_553650840, 0, data_553650834); }; - peer_553648238[0].Field0(toJSStr(fmtRes_553651368[0])); - if (end_553651363) { + peer_553648238[0].Field0(toJSStr(fmtRes_553650840[0])); + if (end_553650835) { turn_553648240[0] = false; rawEcho([115,101,110,100,32,97,99,116,105,111,110,32,99,104,97,110,103,105,110,103,32,116,117,114,110]); } } - if (end_553651363) { - endRound_553650663(); + if (end_553650835) { + endRound_553650661(); } } -function sendBuy_553651903(option_553651904, tile_553651905) { +function sendBuy_553651375(option_553651376, tile_553651377) { Label1: { - var fmtRes_553651910 = [mnewString(0)]; - fmtRes_553651910[0].push.apply(fmtRes_553651910[0], [98,117,121,44]);; - formatValue_1728053380(fmtRes_553651910, 0, option_553651904.Field0); - fmtRes_553651910[0].push.apply(fmtRes_553651910[0], [44]);; - formatValue_1728053380(fmtRes_553651910, 0, HEX24_385875976(tile_553651905.Field1)); - fmtRes_553651910[0].push.apply(fmtRes_553651910[0], [44]);; - formatValue_1728053380(fmtRes_553651910, 0, HEX24_385875976(tile_553651905.Field0)); + var fmtRes_553651382 = [mnewString(0)]; + fmtRes_553651382[0].push.apply(fmtRes_553651382[0], [98,117,121,44]);; + formatValue_1728053380(fmtRes_553651382, 0, option_553651376.Field0); + fmtRes_553651382[0].push.apply(fmtRes_553651382[0], [44]);; + formatValue_1728053380(fmtRes_553651382, 0, HEX24_385875976(tile_553651377.Field1)); + fmtRes_553651382[0].push.apply(fmtRes_553651382[0], [44]);; + formatValue_1728053380(fmtRes_553651382, 0, HEX24_385875976(tile_553651377.Field0)); }; - sendAction_553651361(fmtRes_553651910[0], false); + sendAction_553650833(fmtRes_553651382[0], false); } -function createBuyButton_553652961(option_553652962, p_553652963) { +function createBuyButton_553652398(option_553652399, p_553652400) { var Temporary1; var Temporary2; - option_553652962 = nimCopy(null, option_553652962, NTI1476395027); + option_553652399 = nimCopy(null, option_553652399, NTI1476395027); -function HEX3Aanonymous_553652991(__553652992, __553652993) { - sendBuy_553651903(option_553652962, p_553652963.tile); - buy_1879048300(p_553652963, option_553652962, theBoard_553648257[0], theState_553648258[0]); +function HEX3Aanonymous_553652428(__553652429, __553652430) { + sendBuy_553651375(option_553652399, p_553652400.tile); + buy_1879048300(p_553652400, option_553652399, theBoard_553648257[0], theState_553648258[0]); clear_553648458(); } - var result_553652964 = null; + var result_553652401 = null; BeforeRet: { - if (!(option_553652962.Field3(p_553652963, theBoard_553648257[0], theState_553648258[0]))) { - var tmp_553652965 = tree_754975616(44, []); - result_553652964 = tmp_553652965; + if (!(option_553652399.Field3(p_553652400, theBoard_553648257[0], theState_553648258[0]))) { + var tmp_553652402 = tree_754975616(44, []); + result_553652401 = tmp_553652402; break BeforeRet; } else { - var cost_553652966 = option_553652962.Field1(p_553652963, theBoard_553648257[0], theState_553648258[0]); - var disabled_553652967 = (busy_553648363() || (getMoney_1879048207(side_553648239[0], theState_553648258[0]) < cost_553652966)); - if ((0 <= cost_553652966)) { + var cost_553652403 = option_553652399.Field1(p_553652400, theBoard_553648257[0], theState_553648258[0]); + var disabled_553652404 = (busy_553648363() || (getMoney_1879048207(side_553648239[0], theState_553648258[0]) < cost_553652403)); + if ((0 <= cost_553652403)) { Temporary2 = [45]; } else { Temporary2 = [43]; } - var sign_553652968 = nimCopy(null, Temporary2, NTI33554449); - var tmp_553652969 = tree_754975616(195, []); - setAttr_754975512(tmp_553652969, "disabled", disabled_553652967); + var sign_553652405 = nimCopy(null, Temporary2, NTI33554449); + var tmp_553652406 = tree_754975616(195, []); + setAttr_754975512(tmp_553652406, "disabled", disabled_553652404); Label3: { - var fmtRes_553652974 = [mnewString(0)]; - formatValue_1728053380(fmtRes_553652974, 0, option_553652962.Field0); - fmtRes_553652974[0].push.apply(fmtRes_553652974[0], [58,32]);; - formatValue_1728053380(fmtRes_553652974, 0, sign_553652968); - fmtRes_553652974[0].push.apply(fmtRes_553652974[0], [36]);; - formatValue_553651936(fmtRes_553652974, 0, absInt(cost_553652966)); + var fmtRes_553652411 = [mnewString(0)]; + formatValue_1728053380(fmtRes_553652411, 0, option_553652399.Field0); + fmtRes_553652411[0].push.apply(fmtRes_553652411[0], [58,32]);; + formatValue_1728053380(fmtRes_553652411, 0, sign_553652405); + fmtRes_553652411[0].push.apply(fmtRes_553652411[0], [36]);; + formatValue_553651408(fmtRes_553652411, 0, absInt(cost_553652403)); }; - add_754975552(tmp_553652969, text_754975684(fmtRes_553652974[0])); - addEventHandler_721422102(tmp_553652969, 0, HEX3Aanonymous_553652991, kxi__); - Temporary1 = tmp_553652969; + add_754975552(tmp_553652406, text_754975684(fmtRes_553652411[0])); + addEventHandler_721422102(tmp_553652406, 0, HEX3Aanonymous_553652428, kxi__); + Temporary1 = tmp_553652406; } - result_553652964 = Temporary1; + result_553652401 = Temporary1; }; - return result_553652964; + return result_553652401; } -function createPieceProfile_553652994(p_553652995) { - var result_553652996 = null; +function createPieceProfile_553652431(p_553652432) { + var result_553652433 = null; - var imgClass_553652997 = []; - if ((!((side_553648239[0] == p_553652995.color)) && p_553652995.rotate)) { - imgClass_553652997.push.apply(imgClass_553652997, [114,111,116,97,116,101,32]);; + var imgClass_553652434 = []; + if ((!((side_553648239[0] == p_553652432.color)) && p_553652432.rotate)) { + imgClass_553652434.push.apply(imgClass_553652434, [114,111,116,97,116,101,32]);; } - var src_553653002 = [46,47,105,99,111,110,115,47]; - if (p_553652995.colorable) { - src_553653002.push.apply(src_553653002, reprEnum(p_553652995.color, NTI1476395017));; + var src_553652439 = [46,47,105,99,111,110,115,47]; + if (p_553652432.colorable) { + src_553652439.push.apply(src_553652439, reprEnum(p_553652432.color, NTI1476395017));; } - var name_553653009 = reprEnum(p_553652995.item, NTI1476395016); - var tmp_553653010 = tree_754975616(44, []); - tmp_553653010.class = " piece-row "; - var tmp_553653011 = tree_754975616(24, []); - add_754975552(tmp_553653011, text_754975684(name_553653009)); - add_754975552(tmp_553653010, tmp_553653011); - var tmp_553653012 = tree_754975616(76, []); - tmp_553653012.class = toJSStr(imgClass_553652997); - setAttr_754975467(tmp_553653012, "src", toJSStr((src_553653002 || []).concat(p_553652995.filePath || []))); - add_754975552(tmp_553653010, tmp_553653012); - var tmp_553653013 = tree_754975616(32, []); - tmp_553653013.class = "take"; + var name_553652446 = reprEnum(p_553652432.item, NTI1476395016); + var tmp_553652447 = tree_754975616(44, []); + tmp_553652447.class = " piece-row "; + var tmp_553652448 = tree_754975616(24, []); + add_754975552(tmp_553652448, text_754975684(name_553652446)); + add_754975552(tmp_553652447, tmp_553652448); + var tmp_553652449 = tree_754975616(76, []); + tmp_553652449.class = toJSStr(imgClass_553652434); + setAttr_754975467(tmp_553652449, "src", toJSStr((src_553652439 || []).concat(p_553652432.filePath || []))); + add_754975552(tmp_553652447, tmp_553652449); + var tmp_553652450 = tree_754975616(32, []); + tmp_553652450.class = "take"; Label1: { - var fmtRes_553653019 = [mnewString(0)]; - fmtRes_553653019[0].push.apply(fmtRes_553653019[0], [75,105,108,108,115,58,32]);; - formatValue_553651936(fmtRes_553653019, 0, p_553652995.piecesTaken); - fmtRes_553653019[0].push.apply(fmtRes_553653019[0], [32,112,105,101,99,101,115,46]);; + var fmtRes_553652456 = [mnewString(0)]; + fmtRes_553652456[0].push.apply(fmtRes_553652456[0], [75,105,108,108,115,58,32]);; + formatValue_553651408(fmtRes_553652456, 0, p_553652432.piecesTaken); + fmtRes_553652456[0].push.apply(fmtRes_553652456[0], [32,112,105,101,99,101,115,46]);; }; - add_754975552(tmp_553653013, text_754975684(fmtRes_553653019[0])); - add_754975552(tmp_553653010, tmp_553653013); - if (isColor_1476396052(p_553652995, side_553648239[0])) { - var tmp_553653014 = tree_754975616(44, []); - tmp_553653014.class = "row"; + add_754975552(tmp_553652450, text_754975684(fmtRes_553652456[0])); + add_754975552(tmp_553652447, tmp_553652450); + if (isColor_1476396053(p_553652432, side_553648239[0])) { + var tmp_553652451 = tree_754975616(44, []); + tmp_553652451.class = "row"; Label2: { - var option_553653029 = {Field0: [], Field1: null, Field2: null, Field3: null}; - var colontmp__553657042 = []; - colontmp__553657042 = theState_553648258[0].Field1[chckIndx(p_553652995.color, 0, (theState_553648258[0].Field1).length - 1)].buys; - var i_553657043 = 0; - var L_553657044 = (colontmp__553657042).length; + var option_553652466 = {Field0: [], Field1: null, Field2: null, Field3: null}; + var colontmp__553655200 = []; + colontmp__553655200 = theState_553648258[0].Field1[chckIndx(p_553652432.color, 0, (theState_553648258[0].Field1).length - 1)].buys; + var i_553655201 = 0; + var L_553655202 = (colontmp__553655200).length; Label3: { Label4: while (true) { - if (!(i_553657043 < L_553657044)) break Label4; - option_553653029 = colontmp__553657042[chckIndx(i_553657043, 0, (colontmp__553657042).length - 1)]; - add_754975552(tmp_553653014, createBuyButton_553652961(option_553653029, p_553652995)); - i_553657043 += 1; - if (!(((colontmp__553657042).length == L_553657044))) { + if (!(i_553655201 < L_553655202)) break Label4; + option_553652466 = colontmp__553655200[chckIndx(i_553655201, 0, (colontmp__553655200).length - 1)]; + add_754975552(tmp_553652451, createBuyButton_553652398(option_553652466, p_553652432)); + i_553655201 += 1; + if (!(((colontmp__553655200).length == L_553655202))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - add_754975552(tmp_553653010, tmp_553653014); + add_754975552(tmp_553652447, tmp_553652451); } - result_553652996 = tmp_553653010; + result_553652433 = tmp_553652447; - return result_553652996; + return result_553652433; } -function getKing_1476396248(side_1476396249, board_1476396250) { - var result_1476396251 = {Field0: 0, Field1: 0}; +function getKing_1476396249(side_1476396250, board_1476396251) { + var result_1476396252 = {Field0: 0, Field1: 0}; BeforeRet: { Label1: { - var i_1476396252 = 0; - var j_1476396253 = 0; + var i_1476396253 = 0; + var j_1476396254 = 0; Label2: { - var i_553657051 = 0; - var i_553657052 = 0; + var i_553655209 = 0; + var i_553655210 = 0; Label3: { Label4: while (true) { - if (!(i_553657052 < 8)) break Label4; - i_553657051 = i_553657052; + if (!(i_553655210 < 8)) break Label4; + i_553655209 = i_553655210; Label5: { - var j_553657055 = 0; - var i_553657056 = 0; + var j_553655213 = 0; + var i_553655214 = 0; Label6: { Label7: while (true) { - if (!(i_553657056 < 8)) break Label7; - j_553657055 = i_553657056; - i_1476396252 = i_553657051; - j_1476396253 = j_553657055; - if (((board_1476396250[chckIndx(i_1476396252, 0, (board_1476396250).length - 1)][chckIndx(j_1476396253, 0, (board_1476396250[chckIndx(i_1476396252, 0, (board_1476396250).length - 1)]).length - 1)].item == 0) && (board_1476396250[chckIndx(i_1476396252, 0, (board_1476396250).length - 1)][chckIndx(j_1476396253, 0, (board_1476396250[chckIndx(i_1476396252, 0, (board_1476396250).length - 1)]).length - 1)].color == side_1476396249))) { - result_1476396251 = nimCopy(result_1476396251, board_1476396250[chckIndx(i_1476396252, 0, (board_1476396250).length - 1)][chckIndx(j_1476396253, 0, (board_1476396250[chckIndx(i_1476396252, 0, (board_1476396250).length - 1)]).length - 1)].tile, NTI1476395011); + if (!(i_553655214 < 8)) break Label7; + j_553655213 = i_553655214; + i_1476396253 = i_553655209; + j_1476396254 = j_553655213; + if (((board_1476396251[chckIndx(i_1476396253, 0, (board_1476396251).length - 1)][chckIndx(j_1476396254, 0, (board_1476396251[chckIndx(i_1476396253, 0, (board_1476396251).length - 1)]).length - 1)].item == 0) && (board_1476396251[chckIndx(i_1476396253, 0, (board_1476396251).length - 1)][chckIndx(j_1476396254, 0, (board_1476396251[chckIndx(i_1476396253, 0, (board_1476396251).length - 1)]).length - 1)].color == side_1476396250))) { + result_1476396252 = nimCopy(result_1476396252, board_1476396251[chckIndx(i_1476396253, 0, (board_1476396251).length - 1)][chckIndx(j_1476396254, 0, (board_1476396251[chckIndx(i_1476396253, 0, (board_1476396251).length - 1)]).length - 1)].tile, NTI1476395011); break BeforeRet; } - i_553657056 = addInt(i_553657056, 1); + i_553655214 = addInt(i_553655214, 1); } }; }; - i_553657052 = addInt(i_553657052, 1); + i_553655210 = addInt(i_553655210, 1); } }; }; }; }; - return result_1476396251; + return result_1476396252; } @@ -14427,19 +14803,19 @@ function hasGlass_1946157064(side_1946157065, state_1946157066) { Label1: { var g_1946157092 = 0; Label2: { - var v_553657064 = 0; - var res_553657065 = 0; + var v_553655222 = 0; + var res_553655223 = 0; Label3: { Label4: while (true) { - if (!(res_553657065 <= 4)) break Label4; - v_553657064 = res_553657065; - g_1946157092 = v_553657064; - if (isSome_1845497264(state_1946157066.Field1[chckIndx(side_1946157065, 0, (state_1946157066.Field1).length - 1)].glass[chckIndx(g_1946157092, 0, (state_1946157066.Field1[chckIndx(side_1946157065, 0, (state_1946157066.Field1).length - 1)].glass).length - 1)])) { + if (!(res_553655223 <= 4)) break Label4; + v_553655222 = res_553655223; + g_1946157092 = v_553655222; + if (isSome_1845499241(state_1946157066.Field1[chckIndx(side_1946157065, 0, (state_1946157066.Field1).length - 1)].glass[chckIndx(g_1946157092, 0, (state_1946157066.Field1[chckIndx(side_1946157065, 0, (state_1946157066.Field1).length - 1)].glass).length - 1)])) { result_1946157067 = true; break BeforeRet; } - res_553657065 = addInt(res_553657065, 1); + res_553655223 = addInt(res_553655223, 1); } }; }; @@ -14452,49 +14828,49 @@ function hasGlass_1946157064(side_1946157065, state_1946157066) { } -function isNone_553653339(self_553653341) { - var result_553653342 = false; +function isNone_553652776(self_553652778) { + var result_553652779 = false; - result_553653342 = !(self_553653341.has); + result_553652779 = !(self_553652778.has); - return result_553653342; + return result_553652779; } -function get_553653356(self_553653358) { - var result_553653359 = null; - var result_553653359_Idx = 0; +function get_553652793(self_553652795) { + var result_553652796 = null; + var result_553652796_Idx = 0; BeforeRet: { - if (isNone_553653339(self_553653358)) { + if (isNone_553652776(self_553652795)) { raiseException({message: [67,97,110,39,116,32,111,98,116,97,105,110,32,97,32,118,97,108,117,101,32,102,114,111,109,32,97,32,96,110,111,110,101,96], parent: null, m_type: NTI1493172247, name: null, trace: [], up: null}, "UnpackDefect"); } - result_553653359 = self_553653358; result_553653359_Idx = "val"; + result_553652796 = self_553652795; result_553652796_Idx = "val"; break BeforeRet; }; - return [result_553653359, result_553653359_Idx]; + return [result_553652796, result_553652796_Idx]; } -function some_553653388(val_553653390) { - var result_553653391 = ({val: 0, has: false}); +function some_553652825(val_553652827) { + var result_553652828 = ({val: 0, has: false}); - result_553653391.has = true; - result_553653391.val = val_553653390; + result_553652828.has = true; + result_553652828.val = val_553652827; - return result_553653391; + return result_553652828; } -function createGlassOnClick_553653326(glass_553653327) { +function createGlassOnClick_553652763(glass_553652764) { -function HEX3Aanonymous_553653332(__553653333, __553653334) { +function HEX3Aanonymous_553652769(__553652770, __553652771) { var Temporary1; - if ((isNone_553653339(selectedGlass_553648304[0]) || !(((Temporary1 = get_553653356(selectedGlass_553648304[0]), Temporary1)[0][Temporary1[1]] == glass_553653327)))) { - selectedGlass_553648304[0] = nimCopy(selectedGlass_553648304[0], some_553653388(glass_553653327), NTI553648231); + if ((isNone_553652776(selectedGlass_553648304[0]) || !(((Temporary1 = get_553652793(selectedGlass_553648304[0]), Temporary1)[0][Temporary1[1]] == glass_553652764)))) { + selectedGlass_553648304[0] = nimCopy(selectedGlass_553648304[0], some_553652825(glass_553652764), NTI553648231); } else { selectedGlass_553648304[0] = nimCopy(selectedGlass_553648304[0], none_553648296(), NTI553648231); @@ -14504,24 +14880,24 @@ function HEX3Aanonymous_553653332(__553653333, __553653334) { } - var result_553653331 = null; + var result_553652768 = null; - result_553653331 = HEX3Aanonymous_553653332; + result_553652768 = HEX3Aanonymous_553652769; - return result_553653331; + return result_553652768; } -function isSome_553653450(self_553653452) { - var result_553653453 = false; +function isSome_553652887(self_553652889) { + var result_553652890 = false; - result_553653453 = self_553653452.has; + result_553652890 = self_553652889.has; - return result_553653453; + return result_553652890; } -function cancelAllPicks_553652231() { +function cancelAllPicks_553651668() { promptHistory_553648324[0] = nimCopy(null, [], NTI1090519066); promptStack_553648329[0] = nimCopy(null, [], NTI1090519066); picks_553648338[0] = nimCopy(null, [], NTI1543504077); @@ -14533,74 +14909,74 @@ function cancelAllPicks_553652231() { } -function cancelAllPicks_553652263(__553652264, __553652265) { - cancelAllPicks_553652231(); +function cancelAllPicks_553651700(__553651701, __553651702) { + cancelAllPicks_553651668(); } -function formatValue_553653481(result_553653484, result_553653484_Idx, value_553653485) { - formatValue_1728053380(result_553653484, result_553653484_Idx, reprEnum(value_553653485, NTI1476395029)); +function formatValue_553652918(result_553652921, result_553652921_Idx, value_553652922) { + formatValue_1728053380(result_553652921, result_553652921_Idx, reprEnum(value_553652922, NTI1476395029)); } -function reversed_553653590(a_553653592) { - var result_553653593 = []; +function reversed_553653027(a_553653029) { + var result_553653030 = []; - var n_553653597 = (a_553653592).length; - if (result_553653593.length < chckRange(n_553653597, 0, 2147483647)) { for (var i = result_553653593.length ; i < chckRange(n_553653597, 0, 2147483647) ; ++i) result_553653593.push([]); } - else { result_553653593.length = chckRange(n_553653597, 0, 2147483647); }; + var n_553653034 = (a_553653029).length; + if (result_553653030.length < chckRange(n_553653034, 0, 2147483647)) { for (var i = result_553653030.length ; i < chckRange(n_553653034, 0, 2147483647) ; ++i) result_553653030.push([]); } + else { result_553653030.length = chckRange(n_553653034, 0, 2147483647); }; Label1: { - var i_553653606 = 0; - var i_553657090 = 0; + var i_553653043 = 0; + var i_553655248 = 0; Label2: { Label3: while (true) { - if (!(i_553657090 < n_553653597)) break Label3; - i_553653606 = i_553657090; - result_553653593[chckIndx(i_553653606, 0, (result_553653593).length - 1)] = nimCopy(null, a_553653592[chckIndx(subInt(n_553653597, addInt(i_553653606, 1)), 0, (a_553653592).length - 1)], NTI33554449); - i_553657090 = addInt(i_553657090, 1); + if (!(i_553655248 < n_553653034)) break Label3; + i_553653043 = i_553655248; + result_553653030[chckIndx(i_553653043, 0, (result_553653030).length - 1)] = nimCopy(null, a_553653029[chckIndx(subInt(n_553653034, addInt(i_553653043, 1)), 0, (a_553653029).length - 1)], NTI33554449); + i_553655248 = addInt(i_553655248, 1); } }; }; - return result_553653593; + return result_553653030; } -function cycle_553653564(s_553653566, n_553653567) { - var result_553653568 = []; +function cycle_553653001(s_553653003, n_553653004) { + var result_553653005 = []; - result_553653568 = nimCopy(null, newSeq_536871458(chckRange(mulInt(n_553653567, (s_553653566).length), 0, 2147483647)), NTI536871233); - var o_553653575 = 0; + result_553653005 = nimCopy(null, newSeq_536871458(chckRange(mulInt(n_553653004, (s_553653003).length), 0, 2147483647)), NTI536871233); + var o_553653012 = 0; Label1: { - var x_553653580 = 0; - var colontmp__553657096 = 0; - colontmp__553657096 = n_553653567; - var i_553657097 = 0; + var x_553653017 = 0; + var colontmp__553655254 = 0; + colontmp__553655254 = n_553653004; + var i_553655255 = 0; Label2: { Label3: while (true) { - if (!(i_553657097 < colontmp__553657096)) break Label3; - x_553653580 = i_553657097; + if (!(i_553655255 < colontmp__553655254)) break Label3; + x_553653017 = i_553655255; Label4: { - var e_553653584 = []; - var i_553657094 = 0; + var e_553653021 = []; + var i_553655252 = 0; Label5: { Label6: while (true) { - if (!(i_553657094 < (s_553653566).length)) break Label6; - e_553653584 = s_553653566[chckIndx(i_553657094, 0, (s_553653566).length - 1)]; - result_553653568[chckIndx(o_553653575, 0, (result_553653568).length - 1)] = nimCopy(null, e_553653584, NTI33554449); - o_553653575 = addInt(o_553653575, 1); - i_553657094 += 1; + if (!(i_553655252 < (s_553653003).length)) break Label6; + e_553653021 = s_553653003[chckIndx(i_553655252, 0, (s_553653003).length - 1)]; + result_553653005[chckIndx(o_553653012, 0, (result_553653005).length - 1)] = nimCopy(null, e_553653021, NTI33554449); + o_553653012 = addInt(o_553653012, 1); + i_553655252 += 1; } }; }; - i_553657097 = addInt(i_553657097, 1); + i_553655255 = addInt(i_553655255, 1); } }; }; - return result_553653568; + return result_553653005; } @@ -14612,48 +14988,48 @@ function HEX3Aanonymous_1946157177(board_1946157178, state_1946157179) { var i_1946157180 = 0; var j_1946157181 = 0; Label2: { - var i_553657112 = 0; - var i_553657113 = 0; + var i_553655270 = 0; + var i_553655271 = 0; Label3: { Label4: while (true) { - if (!(i_553657113 < 8)) break Label4; - i_553657112 = i_553657113; + if (!(i_553655271 < 8)) break Label4; + i_553655270 = i_553655271; Label5: { - var j_553657116 = 0; - var i_553657117 = 0; + var j_553655274 = 0; + var i_553655275 = 0; Label6: { Label7: while (true) { - if (!(i_553657117 < 8)) break Label7; - j_553657116 = i_553657117; - i_1946157180 = i_553657112; - j_1946157181 = j_553657116; + if (!(i_553655275 < 8)) break Label7; + j_553655274 = i_553655275; + i_1946157180 = i_553655270; + j_1946157181 = j_553655274; Label8: { var indexIndex_1946157205 = 0; var index_1946157206 = 0; - var i_553657108 = 0; - var L_553657109 = (indexes_1946157176).length; + var i_553655266 = 0; + var L_553655267 = (indexes_1946157176).length; Label9: { Label10: while (true) { - if (!(i_553657108 < L_553657109)) break Label10; - indexIndex_1946157205 = i_553657108; - index_1946157206 = indexes_1946157176[chckIndx(i_553657108, 0, (indexes_1946157176).length - 1)]; + if (!(i_553655266 < L_553655267)) break Label10; + indexIndex_1946157205 = i_553655266; + index_1946157206 = indexes_1946157176[chckIndx(i_553655266, 0, (indexes_1946157176).length - 1)]; if ((index_1946157206 == board_1946157178[chckIndx(i_1946157180, 0, (board_1946157178).length - 1)][chckIndx(j_1946157181, 0, (board_1946157178[chckIndx(i_1946157180, 0, (board_1946157178).length - 1)]).length - 1)].index)) { action_1946157103(board_1946157178[chckIndx(i_1946157180, 0, (board_1946157178).length - 1)][chckIndx(j_1946157181, 0, (board_1946157178[chckIndx(i_1946157180, 0, (board_1946157178).length - 1)]).length - 1)], tiles_1946157102[chckIndx(indexIndex_1946157205, 0, (tiles_1946157102).length - 1)], board_1946157178, state_1946157179); } - i_553657108 += 1; - if (!(((indexes_1946157176).length == L_553657109))) { + i_553655266 += 1; + if (!(((indexes_1946157176).length == L_553655267))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(187, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - i_553657117 = addInt(i_553657117, 1); + i_553655275 = addInt(i_553655275, 1); } }; }; - i_553657113 = addInt(i_553657113, 1); + i_553655271 = addInt(i_553655271, 1); } }; }; @@ -14669,16 +15045,16 @@ function HEX3Aanonymous_1946157177(board_1946157178, state_1946157179) { var resultHEX60gensym0_1946157167 = newSeq_1728054184(chckRange((pieces_1946157101).length, 0, 2147483647)); Label2: { var it_1946157171 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - var i_553657102 = 0; - var L_553657103 = (pieces_1946157101).length; + var i_553655260 = 0; + var L_553655261 = (pieces_1946157101).length; Label3: { Label4: while (true) { - if (!(i_553657102 < L_553657103)) break Label4; - it_1946157171 = pieces_1946157101[chckIndx(i_553657102, 0, (pieces_1946157101).length - 1)]; + if (!(i_553655260 < L_553655261)) break Label4; + it_1946157171 = pieces_1946157101[chckIndx(i_553655260, 0, (pieces_1946157101).length - 1)]; resultHEX60gensym0_1946157167[chckIndx(iHEX60gensym0_1946157160, 0, (resultHEX60gensym0_1946157167).length - 1)] = it_1946157171.index; iHEX60gensym0_1946157160 = addInt(iHEX60gensym0_1946157160, 1); - i_553657102 += 1; - if (!(((pieces_1946157101).length == L_553657103))) { + i_553655260 += 1; + if (!(((pieces_1946157101).length == L_553655261))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -14693,929 +15069,564 @@ function HEX3Aanonymous_1946157177(board_1946157178, state_1946157179) { } -function createSendGlass_553651926(group_553651927) { +function createSendGlass_553651398(group_553651399) { -function HEX3Aanonymous_553651930() { +function HEX3Aanonymous_553651402() { Label1: { - var fmtRes_553651935 = [mnewString(0)]; - fmtRes_553651935[0].push.apply(fmtRes_553651935[0], [99,97,115,116,105,110,103,99,111,109,112,108,101,116,101,44]);; - formatValue_553651936(fmtRes_553651935, 0, group_553651927); + var fmtRes_553651407 = [mnewString(0)]; + fmtRes_553651407[0].push.apply(fmtRes_553651407[0], [99,97,115,116,105,110,103,99,111,109,112,108,101,116,101,44]);; + formatValue_553651408(fmtRes_553651407, 0, group_553651399); }; - sendAction_553651361(fmtRes_553651935[0], true); + sendAction_553650833(fmtRes_553651407[0], true); } - var result_553651929 = null; + var result_553651401 = null; - result_553651929 = HEX3Aanonymous_553651930; + result_553651401 = HEX3Aanonymous_553651402; - return result_553651929; + return result_553651401; } -function createCancelGlass_553651942(group_553651943) { +function createCancelGlass_553651414(group_553651415) { -function HEX3Aanonymous_553651946() { +function HEX3Aanonymous_553651418() { Label1: { - var i_553651947 = 0; - var j_553651948 = 0; + var i_553651419 = 0; + var j_553651420 = 0; Label2: { - var i_553657127 = 0; - var i_553657128 = 0; + var i_553655285 = 0; + var i_553655286 = 0; Label3: { Label4: while (true) { - if (!(i_553657128 < 8)) break Label4; - i_553657127 = i_553657128; + if (!(i_553655286 < 8)) break Label4; + i_553655285 = i_553655286; Label5: { - var j_553657131 = 0; - var i_553657132 = 0; + var j_553655289 = 0; + var i_553655290 = 0; Label6: { Label7: while (true) { - if (!(i_553657132 < 8)) break Label7; - j_553657131 = i_553657132; - i_553651947 = i_553657127; - j_553651948 = j_553657131; - var resultHEX60gensym152_553651958 = newSeq_553651950(0); + if (!(i_553655290 < 8)) break Label7; + j_553655289 = i_553655290; + i_553651419 = i_553655285; + j_553651420 = j_553655289; + var resultHEX60gensym88_553651430 = newSeq_553651422(0); Label8: { - var it_553651962 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - var colontmp__553657122 = []; - colontmp__553657122 = theBoard_553648257[0][chckIndx(i_553651947, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651948, 0, (theBoard_553648257[0][chckIndx(i_553651947, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; - var i_553657123 = 0; - var L_553657124 = (colontmp__553657122).length; + var it_553651434 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655280 = []; + colontmp__553655280 = theBoard_553648257[0][chckIndx(i_553651419, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651420, 0, (theBoard_553648257[0][chckIndx(i_553651419, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655281 = 0; + var L_553655282 = (colontmp__553655280).length; Label9: { Label10: while (true) { - if (!(i_553657123 < L_553657124)) break Label10; - it_553651962 = colontmp__553657122[chckIndx(i_553657123, 0, (colontmp__553657122).length - 1)]; - if (!((it_553651962.Field1 == group_553651943))) { - var Temporary11 = nimCopy(null, it_553651962, NTI1476395028); - resultHEX60gensym152_553651958.push(Temporary11);; + if (!(i_553655281 < L_553655282)) break Label10; + it_553651434 = colontmp__553655280[chckIndx(i_553655281, 0, (colontmp__553655280).length - 1)]; + if (!((it_553651434.Field1 == group_553651415))) { + var Temporary11 = nimCopy(null, it_553651434, NTI1476395028); + resultHEX60gensym88_553651430.push(Temporary11);; } - i_553657123 += 1; - if (!(((colontmp__553657122).length == L_553657124))) { + i_553655281 += 1; + if (!(((colontmp__553655280).length == L_553655282))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - theBoard_553648257[0][chckIndx(i_553651947, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651948, 0, (theBoard_553648257[0][chckIndx(i_553651947, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym152_553651958, NTI553650598); - i_553657132 = addInt(i_553657132, 1); + theBoard_553648257[0][chckIndx(i_553651419, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651420, 0, (theBoard_553648257[0][chckIndx(i_553651419, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym88_553651430, NTI553650189); + i_553655290 = addInt(i_553655290, 1); } }; }; - i_553657128 = addInt(i_553657128, 1); + i_553655286 = addInt(i_553655286, 1); } }; }; }; Label12: { - var fmtRes_553651971 = [mnewString(0)]; - fmtRes_553651971[0].push.apply(fmtRes_553651971[0], [99,97,115,116,105,110,103,99,97,110,99,101,108,44]);; - formatValue_553651936(fmtRes_553651971, 0, group_553651943); + var fmtRes_553651443 = [mnewString(0)]; + fmtRes_553651443[0].push.apply(fmtRes_553651443[0], [99,97,115,116,105,110,103,99,97,110,99,101,108,44]);; + formatValue_553651408(fmtRes_553651443, 0, group_553651415); }; - sendAction_553651361(fmtRes_553651971[0], true); + sendAction_553650833(fmtRes_553651443[0], true); } - var result_553651945 = null; + var result_553651417 = null; - result_553651945 = HEX3Aanonymous_553651946; + result_553651417 = HEX3Aanonymous_553651418; - return result_553651945; + return result_553651417; } -function HEX5BHEX5D_553653870(s_553653872, i_553653873) { - var result_553653874 = null; +function HEX5BHEX5D_553653307(s_553653309, i_553653310) { + var result_553653311 = null; - result_553653874 = s_553653872[chckIndx(subInt((s_553653872).length, i_553653873), 0, (s_553653872).length - 1)]; + result_553653311 = s_553653309[chckIndx(subInt((s_553653309).length, i_553653310), 0, (s_553653309).length - 1)]; - return result_553653874; + return result_553653311; } -function createGlassMenu_553653417() { +function createGlassMenu_553652854() { var Temporary5; -function HEX3Aanonymous_553653495(__553653496, __553653497) { +function HEX3Aanonymous_553652932(__553652933, __553652934) { -function HEX3Aanonymous_553653615() { +function HEX3Aanonymous_553653052() { Label1: { - var piece_553653656 = {Field0: 0, Field1: 0}; - var tile_553653657 = {Field0: 0, Field1: 0}; + var piece_553653093 = {Field0: 0, Field1: 0}; + var tile_553653094 = {Field0: 0, Field1: 0}; if (!((modInt((picks_553648338[0]).length, 2) == 0))) { - failedAssertImpl_268435541([112,105,101,99,101,46,110,105,109,40,49,50,57,44,32,53,41,32,96,115,46,108,101,110,32,109,111,100,32,50,32,61,61,32,48,96,32]); + failedAssertImpl_268435541([112,105,101,99,101,46,110,105,109,40,49,51,48,44,32,53,41,32,96,115,46,108,101,110,32,109,111,100,32,50,32,61,61,32,48,96,32]); } - var index_553657078 = 0; + var index_553655236 = 0; Label2: { Label3: while (true) { - if (!(index_553657078 < (picks_553648338[0]).length)) break Label3; - piece_553653656 = nimCopy(piece_553653656, picks_553648338[0][chckIndx(index_553657078, 0, (picks_553648338[0]).length - 1)], NTI1476395011); - tile_553653657 = nimCopy(tile_553653657, picks_553648338[0][chckIndx(addInt(index_553657078, 1), 0, (picks_553648338[0]).length - 1)], NTI1476395011); - rawEcho([112,105,101,99,101,116,105,108,101], HEX24_1476395715(piece_553653656), [116,105,108,101,44,32], HEX24_1476395715(tile_553653657)); - var Temporary4 = nimCopy(null, HEX5BHEX5D_1476395363(theBoard_553648257[0], piece_553653656), NTI1476395034); - pieces_553653520.push(Temporary4);; - var Temporary5 = nimCopy(null, tile_553653657, NTI1476395011); - tiles_553653525.push(Temporary5);; - newCasting_553653515.push({Field0: nimCopy(null, tile_553653657, NTI1476395011), Field1: group_553653514, Field2: glass_553653470});; - HEX5BHEX5D_1476395363(theBoard_553648257[0], piece_553653656).casts.push({Field0: nimCopy(null, tile_553653657, NTI1476395011), Field1: group_553653514, Field2: glass_553653470});; + if (!(index_553655236 < (picks_553648338[0]).length)) break Label3; + piece_553653093 = nimCopy(piece_553653093, picks_553648338[0][chckIndx(index_553655236, 0, (picks_553648338[0]).length - 1)], NTI1476395011); + tile_553653094 = nimCopy(tile_553653094, picks_553648338[0][chckIndx(addInt(index_553655236, 1), 0, (picks_553648338[0]).length - 1)], NTI1476395011); + rawEcho([112,105,101,99,101,116,105,108,101], HEX24_1476395716(piece_553653093), [116,105,108,101,44,32], HEX24_1476395716(tile_553653094)); + var Temporary4 = nimCopy(null, HEX5BHEX5D_1476395364(theBoard_553648257[0], piece_553653093), NTI1476395034); + pieces_553652957.push(Temporary4);; + var Temporary5 = nimCopy(null, tile_553653094, NTI1476395011); + tiles_553652962.push(Temporary5);; + newCasting_553652952.push({Field0: nimCopy(null, tile_553653094, NTI1476395011), Field1: group_553652951, Field2: glass_553652907});; + HEX5BHEX5D_1476395364(theBoard_553648257[0], piece_553653093).casts.push({Field0: nimCopy(null, tile_553653094, NTI1476395011), Field1: group_553652951, Field2: glass_553652907});; Label6: { - var fmtRes_553653794 = [mnewString(0)]; - fmtRes_553653794[0].push.apply(fmtRes_553653794[0], [99,97,115,116,105,110,103,115,116,97,114,116,44]);; - formatValue_553651936(fmtRes_553653794, 0, piece_553653656.Field1); - fmtRes_553653794[0].push.apply(fmtRes_553653794[0], [44]);; - formatValue_553651936(fmtRes_553653794, 0, piece_553653656.Field0); - fmtRes_553653794[0].push.apply(fmtRes_553653794[0], [44]);; - formatValue_553651936(fmtRes_553653794, 0, tile_553653657.Field1); - fmtRes_553653794[0].push.apply(fmtRes_553653794[0], [44]);; - formatValue_553651936(fmtRes_553653794, 0, tile_553653657.Field0); - fmtRes_553653794[0].push.apply(fmtRes_553653794[0], [44]);; - formatValue_553651936(fmtRes_553653794, 0, group_553653514); - fmtRes_553653794[0].push.apply(fmtRes_553653794[0], [44]);; - formatValue_553653481(fmtRes_553653794, 0, glass_553653470); + var fmtRes_553653231 = [mnewString(0)]; + fmtRes_553653231[0].push.apply(fmtRes_553653231[0], [99,97,115,116,105,110,103,115,116,97,114,116,44]);; + formatValue_553651408(fmtRes_553653231, 0, piece_553653093.Field1); + fmtRes_553653231[0].push.apply(fmtRes_553653231[0], [44]);; + formatValue_553651408(fmtRes_553653231, 0, piece_553653093.Field0); + fmtRes_553653231[0].push.apply(fmtRes_553653231[0], [44]);; + formatValue_553651408(fmtRes_553653231, 0, tile_553653094.Field1); + fmtRes_553653231[0].push.apply(fmtRes_553653231[0], [44]);; + formatValue_553651408(fmtRes_553653231, 0, tile_553653094.Field0); + fmtRes_553653231[0].push.apply(fmtRes_553653231[0], [44]);; + formatValue_553651408(fmtRes_553653231, 0, group_553652951); + fmtRes_553653231[0].push.apply(fmtRes_553653231[0], [44]);; + formatValue_553652918(fmtRes_553653231, 0, glass_553652907); }; - sendAction_553651361(fmtRes_553653794[0], false); - var _ = newGroup_1476395502(theState_553648258[0]); - index_553657078 = addInt(index_553657078, 2); + sendAction_553650833(fmtRes_553653231[0], false); + var _ = newGroup_1476395503(theState_553648258[0]); + index_553655236 = addInt(index_553655236, 2); } }; }; rawEcho([97,100,100,105,110,103,32,97,99,116,105,111,110,83,116,97,99,107]); - actionStack_553648309[0].push({Field0: ([67,97,115,116,105,110,103,32] || []).concat(reprEnum(glass_553653470, NTI1476395029) || []), Field1: 1, Field2: group_553653514, Field3: packageGlass_1946157100(pieces_553653520, tiles_553653525, action_553653541), Field4: true, Field5: false, Field6: createSendGlass_553651926(group_553653514), Field7: createCancelGlass_553651942(group_553653514)});; + actionStack_553648309[0].push({Field0: ([67,97,115,116,105,110,103,32] || []).concat(reprEnum(glass_553652907, NTI1476395029) || []), Field1: 1, Field2: group_553652951, Field3: packageGlass_1946157100(pieces_553652957, tiles_553652962, action_553652978), Field4: true, Field5: false, Field6: createSendGlass_553651398(group_553652951), Field7: createCancelGlass_553651414(group_553652951)});; rawEcho([97,118,116,105,111,110,115,116,97,99,107,32,97,100,100,101,100]); - sendAction_553651361([112,97,115,115], true); + sendAction_553650833([112,97,115,115], true); } -function HEX3Aanonymous_553653846() { - var result_553653847 = [[]]; +function HEX3Aanonymous_553653283() { + var result_553653284 = [[]]; if ((modInt(picksLeft_553648330[0], 2) == 0)) { Label1: { - var i_553653848 = 0; - var j_553653849 = 0; + var i_553653285 = 0; + var j_553653286 = 0; Label2: { - var i_553657082 = 0; - var i_553657083 = 0; + var i_553655240 = 0; + var i_553655241 = 0; Label3: { Label4: while (true) { - if (!(i_553657083 < 8)) break Label4; - i_553657082 = i_553657083; + if (!(i_553655241 < 8)) break Label4; + i_553655240 = i_553655241; Label5: { - var j_553657086 = 0; - var i_553657087 = 0; + var j_553655244 = 0; + var i_553655245 = 0; Label6: { Label7: while (true) { - if (!(i_553657087 < 8)) break Label7; - j_553657086 = i_553657087; - i_553653848 = i_553657082; - j_553653849 = j_553657086; - if (isColor_1476396052(theBoard_553648257[0][chckIndx(i_553653848, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553653849, 0, (theBoard_553648257[0][chckIndx(i_553653848, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], side_553648239[0])) { - var Temporary8 = nimCopy(null, theBoard_553648257[0][chckIndx(i_553653848, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553653849, 0, (theBoard_553648257[0][chckIndx(i_553653848, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].tile, NTI1476395011); - result_553653847[0].push(Temporary8);; + if (!(i_553655245 < 8)) break Label7; + j_553655244 = i_553655245; + i_553653285 = i_553655240; + j_553653286 = j_553655244; + if (isColor_1476396053(theBoard_553648257[0][chckIndx(i_553653285, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553653286, 0, (theBoard_553648257[0][chckIndx(i_553653285, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], side_553648239[0])) { + var Temporary8 = nimCopy(null, theBoard_553648257[0][chckIndx(i_553653285, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553653286, 0, (theBoard_553648257[0][chckIndx(i_553653285, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].tile, NTI1476395011); + result_553653284[0].push(Temporary8);; } - i_553657087 = addInt(i_553657087, 1); + i_553655245 = addInt(i_553655245, 1); } }; }; - i_553657083 = addInt(i_553657083, 1); + i_553655241 = addInt(i_553655241, 1); } }; }; }; } else { - var condition_553653869 = get_553652156(theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass[chckIndx(glass_553653470, 0, (theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass).length - 1)]).Field2; - add_1476395537(result_553653847, 0, condition_553653869(side_553648239[0], HEX5BHEX5D_1476395363(theBoard_553648257[0], HEX5BHEX5D_553653870(picks_553648338[0], 1)), theBoard_553648257[0], theState_553648258[0])); + var condition_553653306 = get_553651593(theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass[chckIndx(glass_553652907, 0, (theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass).length - 1)]).Field2; + add_1476395538(result_553653284, 0, condition_553653306(side_553648239[0], HEX5BHEX5D_1476395364(theBoard_553648257[0], HEX5BHEX5D_553653307(picks_553648338[0], 1)), theBoard_553648257[0], theState_553648258[0])); } - return result_553653847[0]; + return result_553653284[0]; } - var strength_553653513 = get_553652156(theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass[chckIndx(glass_553653470, 0, (theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass).length - 1)]).Field0; - var group_553653514 = newGroup_1476395502(theState_553648258[0]); - var newCasting_553653515 = []; - var pieces_553653520 = []; - var tiles_553653525 = []; - var action_553653541 = get_553652156(theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass[chckIndx(glass_553653470, 0, (theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass).length - 1)]).Field1; - picksLeft_553648330[0] = mulInt(strength_553653513, 2); + var strength_553652950 = get_553651593(theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass[chckIndx(glass_553652907, 0, (theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass).length - 1)]).Field0; + var group_553652951 = newGroup_1476395503(theState_553648258[0]); + var newCasting_553652952 = []; + var pieces_553652957 = []; + var tiles_553652962 = []; + var action_553652978 = get_553651593(theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass[chckIndx(glass_553652907, 0, (theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass).length - 1)]).Field1; + picksLeft_553648330[0] = mulInt(strength_553652950, 2); Label1: { - var fmtRes_553653546 = [mnewString(0)]; - fmtRes_553653546[0].push.apply(fmtRes_553653546[0], [80,105,99,107,32,97,32,112,105,101,99,101,32,116,111,32,115,116,97,114,116,32,99,97,115,116,105,110,103,32]);; - formatValue_553653481(fmtRes_553653546, 0, glass_553653470); - fmtRes_553653546[0].push.apply(fmtRes_553653546[0], [46]);; + var fmtRes_553652983 = [mnewString(0)]; + fmtRes_553652983[0].push.apply(fmtRes_553652983[0], [80,105,99,107,32,97,32,112,105,101,99,101,32,116,111,32,115,116,97,114,116,32,99,97,115,116,105,110,103,32]);; + formatValue_553652918(fmtRes_553652983, 0, glass_553652907); + fmtRes_553652983[0].push.apply(fmtRes_553652983[0], [46]);; }; Label2: { - var fmtRes_553653557 = [mnewString(0)]; - fmtRes_553653557[0].push.apply(fmtRes_553653557[0], [80,105,99,107,32,97,32,116,105,108,101,32,116,111,32,99,97,115,116,32]);; - formatValue_553653481(fmtRes_553653557, 0, glass_553653470); - fmtRes_553653557[0].push.apply(fmtRes_553653557[0], [32,111,110,46]);; + var fmtRes_553652994 = [mnewString(0)]; + fmtRes_553652994[0].push.apply(fmtRes_553652994[0], [80,105,99,107,32,97,32,116,105,108,101,32,116,111,32,99,97,115,116,32]);; + formatValue_553652918(fmtRes_553652994, 0, glass_553652907); + fmtRes_553652994[0].push.apply(fmtRes_553652994[0], [32,111,110,46]);; }; - promptStack_553648329[0] = nimCopy(null, reversed_553653590(cycle_553653564([nimCopy(null, fmtRes_553653546[0], NTI33554449), nimCopy(null, fmtRes_553653557[0], NTI33554449)], chckRange(strength_553653513, 0, 2147483647))), NTI553652399); + promptStack_553648329[0] = nimCopy(null, reversed_553653027(cycle_553653001([nimCopy(null, fmtRes_553652983[0], NTI33554449), nimCopy(null, fmtRes_553652994[0], NTI33554449)], chckRange(strength_553652950, 0, 2147483647))), NTI553651971); if (!(((promptStack_553648329[0]).length == picksLeft_553648330[0]))) { failedAssertImpl_268435541([109,97,105,110,46,110,105,109,40,57,48,54,44,32,50,49,41,32,96,112,114,111,109,112,116,83,116,97,99,107,46,108,101,110,32,61,61,32,112,105,99,107,115,76,101,102,116,96,32]); } - whenCollected_553648340[0] = HEX3Aanonymous_553653615; - getPickOptions_553648332[0] = HEX3Aanonymous_553653846; + whenCollected_553648340[0] = HEX3Aanonymous_553653052; + getPickOptions_553648332[0] = HEX3Aanonymous_553653283; pickOptions_553648333[0] = nimCopy(null, getPickOptions_553648332[0](), NTI553648299); clear_553648458(); } - var result_553653418 = null; + var result_553652855 = null; - var tmp_553653419 = tree_754975616(44, []); - tmp_553653419.class = " glass-menu "; - var tmp_553653420 = tree_754975616(24, []); - tmp_553653420.class = "title"; - add_754975552(tmp_553653420, text_754975684([71,108,97,115,115,101,115])); - add_754975552(tmp_553653419, tmp_553653420); - var tmp_553653421 = tree_754975616(44, []); - tmp_553653421.class = "glasses"; + var tmp_553652856 = tree_754975616(44, []); + tmp_553652856.class = " glass-menu "; + var tmp_553652857 = tree_754975616(24, []); + tmp_553652857.class = "title"; + add_754975552(tmp_553652857, text_754975684([71,108,97,115,115,101,115])); + add_754975552(tmp_553652856, tmp_553652857); + var tmp_553652858 = tree_754975616(44, []); + tmp_553652858.class = "glasses"; Label1: { - var glass_553653432 = 0; + var glass_553652869 = 0; Label2: { - var v_553657069 = 0; - var res_553657070 = 0; + var v_553655227 = 0; + var res_553655228 = 0; Label3: { Label4: while (true) { - if (!(res_553657070 <= 4)) break Label4; - v_553657069 = res_553657070; - glass_553653432 = v_553657069; - var tmp_553653422 = tree_754975616(44, []); - tmp_553653422.class = "glass"; - if (isSome_1845497264(theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass[chckIndx(glass_553653432, 0, (theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass).length - 1)])) { - var tmp_553653423 = tree_754975616(71, []); - tmp_553653423.class = toJSStr(([99,105,114,99,108,101,32] || []).concat(toLower_1157635480(reprEnum(glass_553653432, NTI1476395029)) || [])); - addEventHandler_721422102(tmp_553653423, 0, createGlassOnClick_553653326(glass_553653432), kxi__); - add_754975552(tmp_553653422, tmp_553653423); + if (!(res_553655228 <= 4)) break Label4; + v_553655227 = res_553655228; + glass_553652869 = v_553655227; + var tmp_553652859 = tree_754975616(44, []); + tmp_553652859.class = "glass"; + if (isSome_1845499241(theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass[chckIndx(glass_553652869, 0, (theState_553648258[0].Field1[chckIndx(side_553648239[0], 0, (theState_553648258[0].Field1).length - 1)].glass).length - 1)])) { + var tmp_553652860 = tree_754975616(71, []); + tmp_553652860.class = toJSStr(([99,105,114,99,108,101,32] || []).concat(toLower_1157635480(reprEnum(glass_553652869, NTI1476395029)) || [])); + addEventHandler_721422102(tmp_553652860, 0, createGlassOnClick_553652763(glass_553652869), kxi__); + add_754975552(tmp_553652859, tmp_553652860); } else { - var tmp_553653424 = tree_754975616(71, []); - tmp_553653424.class = "circle empty"; - add_754975552(tmp_553653422, tmp_553653424); + var tmp_553652861 = tree_754975616(71, []); + tmp_553652861.class = "circle empty"; + add_754975552(tmp_553652859, tmp_553652861); } - var tmp_553653425 = tree_754975616(32, []); - add_754975552(tmp_553653425, text_754975684(reprEnum(glass_553653432, NTI1476395029))); - add_754975552(tmp_553653422, tmp_553653425); - add_754975552(tmp_553653421, tmp_553653422); - res_553657070 = addInt(res_553657070, 1); + var tmp_553652862 = tree_754975616(32, []); + add_754975552(tmp_553652862, text_754975684(reprEnum(glass_553652869, NTI1476395029))); + add_754975552(tmp_553652859, tmp_553652862); + add_754975552(tmp_553652858, tmp_553652859); + res_553655228 = addInt(res_553655228, 1); } }; }; }; - add_754975552(tmp_553653419, tmp_553653421); - if (isSome_553653450(selectedGlass_553648304[0])) { - var glass_553653470 = (Temporary5 = get_553653356(selectedGlass_553648304[0]), Temporary5)[0][Temporary5[1]]; + add_754975552(tmp_553652856, tmp_553652858); + if (isSome_553652887(selectedGlass_553648304[0])) { + var glass_553652907 = (Temporary5 = get_553652793(selectedGlass_553648304[0]), Temporary5)[0][Temporary5[1]]; if (!((picksLeft_553648330[0] == 0))) { - var tmp_553653426 = tree_754975616(195, []); - tmp_553653426.class = "cancel"; - addEventHandler_721422102(tmp_553653426, 0, cancelAllPicks_553652263, kxi__); - add_754975552(tmp_553653426, text_754975684([67,97,110,99,101,108])); - add_754975552(tmp_553653419, tmp_553653426); + var tmp_553652863 = tree_754975616(195, []); + tmp_553652863.class = "cancel"; + addEventHandler_721422102(tmp_553652863, 0, cancelAllPicks_553651700, kxi__); + add_754975552(tmp_553652863, text_754975684([67,97,110,99,101,108])); + add_754975552(tmp_553652856, tmp_553652863); } - var zerocond_553653475 = ((glass_553653470 == 1) && (theState_553648258[0].Field0.turnNumber <= 1)); - var tmp_553653427 = tree_754975616(195, []); - tmp_553653427.class = "use"; - setAttr_754975512(tmp_553653427, "disabled", (busy_553648363() || zerocond_553653475)); + var zerocond_553652912 = ((glass_553652907 == 1) && (theState_553648258[0].Field0.turnNumber <= 1)); + var tmp_553652864 = tree_754975616(195, []); + tmp_553652864.class = "use"; + setAttr_754975512(tmp_553652864, "disabled", (busy_553648363() || zerocond_553652912)); Label6: { - var fmtRes_553653480 = [mnewString(0)]; - fmtRes_553653480[0].push.apply(fmtRes_553653480[0], [85,115,101,32]);; - formatValue_553653481(fmtRes_553653480, 0, glass_553653470); - }; - add_754975552(tmp_553653427, text_754975684(fmtRes_553653480[0])); - addEventHandler_721422102(tmp_553653427, 0, HEX3Aanonymous_553653495, kxi__); - add_754975552(tmp_553653419, tmp_553653427); - } - - result_553653418 = tmp_553653419; - - return result_553653418; - -} - -function HEX24_553654136(x_553654138) { - var result_553654139 = [[]]; - - result_553654139[0] = nimCopy(null, [40], NTI33554449); - var countHEX60gensym245_553654150 = 0; - if ((0 < countHEX60gensym245_553654150)) { - result_553654139[0].push.apply(result_553654139[0], [44,32]);; - } - - result_553654139[0].push.apply(result_553654139[0], [110,101,120,116,73,110,100,101,120]);; - result_553654139[0].push.apply(result_553654139[0], [58,32]);; - countHEX60gensym245_553654150 += 1; - addQuoted_889193861(result_553654139, 0, x_553654138.nextIndex); - if ((0 < countHEX60gensym245_553654150)) { - result_553654139[0].push.apply(result_553654139[0], [44,32]);; - } - - result_553654139[0].push.apply(result_553654139[0], [110,101,120,116,71,114,111,117,112]);; - result_553654139[0].push.apply(result_553654139[0], [58,32]);; - countHEX60gensym245_553654150 += 1; - addQuoted_889193861(result_553654139, 0, x_553654138.nextGroup); - if ((0 < countHEX60gensym245_553654150)) { - result_553654139[0].push.apply(result_553654139[0], [44,32]);; - } - - result_553654139[0].push.apply(result_553654139[0], [114,97,110,100,83,101,101,100]);; - result_553654139[0].push.apply(result_553654139[0], [58,32]);; - countHEX60gensym245_553654150 += 1; - addQuoted_889193861(result_553654139, 0, x_553654138.randSeed); - if ((0 < countHEX60gensym245_553654150)) { - result_553654139[0].push.apply(result_553654139[0], [44,32]);; - } - - result_553654139[0].push.apply(result_553654139[0], [116,117,114,110,78,117,109,98,101,114]);; - result_553654139[0].push.apply(result_553654139[0], [58,32]);; - countHEX60gensym245_553654150 += 1; - addQuoted_889193861(result_553654139, 0, x_553654138.turnNumber); - result_553654139[0].push.apply(result_553654139[0], [41]);; - - return result_553654139[0]; - -} - -function addQuoted_553654527(s_553654529, s_553654529_Idx, x_553654530) { - s_553654529[s_553654529_Idx].push.apply(s_553654529[s_553654529_Idx], HEX24_553650764(x_553654530));; - - -} - -function collectionToString_553654449(x_553654451, prefix_553654452, separator_553654453, suffix_553654454) { - var result_553654455 = [[]]; - - result_553654455[0] = nimCopy(null, prefix_553654452, NTI33554449); - var firstElement_553654456 = true; - Label1: { - var value_553654523 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - var i_553657137 = 0; - Label2: { - Label3: while (true) { - if (!true) break Label3; - value_553654523 = nimCopy(value_553654523, x_553654451[i_553657137], NTI1476395034); - if (firstElement_553654456) { - firstElement_553654456 = false; - } - else { - result_553654455[0].push.apply(result_553654455[0], separator_553654453);; - } - - addQuoted_553654527(result_553654455, 0, value_553654523); - if ((7 <= i_553657137)) { - break Label2; - } - - i_553657137 += 1; - } - }; + var fmtRes_553652917 = [mnewString(0)]; + fmtRes_553652917[0].push.apply(fmtRes_553652917[0], [85,115,101,32]);; + formatValue_553652918(fmtRes_553652917, 0, glass_553652907); }; - result_553654455[0].push.apply(result_553654455[0], suffix_553654454);; - - return result_553654455[0]; - -} - -function HEX24_553654444(x_553654447) { - var result_553654448 = []; - - result_553654448 = nimCopy(null, collectionToString_553654449(x_553654447, [91], [44,32], [93]), NTI33554449); - - return result_553654448; - -} - -function addQuoted_553654396(s_553654398, s_553654398_Idx, x_553654399) { - s_553654398[s_553654398_Idx].push.apply(s_553654398[s_553654398_Idx], HEX24_553654444(x_553654399));; - - -} - -function HEX24_553654820(self_553654822) { - var result_553654823 = [[]]; - - if (isSome_1660947689(self_553654822)) { - result_553654823[0] = nimCopy(null, [115,111,109,101,40], NTI33554449); - addQuoted_889193861(result_553654823, 0, self_553654822.val); - result_553654823[0].push.apply(result_553654823[0], [41]);; - } - else { - result_553654823[0] = nimCopy(null, [110,111,110,101,40,105,110,116,41], NTI33554449); - } - - - return result_553654823[0]; - -} - -function addQuoted_553654772(s_553654774, s_553654774_Idx, x_553654775) { - s_553654774[s_553654774_Idx].push.apply(s_553654774[s_553654774_Idx], HEX24_553654820(x_553654775));; - - -} - -function HEX24_553654948(x_553654950) { - var result_553654951 = [[]]; - - result_553654951[0] = nimCopy(null, [40], NTI33554449); - var countHEX60gensym283_553654962 = 0; - if ((0 < countHEX60gensym283_553654962)) { - result_553654951[0].push.apply(result_553654951[0], [44,32]);; - } - - result_553654951[0].push.apply(result_553654951[0], [110,97,109,101]);; - result_553654951[0].push.apply(result_553654951[0], [58,32]);; - countHEX60gensym283_553654962 += 1; - addQuoted_553649236(result_553654951, 0, x_553654950["Field0"]); - if ((0 < countHEX60gensym283_553654962)) { - result_553654951[0].push.apply(result_553654951[0], [44,32]);; - } - - result_553654951[0].push.apply(result_553654951[0], [99,111,115,116]);; - result_553654951[0].push.apply(result_553654951[0], [58,32]);; - countHEX60gensym283_553654962 += 1; - result_553654951[0].push.apply(result_553654951[0], [46,46,46]);; - if ((0 < countHEX60gensym283_553654962)) { - result_553654951[0].push.apply(result_553654951[0], [44,32]);; - } - - result_553654951[0].push.apply(result_553654951[0], [97,99,116,105,111,110]);; - result_553654951[0].push.apply(result_553654951[0], [58,32]);; - countHEX60gensym283_553654962 += 1; - result_553654951[0].push.apply(result_553654951[0], [46,46,46]);; - if ((0 < countHEX60gensym283_553654962)) { - result_553654951[0].push.apply(result_553654951[0], [44,32]);; - } - - result_553654951[0].push.apply(result_553654951[0], [99,111,110,100,105,116,105,111,110]);; - result_553654951[0].push.apply(result_553654951[0], [58,32]);; - countHEX60gensym283_553654962 += 1; - result_553654951[0].push.apply(result_553654951[0], [46,46,46]);; - result_553654951[0].push.apply(result_553654951[0], [41]);; - - return result_553654951[0]; - -} - -function addQuoted_553654942(s_553654944, s_553654944_Idx, x_553654945) { - s_553654944[s_553654944_Idx].push.apply(s_553654944[s_553654944_Idx], HEX24_553654948(x_553654945));; - - -} - -function collectionToString_553654927(x_553654929, prefix_553654930, separator_553654931, suffix_553654932) { - var result_553654933 = [[]]; - - result_553654933[0] = nimCopy(null, prefix_553654930, NTI33554449); - var firstElement_553654934 = true; - Label1: { - var value_553654938 = {Field0: [], Field1: null, Field2: null, Field3: null}; - var i_553657140 = 0; - var L_553657141 = (x_553654929).length; - Label2: { - Label3: while (true) { - if (!(i_553657140 < L_553657141)) break Label3; - value_553654938 = x_553654929[i_553657140]; - if (firstElement_553654934) { - firstElement_553654934 = false; - } - else { - result_553654933[0].push.apply(result_553654933[0], separator_553654931);; - } - - addQuoted_553654942(result_553654933, 0, value_553654938); - i_553657140 += 1; - if (!(((x_553654929).length == L_553657141))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); - } - - } - }; - }; - result_553654933[0].push.apply(result_553654933[0], suffix_553654932);; - - return result_553654933[0]; - -} - -function HEX24_553654923(x_553654925) { - var result_553654926 = []; - - result_553654926 = nimCopy(null, collectionToString_553654927(x_553654925, [64,91], [44,32], [93]), NTI33554449); - - return result_553654926; - -} - -function addQuoted_553654917(s_553654919, s_553654919_Idx, x_553654920) { - s_553654919[s_553654919_Idx].push.apply(s_553654919[s_553654919_Idx], HEX24_553654923(x_553654920));; - - -} - -function HEX24_553655441(x_553655443) { - var result_553655444 = [[]]; - - result_553655444[0] = nimCopy(null, [40], NTI33554449); - var countHEX60gensym302_553655455 = 0; - if ((0 < countHEX60gensym302_553655455)) { - result_553655444[0].push.apply(result_553655444[0], [44,32]);; - } - - result_553655444[0].push.apply(result_553655444[0], [115,116,114,101,110,103,116,104]);; - result_553655444[0].push.apply(result_553655444[0], [58,32]);; - countHEX60gensym302_553655455 += 1; - addQuoted_889193861(result_553655444, 0, x_553655443["Field0"]); - if ((0 < countHEX60gensym302_553655455)) { - result_553655444[0].push.apply(result_553655444[0], [44,32]);; - } - - result_553655444[0].push.apply(result_553655444[0], [97,99,116,105,111,110]);; - result_553655444[0].push.apply(result_553655444[0], [58,32]);; - countHEX60gensym302_553655455 += 1; - result_553655444[0].push.apply(result_553655444[0], [46,46,46]);; - if ((0 < countHEX60gensym302_553655455)) { - result_553655444[0].push.apply(result_553655444[0], [44,32]);; - } - - result_553655444[0].push.apply(result_553655444[0], [99,111,110,100,105,116,105,111,110]);; - result_553655444[0].push.apply(result_553655444[0], [58,32]);; - countHEX60gensym302_553655455 += 1; - result_553655444[0].push.apply(result_553655444[0], [46,46,46]);; - result_553655444[0].push.apply(result_553655444[0], [41]);; - - return result_553655444[0]; - -} - -function addQuoted_553655435(s_553655437, s_553655437_Idx, x_553655438) { - s_553655437[s_553655437_Idx].push.apply(s_553655437[s_553655437_Idx], HEX24_553655441(x_553655438));; - - -} - -function HEX24_553655424(self_553655426) { - var result_553655427 = [[]]; - - if (isSome_1845497264(self_553655426)) { - result_553655427[0] = nimCopy(null, [115,111,109,101,40], NTI33554449); - addQuoted_553655435(result_553655427, 0, self_553655426.val); - result_553655427[0].push.apply(result_553655427[0], [41]);; - } - else { - result_553655427[0] = nimCopy(null, [110,111,110,101,40,71,108,97,115,115,65,98,105,108,105,116,121,41], NTI33554449); + add_754975552(tmp_553652864, text_754975684(fmtRes_553652917[0])); + addEventHandler_721422102(tmp_553652864, 0, HEX3Aanonymous_553652932, kxi__); + add_754975552(tmp_553652856, tmp_553652864); } + result_553652855 = tmp_553652856; - return result_553655427[0]; - -} - -function addQuoted_553655376(s_553655378, s_553655378_Idx, x_553655379) { - s_553655378[s_553655378_Idx].push.apply(s_553655378[s_553655378_Idx], HEX24_553655424(x_553655379));; - - -} - -function collectionToString_553655299(x_553655301, prefix_553655302, separator_553655303, suffix_553655304) { - var result_553655305 = [[]]; - - result_553655305[0] = nimCopy(null, prefix_553655302, NTI33554449); - var firstElement_553655306 = true; - Label1: { - var value_553655372 = ({val: {Field0: 0, Field1: null, Field2: null}, has: false}); - var i_553657145 = 0; - Label2: { - Label3: while (true) { - if (!true) break Label3; - value_553655372 = nimCopy(value_553655372, x_553655301[i_553657145], NTI1476395079); - if (firstElement_553655306) { - firstElement_553655306 = false; - } - else { - result_553655305[0].push.apply(result_553655305[0], separator_553655303);; - } - - addQuoted_553655376(result_553655305, 0, value_553655372); - if ((4 <= i_553657145)) { - break Label2; - } - - i_553657145 += 1; - } - }; - }; - result_553655305[0].push.apply(result_553655305[0], suffix_553655304);; - - return result_553655305[0]; - -} - -function HEX24_553655294(x_553655297) { - var result_553655298 = []; - - result_553655298 = nimCopy(null, collectionToString_553655299(x_553655297, [91], [44,32], [93]), NTI33554449); - - return result_553655298; + return result_553652855; } -function addQuoted_553655246(s_553655248, s_553655248_Idx, x_553655249) { - s_553655248[s_553655248_Idx].push.apply(s_553655248[s_553655248_Idx], HEX24_553655294(x_553655249));; - - -} - -function HEX24_553654212(x_553654214) { - var result_553654215 = [[]]; +function HEX24_553653573(x_553653575) { + var result_553653576 = [[]]; - result_553654215[0] = nimCopy(null, [40], NTI33554449); - var countHEX60gensym259_553654226 = 0; - if ((0 < countHEX60gensym259_553654226)) { - result_553654215[0].push.apply(result_553654215[0], [44,32]);; - } - - result_553654215[0].push.apply(result_553654215[0], [97,98,105,108,105,116,121,84,97,107,101,115]);; - result_553654215[0].push.apply(result_553654215[0], [58,32]);; - countHEX60gensym259_553654226 += 1; - addQuoted_889193861(result_553654215, 0, x_553654214.abilityTakes); - if ((0 < countHEX60gensym259_553654226)) { - result_553654215[0].push.apply(result_553654215[0], [44,32]);; - } - - result_553654215[0].push.apply(result_553654215[0], [104,97,115,67,97,115,116,108,101,100]);; - result_553654215[0].push.apply(result_553654215[0], [58,32]);; - countHEX60gensym259_553654226 += 1; - addQuoted_553651045(result_553654215, 0, x_553654214.hasCastled); - if ((0 < countHEX60gensym259_553654226)) { - result_553654215[0].push.apply(result_553654215[0], [44,32]);; - } - - result_553654215[0].push.apply(result_553654215[0], [100,110,97]);; - result_553654215[0].push.apply(result_553654215[0], [58,32]);; - countHEX60gensym259_553654226 += 1; - addQuoted_553654396(result_553654215, 0, x_553654214.dna); - if ((0 < countHEX60gensym259_553654226)) { - result_553654215[0].push.apply(result_553654215[0], [44,32]);; - } - - result_553654215[0].push.apply(result_553654215[0], [116,114,97,110,115,102,111,114,109,115]);; - result_553654215[0].push.apply(result_553654215[0], [58,32]);; - countHEX60gensym259_553654226 += 1; - result_553654215[0].push.apply(result_553654215[0], [46,46,46]);; - if ((0 < countHEX60gensym259_553654226)) { - result_553654215[0].push.apply(result_553654215[0], [44,32]);; + result_553653576[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym179_553653587 = 0; + if ((0 < countHEX60gensym179_553653587)) { + result_553653576[0].push.apply(result_553653576[0], [44,32]);; } - result_553654215[0].push.apply(result_553654215[0], [119,97,108,108,101,116]);; - result_553654215[0].push.apply(result_553654215[0], [58,32]);; - countHEX60gensym259_553654226 += 1; - addQuoted_553654772(result_553654215, 0, x_553654214.wallet); - if ((0 < countHEX60gensym259_553654226)) { - result_553654215[0].push.apply(result_553654215[0], [44,32]);; + result_553653576[0].push.apply(result_553653576[0], [110,101,120,116,73,110,100,101,120]);; + result_553653576[0].push.apply(result_553653576[0], [58,32]);; + countHEX60gensym179_553653587 += 1; + addQuoted_889193861(result_553653576, 0, x_553653575.nextIndex); + if ((0 < countHEX60gensym179_553653587)) { + result_553653576[0].push.apply(result_553653576[0], [44,32]);; } - result_553654215[0].push.apply(result_553654215[0], [98,117,121,115]);; - result_553654215[0].push.apply(result_553654215[0], [58,32]);; - countHEX60gensym259_553654226 += 1; - addQuoted_553654917(result_553654215, 0, x_553654214.buys); - if ((0 < countHEX60gensym259_553654226)) { - result_553654215[0].push.apply(result_553654215[0], [44,32]);; + result_553653576[0].push.apply(result_553653576[0], [110,101,120,116,71,114,111,117,112]);; + result_553653576[0].push.apply(result_553653576[0], [58,32]);; + countHEX60gensym179_553653587 += 1; + addQuoted_889193861(result_553653576, 0, x_553653575.nextGroup); + if ((0 < countHEX60gensym179_553653587)) { + result_553653576[0].push.apply(result_553653576[0], [44,32]);; } - result_553654215[0].push.apply(result_553654215[0], [112,105,101,99,101,115,83,111,108,100]);; - result_553654215[0].push.apply(result_553654215[0], [58,32]);; - countHEX60gensym259_553654226 += 1; - addQuoted_889193861(result_553654215, 0, x_553654214.piecesSold); - if ((0 < countHEX60gensym259_553654226)) { - result_553654215[0].push.apply(result_553654215[0], [44,32]);; + result_553653576[0].push.apply(result_553653576[0], [114,97,110,100,83,101,101,100]);; + result_553653576[0].push.apply(result_553653576[0], [58,32]);; + countHEX60gensym179_553653587 += 1; + addQuoted_889193861(result_553653576, 0, x_553653575.randSeed); + if ((0 < countHEX60gensym179_553653587)) { + result_553653576[0].push.apply(result_553653576[0], [44,32]);; } - result_553654215[0].push.apply(result_553654215[0], [103,108,97,115,115]);; - result_553654215[0].push.apply(result_553654215[0], [58,32]);; - countHEX60gensym259_553654226 += 1; - addQuoted_553655246(result_553654215, 0, x_553654214.glass); - result_553654215[0].push.apply(result_553654215[0], [41]);; + result_553653576[0].push.apply(result_553653576[0], [116,117,114,110,78,117,109,98,101,114]);; + result_553653576[0].push.apply(result_553653576[0], [58,32]);; + countHEX60gensym179_553653587 += 1; + addQuoted_889193861(result_553653576, 0, x_553653575.turnNumber); + result_553653576[0].push.apply(result_553653576[0], [41]);; - return result_553654215[0]; + return result_553653576[0]; } -function HEX24_553651572(x_553651574) { - var result_553651575 = [[]]; +function HEX24_553651044(x_553651046) { + var result_553651047 = [[]]; - result_553651575[0] = nimCopy(null, [40], NTI33554449); - var countHEX60gensym117_553651586 = 0; - if ((0 < countHEX60gensym117_553651586)) { - result_553651575[0].push.apply(result_553651575[0], [44,32]);; + result_553651047[0] = nimCopy(null, [40], NTI33554449); + var countHEX60gensym53_553651058 = 0; + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; } - result_553651575[0].push.apply(result_553651575[0], [110,97,109,101]);; - result_553651575[0].push.apply(result_553651575[0], [58,32]);; - countHEX60gensym117_553651586 += 1; - addQuoted_553649236(result_553651575, 0, x_553651574["Field0"]); - if ((0 < countHEX60gensym117_553651586)) { - result_553651575[0].push.apply(result_553651575[0], [44,32]);; + result_553651047[0].push.apply(result_553651047[0], [110,97,109,101]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + addQuoted_1845498378(result_553651047, 0, x_553651046["Field0"]); + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; } - result_553651575[0].push.apply(result_553651575[0], [116,117,114,110,115]);; - result_553651575[0].push.apply(result_553651575[0], [58,32]);; - countHEX60gensym117_553651586 += 1; - addQuoted_889193861(result_553651575, 0, x_553651574["Field1"]); - if ((0 < countHEX60gensym117_553651586)) { - result_553651575[0].push.apply(result_553651575[0], [44,32]);; + result_553651047[0].push.apply(result_553651047[0], [116,117,114,110,115]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + addQuoted_889193861(result_553651047, 0, x_553651046["Field1"]); + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; } - result_553651575[0].push.apply(result_553651575[0], [103,114,111,117,112]);; - result_553651575[0].push.apply(result_553651575[0], [58,32]);; - countHEX60gensym117_553651586 += 1; - addQuoted_889193861(result_553651575, 0, x_553651574["Field2"]); - if ((0 < countHEX60gensym117_553651586)) { - result_553651575[0].push.apply(result_553651575[0], [44,32]);; + result_553651047[0].push.apply(result_553651047[0], [103,114,111,117,112]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + addQuoted_889193861(result_553651047, 0, x_553651046["Field2"]); + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; } - result_553651575[0].push.apply(result_553651575[0], [97,99,116,105,111,110]);; - result_553651575[0].push.apply(result_553651575[0], [58,32]);; - countHEX60gensym117_553651586 += 1; - result_553651575[0].push.apply(result_553651575[0], [46,46,46]);; - if ((0 < countHEX60gensym117_553651586)) { - result_553651575[0].push.apply(result_553651575[0], [44,32]);; + result_553651047[0].push.apply(result_553651047[0], [97,99,116,105,111,110]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + result_553651047[0].push.apply(result_553651047[0], [46,46,46]);; + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; } - result_553651575[0].push.apply(result_553651575[0], [99,97,110,99,101,108,97,98,108,101]);; - result_553651575[0].push.apply(result_553651575[0], [58,32]);; - countHEX60gensym117_553651586 += 1; - addQuoted_553651045(result_553651575, 0, x_553651574["Field4"]); - if ((0 < countHEX60gensym117_553651586)) { - result_553651575[0].push.apply(result_553651575[0], [44,32]);; + result_553651047[0].push.apply(result_553651047[0], [99,97,110,99,101,108,97,98,108,101]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + addQuoted_1845497519(result_553651047, 0, x_553651046["Field4"]); + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; } - result_553651575[0].push.apply(result_553651575[0], [112,97,115,115,116,104,114,111,117,103,104]);; - result_553651575[0].push.apply(result_553651575[0], [58,32]);; - countHEX60gensym117_553651586 += 1; - addQuoted_553651045(result_553651575, 0, x_553651574["Field5"]); - if ((0 < countHEX60gensym117_553651586)) { - result_553651575[0].push.apply(result_553651575[0], [44,32]);; + result_553651047[0].push.apply(result_553651047[0], [112,97,115,115,116,104,114,111,117,103,104]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + addQuoted_1845497519(result_553651047, 0, x_553651046["Field5"]); + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; } - result_553651575[0].push.apply(result_553651575[0], [115,101,110,100]);; - result_553651575[0].push.apply(result_553651575[0], [58,32]);; - countHEX60gensym117_553651586 += 1; - result_553651575[0].push.apply(result_553651575[0], [46,46,46]);; - if ((0 < countHEX60gensym117_553651586)) { - result_553651575[0].push.apply(result_553651575[0], [44,32]);; + result_553651047[0].push.apply(result_553651047[0], [115,101,110,100]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + result_553651047[0].push.apply(result_553651047[0], [46,46,46]);; + if ((0 < countHEX60gensym53_553651058)) { + result_553651047[0].push.apply(result_553651047[0], [44,32]);; } - result_553651575[0].push.apply(result_553651575[0], [99,97,110,99,101,108]);; - result_553651575[0].push.apply(result_553651575[0], [58,32]);; - countHEX60gensym117_553651586 += 1; - result_553651575[0].push.apply(result_553651575[0], [46,46,46]);; - result_553651575[0].push.apply(result_553651575[0], [41]);; + result_553651047[0].push.apply(result_553651047[0], [99,97,110,99,101,108]);; + result_553651047[0].push.apply(result_553651047[0], [58,32]);; + countHEX60gensym53_553651058 += 1; + result_553651047[0].push.apply(result_553651047[0], [46,46,46]);; + result_553651047[0].push.apply(result_553651047[0], [41]);; - return result_553651575[0]; + return result_553651047[0]; } -function addQuoted_553651566(s_553651568, s_553651568_Idx, x_553651569) { - s_553651568[s_553651568_Idx].push.apply(s_553651568[s_553651568_Idx], HEX24_553651572(x_553651569));; +function addQuoted_553651038(s_553651040, s_553651040_Idx, x_553651041) { + s_553651040[s_553651040_Idx].push.apply(s_553651040[s_553651040_Idx], HEX24_553651044(x_553651041));; } -function collectionToString_553651533(x_553651535, prefix_553651536, separator_553651537, suffix_553651538) { - var result_553651539 = [[]]; +function collectionToString_553651005(x_553651007, prefix_553651008, separator_553651009, suffix_553651010) { + var result_553651011 = [[]]; - result_553651539[0] = nimCopy(null, prefix_553651536, NTI33554449); - var firstElement_553651540 = true; + result_553651011[0] = nimCopy(null, prefix_553651008, NTI33554449); + var firstElement_553651012 = true; Label1: { - var value_553651562 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; - var i_553657149 = 0; - var L_553657150 = (x_553651535).length; + var value_553651034 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; + var i_553655295 = 0; + var L_553655296 = (x_553651007).length; Label2: { Label3: while (true) { - if (!(i_553657149 < L_553657150)) break Label3; - value_553651562 = x_553651535[i_553657149]; - if (firstElement_553651540) { - firstElement_553651540 = false; + if (!(i_553655295 < L_553655296)) break Label3; + value_553651034 = x_553651007[i_553655295]; + if (firstElement_553651012) { + firstElement_553651012 = false; } else { - result_553651539[0].push.apply(result_553651539[0], separator_553651537);; + result_553651011[0].push.apply(result_553651011[0], separator_553651009);; } - addQuoted_553651566(result_553651539, 0, value_553651562); - i_553657149 += 1; - if (!(((x_553651535).length == L_553657150))) { + addQuoted_553651038(result_553651011, 0, value_553651034); + i_553655295 += 1; + if (!(((x_553651007).length == L_553655296))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - result_553651539[0].push.apply(result_553651539[0], suffix_553651538);; + result_553651011[0].push.apply(result_553651011[0], suffix_553651010);; - return result_553651539[0]; + return result_553651011[0]; } -function HEX24_553651529(x_553651531) { - var result_553651532 = []; +function HEX24_553651001(x_553651003) { + var result_553651004 = []; - result_553651532 = nimCopy(null, collectionToString_553651533(x_553651531, [64,91], [44,32], [93]), NTI33554449); + result_553651004 = nimCopy(null, collectionToString_553651005(x_553651003, [64,91], [44,32], [93]), NTI33554449); - return result_553651532; + return result_553651004; } -function formatValue_553655521(result_553655524, result_553655524_Idx, value_553655525) { - formatValue_1728053380(result_553655524, result_553655524_Idx, HEX24_553651529(value_553655525)); +function formatValue_553653688(result_553653691, result_553653691_Idx, value_553653692) { + formatValue_1728053380(result_553653691, result_553653691_Idx, HEX24_553651001(value_553653692)); } -function pop_553652212(s_553652214, s_553652214_Idx) { - var result_553652215 = []; +function pop_553651649(s_553651651, s_553651651_Idx) { + var result_553651652 = []; - var L_553652219 = subInt((s_553652214[s_553652214_Idx]).length, 1); - result_553652215 = nimCopy(null, s_553652214[s_553652214_Idx][chckIndx(L_553652219, 0, (s_553652214[s_553652214_Idx]).length - 1)], NTI33554449); - if (s_553652214[s_553652214_Idx].length < chckRange(L_553652219, 0, 2147483647)) { for (var i = s_553652214[s_553652214_Idx].length ; i < chckRange(L_553652219, 0, 2147483647) ; ++i) s_553652214[s_553652214_Idx].push([]); } - else { s_553652214[s_553652214_Idx].length = chckRange(L_553652219, 0, 2147483647); }; + var L_553651656 = subInt((s_553651651[s_553651651_Idx]).length, 1); + result_553651652 = nimCopy(null, s_553651651[s_553651651_Idx][chckIndx(L_553651656, 0, (s_553651651[s_553651651_Idx]).length - 1)], NTI33554449); + if (s_553651651[s_553651651_Idx].length < chckRange(L_553651656, 0, 2147483647)) { for (var i = s_553651651[s_553651651_Idx].length ; i < chckRange(L_553651656, 0, 2147483647) ; ++i) s_553651651[s_553651651_Idx].push([]); } + else { s_553651651[s_553651651_Idx].length = chckRange(L_553651656, 0, 2147483647); }; - return result_553652215; + return result_553651652; } -function sendMove_553651874(moveType_553651875, start_553651876, to_553651877) { +function sendMove_553651346(moveType_553651347, start_553651348, to_553651349) { Label1: { - var fmtRes_553651882 = [mnewString(0)]; - formatValue_1728053380(fmtRes_553651882, 0, moveType_553651875); - fmtRes_553651882[0].push.apply(fmtRes_553651882[0], [44]);; - formatValue_1728053380(fmtRes_553651882, 0, HEX24_385875976(start_553651876.Field1)); - fmtRes_553651882[0].push.apply(fmtRes_553651882[0], [44]);; - add_33556373(fmtRes_553651882, 0, (toJSStr(HEX24_385875976(start_553651876.Field0)))); - fmtRes_553651882[0].push.apply(fmtRes_553651882[0], [44]);; - formatValue_1728053380(fmtRes_553651882, 0, HEX24_385875976(to_553651877.Field1)); - fmtRes_553651882[0].push.apply(fmtRes_553651882[0], [44]);; - formatValue_1728053380(fmtRes_553651882, 0, HEX24_385875976(to_553651877.Field0)); + var fmtRes_553651354 = [mnewString(0)]; + formatValue_1728053380(fmtRes_553651354, 0, moveType_553651347); + fmtRes_553651354[0].push.apply(fmtRes_553651354[0], [44]);; + formatValue_1728053380(fmtRes_553651354, 0, HEX24_385875976(start_553651348.Field1)); + fmtRes_553651354[0].push.apply(fmtRes_553651354[0], [44]);; + add_33556373(fmtRes_553651354, 0, (toJSStr(HEX24_385875976(start_553651348.Field0)))); + fmtRes_553651354[0].push.apply(fmtRes_553651354[0], [44]);; + formatValue_1728053380(fmtRes_553651354, 0, HEX24_385875976(to_553651349.Field1)); + fmtRes_553651354[0].push.apply(fmtRes_553651354[0], [44]);; + formatValue_1728053380(fmtRes_553651354, 0, HEX24_385875976(to_553651349.Field0)); }; - sendAction_553651361(fmtRes_553651882[0], true); + sendAction_553650833(fmtRes_553651354[0], true); } -function createTile_553652468(p_553652469, m_553652470, n_553652471) { +function createTile_553651905(p_553651906, m_553651907, n_553651908) { var Temporary1; - p_553652469 = nimCopy(null, p_553652469, NTI1476395034); + p_553651906 = nimCopy(null, p_553651906, NTI1476395034); -function HEX3Aanonymous_553652557(__553652558, __553652559) { - if ((!((picksLeft_553648330[0] == 0)) && contains_1476395660(pickOptions_553648333[0], p_553652469.tile))) { +function HEX3Aanonymous_553651994(__553651995, __553651996) { + if ((!((picksLeft_553648330[0] == 0)) && contains_1476395661(pickOptions_553648333[0], p_553651906.tile))) { picksLeft_553648330[0] = subInt(picksLeft_553648330[0], 1); - var Temporary1 = nimCopy(null, p_553652469.tile, NTI1476395011); + var Temporary1 = nimCopy(null, p_553651906.tile, NTI1476395011); picks_553648338[0].push(Temporary1);; - promptHistory_553648324[0].push(pop_553652212(promptStack_553648329, 0));; + promptHistory_553648324[0].push(pop_553651649(promptStack_553648329, 0));; pickOptions_553648333[0] = nimCopy(null, getPickOptions_553648332[0](), NTI553648299); clear_553648458(); if ((picksLeft_553648330[0] == 0)) { rawEcho([119,104,101,110,32,99,111,108,108,101,99,116,101,100,32,115,116,97,114,116]); whenCollected_553648340[0](); rawEcho([87,104,101,110,32,67,111,108,108,101,99,116,101,100]); - cancelAllPicks_553652231(); + cancelAllPicks_553651668(); rawEcho([67,97,110,99,101,108,32,65,108,108]); } } else { - if (((contains_1476395660(possibleMoves_553648266[0], p_553652469.tile) && isColor_1476396052(pieceOf_553648356(selectedTile_553648261[0]), side_553648239[0])) && !(busy_553648363()))) { - pieceOf_553648356(selectedTile_553648261[0]).onMove(pieceOf_553648356(selectedTile_553648261[0]), p_553652469.tile, theBoard_553648257[0], theState_553648258[0]); - sendMove_553651874([109,111,118,101], selectedTile_553648261[0], p_553652469.tile); + if (((contains_1476395661(possibleMoves_553648266[0], p_553651906.tile) && isColor_1476396053(pieceOf_553648356(selectedTile_553648261[0]), side_553648239[0])) && !(busy_553648363()))) { + pieceOf_553648356(selectedTile_553648261[0]).onMove(pieceOf_553648356(selectedTile_553648261[0]), p_553651906.tile, theBoard_553648257[0], theState_553648258[0]); + sendMove_553651346([109,111,118,101], selectedTile_553648261[0], p_553651906.tile); rawEcho([115,101,110,100]); clear_553648458(); } else { - if (((contains_1476395660(possibleTakes_553648271[0], p_553652469.tile) && isColor_1476396052(pieceOf_553648356(selectedTile_553648261[0]), side_553648239[0])) && !(busy_553648363()))) { - pieceOf_553648356(selectedTile_553648261[0]).onTake(pieceOf_553648356(selectedTile_553648261[0]), p_553652469.tile, theBoard_553648257[0], theState_553648258[0]); - sendMove_553651874([116,97,107,101], selectedTile_553648261[0], p_553652469.tile); + if (((contains_1476395661(possibleTakes_553648271[0], p_553651906.tile) && isColor_1476396053(pieceOf_553648356(selectedTile_553648261[0]), side_553648239[0])) && !(busy_553648363()))) { + pieceOf_553648356(selectedTile_553648261[0]).onTake(pieceOf_553648356(selectedTile_553648261[0]), p_553651906.tile, theBoard_553648257[0], theState_553648258[0]); + sendMove_553651346([116,97,107,101], selectedTile_553648261[0], p_553651906.tile); clear_553648458(); } else { - if (!(isSelected_553648359(m_553652470, n_553652471))) { - var colontmp__553657176 = n_553652471; - var colontmp__553657177 = m_553652470; - selectedTile_553648261[0] = nimCopy(selectedTile_553648261[0], {Field0: colontmp__553657176, Field1: colontmp__553657177}, NTI1476395011); - possibleMoves_553648266[0] = nimCopy(null, getMovesOn_1476395625(p_553652469, theBoard_553648257[0]), NTI1476395018); - possibleTakes_553648271[0] = nimCopy(null, getTakesOn_1476395510(p_553652469, theBoard_553648257[0]), NTI1476395018); + if (!(isSelected_553648359(m_553651907, n_553651908))) { + var colontmp__553655322 = n_553651908; + var colontmp__553655323 = m_553651907; + selectedTile_553648261[0] = nimCopy(selectedTile_553648261[0], {Field0: colontmp__553655322, Field1: colontmp__553655323}, NTI1476395011); + possibleMoves_553648266[0] = nimCopy(null, getMovesOn_1476395626(p_553651906, theBoard_553648257[0]), NTI1476395018); + possibleTakes_553648271[0] = nimCopy(null, getTakesOn_1476395511(p_553651906, theBoard_553648257[0]), NTI1476395018); } else { clear_553648458(); @@ -15627,281 +15638,281 @@ function HEX3Aanonymous_553652557(__553652558, __553652559) { var Temporary15; var Temporary16; - var result_553652472 = null; + var result_553651909 = null; - if ((modInt(addInt(mulInt(m_553652470, 7), n_553652471), 2) == 0)) { + if ((modInt(addInt(mulInt(m_553651907, 7), n_553651908), 2) == 0)) { Temporary1 = [119,104,105,116,101,84,105,108,101]; } else { Temporary1 = [98,108,97,99,107,84,105,108,101]; } - var class_553652473 = nimCopy(null, Temporary1, NTI33554449); + var class_553651910 = nimCopy(null, Temporary1, NTI33554449); Label2: { - var i_553652474 = 0; - var j_553652475 = 0; + var i_553651911 = 0; + var j_553651912 = 0; Label3: { - var i_553657165 = 0; - var i_553657166 = 0; + var i_553655311 = 0; + var i_553655312 = 0; Label4: { Label5: while (true) { - if (!(i_553657166 < 8)) break Label5; - i_553657165 = i_553657166; + if (!(i_553655312 < 8)) break Label5; + i_553655311 = i_553655312; Label6: { - var j_553657169 = 0; - var i_553657170 = 0; + var j_553655315 = 0; + var i_553655316 = 0; Label7: { Label8: while (true) { - if (!(i_553657170 < 8)) break Label8; - j_553657169 = i_553657170; - i_553652474 = i_553657165; - j_553652475 = j_553657169; + if (!(i_553655316 < 8)) break Label8; + j_553655315 = i_553655316; + i_553651911 = i_553655311; + j_553651912 = j_553655315; Label9: { - var c_553652479 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - var colontmp__553657160 = []; - colontmp__553657160 = theBoard_553648257[0][chckIndx(i_553652474, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652475, 0, (theBoard_553648257[0][chckIndx(i_553652474, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; - var i_553657161 = 0; - var L_553657162 = (colontmp__553657160).length; + var c_553651916 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655306 = []; + colontmp__553655306 = theBoard_553648257[0][chckIndx(i_553651911, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553651912, 0, (theBoard_553648257[0][chckIndx(i_553651911, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655307 = 0; + var L_553655308 = (colontmp__553655306).length; Label10: { Label11: while (true) { - if (!(i_553657161 < L_553657162)) break Label11; - c_553652479 = colontmp__553657160[chckIndx(i_553657161, 0, (colontmp__553657160).length - 1)]; - if (HEX3DHEX3D_1476395684(p_553652469.tile, c_553652479.Field0)) { - class_553652473.push.apply(class_553652473, castingOnAnimations_553648163[chckIndx(c_553652479.Field2, 0, (castingOnAnimations_553648163).length - 1)]);; + if (!(i_553655307 < L_553655308)) break Label11; + c_553651916 = colontmp__553655306[chckIndx(i_553655307, 0, (colontmp__553655306).length - 1)]; + if (HEX3DHEX3D_1476395685(p_553651906.tile, c_553651916.Field0)) { + class_553651910.push.apply(class_553651910, castingOnAnimations_553648163[chckIndx(c_553651916.Field2, 0, (castingOnAnimations_553648163).length - 1)]);; } - i_553657161 += 1; - if (!(((colontmp__553657160).length == L_553657162))) { + i_553655307 += 1; + if (!(((colontmp__553655306).length == L_553655308))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - i_553657170 = addInt(i_553657170, 1); + i_553655316 = addInt(i_553655316, 1); } }; }; - i_553657166 = addInt(i_553657166, 1); + i_553655312 = addInt(i_553655312, 1); } }; }; }; Label12: { - var c_553652487 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - var i_553657173 = 0; - var L_553657174 = (p_553652469.casts).length; + var c_553651924 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var i_553655319 = 0; + var L_553655320 = (p_553651906.casts).length; Label13: { Label14: while (true) { - if (!(i_553657173 < L_553657174)) break Label14; - c_553652487 = p_553652469.casts[chckIndx(i_553657173, 0, (p_553652469.casts).length - 1)]; - class_553652473.push.apply(class_553652473, castingAnimations_553648162[chckIndx(c_553652487.Field2, 0, (castingAnimations_553648162).length - 1)]);; - i_553657173 += 1; - if (!(((p_553652469.casts).length == L_553657174))) { + if (!(i_553655319 < L_553655320)) break Label14; + c_553651924 = p_553651906.casts[chckIndx(i_553655319, 0, (p_553651906.casts).length - 1)]; + class_553651910.push.apply(class_553651910, castingAnimations_553648162[chckIndx(c_553651924.Field2, 0, (castingAnimations_553648162).length - 1)]);; + i_553655319 += 1; + if (!(((p_553651906.casts).length == L_553655320))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - if ((isSelected_553648359(m_553652470, n_553652471) && contains_1476395660(possibleTakes_553648271[0], p_553652469.tile))) { - class_553652473.push.apply(class_553652473, [32,99,97,110,45,116,97,107,101]);; + if ((isSelected_553648359(m_553651907, n_553651908) && contains_1476395661(possibleTakes_553648271[0], p_553651906.tile))) { + class_553651910.push.apply(class_553651910, [32,99,97,110,45,116,97,107,101]);; } else { - if (isSelected_553648359(m_553652470, n_553652471)) { - class_553652473.push.apply(class_553652473, [32,115,101,108,101,99,116,101,100]);; + if (isSelected_553648359(m_553651907, n_553651908)) { + class_553651910.push.apply(class_553651910, [32,115,101,108,101,99,116,101,100]);; } else { - if (contains_1476395660(picks_553648338[0], p_553652469.tile)) { - class_553652473.push.apply(class_553652473, [32,112,105,99,107,105,110,103]);; + if (contains_1476395661(picks_553648338[0], p_553651906.tile)) { + class_553651910.push.apply(class_553651910, [32,112,105,99,107,105,110,103]);; } else { - if ((contains_1476395660(possibleMoves_553648266[0], p_553652469.tile) || contains_1476395660(pickOptions_553648333[0], p_553652469.tile))) { - class_553652473.push.apply(class_553652473, [32,99,97,110,45,109,111,118,101]);; + if ((contains_1476395661(possibleMoves_553648266[0], p_553651906.tile) || contains_1476395661(pickOptions_553648333[0], p_553651906.tile))) { + class_553651910.push.apply(class_553651910, [32,99,97,110,45,109,111,118,101]);; } else { - if (contains_1476395660(possibleTakes_553648271[0], p_553652469.tile)) { - class_553652473.push.apply(class_553652473, [32,99,97,110,45,116,97,107,101]);; + if (contains_1476395661(possibleTakes_553648271[0], p_553651906.tile)) { + class_553651910.push.apply(class_553651910, [32,99,97,110,45,116,97,107,101]);; } else { - class_553652473.push.apply(class_553652473, [32,117,110,115,101,108,101,99,116,101,100]);; + class_553651910.push.apply(class_553651910, [32,117,110,115,101,108,101,99,116,101,100]);; } }}}} - if (contains_1476395660(piecesChecking_553648281[0], p_553652469.tile)) { - class_553652473.push.apply(class_553652473, [32,99,104,101,99,107,105,110,103]);; + if (contains_1476395661(piecesChecking_553648281[0], p_553651906.tile)) { + class_553651910.push.apply(class_553651910, [32,99,104,101,99,107,105,110,103]);; } else { - if (contains_1476395660(lastMove_553648276[0], p_553652469.tile)) { - class_553652473.push.apply(class_553652473, [32,108,97,115,116,45,109,111,118,101]);; + if (contains_1476395661(lastMove_553648276[0], p_553651906.tile)) { + class_553651910.push.apply(class_553651910, [32,108,97,115,116,45,109,111,118,101]);; } } - var tmp_553652546 = tree_754975616(188, []); - tmp_553652546.class = toJSStr(class_553652473); - addEventHandler_721422102(tmp_553652546, 0, HEX3Aanonymous_553652557, kxi__); - if (eqStrings(p_553652469.filePath, [])) { - add_754975552(tmp_553652546, text_754975684([])); + var tmp_553651983 = tree_754975616(188, []); + tmp_553651983.class = toJSStr(class_553651910); + addEventHandler_721422102(tmp_553651983, 0, HEX3Aanonymous_553651994, kxi__); + if (eqStrings(p_553651906.filePath, [])) { + add_754975552(tmp_553651983, text_754975684([])); } else { - if (p_553652469.rotate) { + if (p_553651906.rotate) { Temporary15 = [114,111,116,97,116,101]; } else { Temporary15 = []; } - var class_553652592 = nimCopy(null, Temporary15, NTI33554449); - if (p_553652469.colorable) { - Temporary16 = reprEnum(p_553652469.color, NTI1476395017); + var class_553652029 = nimCopy(null, Temporary15, NTI33554449); + if (p_553651906.colorable) { + Temporary16 = reprEnum(p_553651906.color, NTI1476395017); } else { Temporary16 = []; } - var color_553652596 = nimCopy(null, Temporary16, NTI33554449); - var tmp_553652556 = tree_754975616(76, []); - setAttr_754975467(tmp_553652556, "src", toJSStr(([46,47,105,99,111,110,115,47] || []).concat(color_553652596 || [],p_553652469.filePath || []))); - tmp_553652556.class = toJSStr(class_553652592); - add_754975552(tmp_553652546, tmp_553652556); + var color_553652033 = nimCopy(null, Temporary16, NTI33554449); + var tmp_553651993 = tree_754975616(76, []); + setAttr_754975467(tmp_553651993, "src", toJSStr(([46,47,105,99,111,110,115,47] || []).concat(color_553652033 || [],p_553651906.filePath || []))); + tmp_553651993.class = toJSStr(class_553652029); + add_754975552(tmp_553651983, tmp_553651993); } - result_553652472 = tmp_553652546; + result_553651909 = tmp_553651983; - return result_553652472; + return result_553651909; } -function createBoard_553652612() { - var result_553652613 = null; +function createBoard_553652049() { + var result_553652050 = null; - var tmp_553652614 = tree_754975616(180, []); + var tmp_553652051 = tree_754975616(180, []); Label1: { - var i_553652622 = 0; - var r_553652623 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; - var i_553657156 = 0; + var i_553652059 = 0; + var r_553652060 = [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]; + var i_553655302 = 0; Label2: { Label3: while (true) { if (!true) break Label3; - i_553652622 = i_553657156; - r_553652623 = nimCopy(r_553652623, theBoard_553648257[0][chckIndx(i_553657156, 0, (theBoard_553648257[0]).length - 1)], NTI1476395012); - var tmp_553652615 = tree_754975616(187, []); + i_553652059 = i_553655302; + r_553652060 = nimCopy(r_553652060, theBoard_553648257[0][chckIndx(i_553655302, 0, (theBoard_553648257[0]).length - 1)], NTI1476395012); + var tmp_553652052 = tree_754975616(187, []); Label4: { - var j_553652630 = 0; - var p_553652631 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); - var i_553657154 = 0; + var j_553652067 = 0; + var p_553652068 = ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}); + var i_553655300 = 0; Label5: { Label6: while (true) { if (!true) break Label6; - j_553652630 = i_553657154; - p_553652631 = nimCopy(p_553652631, r_553652623[chckIndx(i_553657154, 0, (r_553652623).length - 1)], NTI1476395034); - add_754975552(tmp_553652615, createTile_553652468(p_553652631, i_553652622, j_553652630)); - if ((7 <= i_553657154)) { + j_553652067 = i_553655300; + p_553652068 = nimCopy(p_553652068, r_553652060[chckIndx(i_553655300, 0, (r_553652060).length - 1)], NTI1476395034); + add_754975552(tmp_553652052, createTile_553651905(p_553652068, i_553652059, j_553652067)); + if ((7 <= i_553655300)) { break Label5; } - i_553657154 += 1; + i_553655300 += 1; } }; }; - add_754975552(tmp_553652614, tmp_553652615); - if ((7 <= i_553657156)) { + add_754975552(tmp_553652051, tmp_553652052); + if ((7 <= i_553655302)) { break Label2; } - i_553657156 += 1; + i_553655302 += 1; } }; }; - result_553652613 = tmp_553652614; + result_553652050 = tmp_553652051; - return result_553652613; + return result_553652050; } -function reverseBoard_553652632() { - var result_553652633 = null; +function reverseBoard_553652069() { + var result_553652070 = null; - var tmp_553652634 = tree_754975616(180, []); + var tmp_553652071 = tree_754975616(180, []); Label1: { - var i_553652641 = 0; - var res_553657183 = 7; + var i_553652078 = 0; + var res_553655329 = 7; Label2: { Label3: while (true) { - if (!(0 <= res_553657183)) break Label3; - i_553652641 = res_553657183; - var tmp_553652635 = tree_754975616(187, []); + if (!(0 <= res_553655329)) break Label3; + i_553652078 = res_553655329; + var tmp_553652072 = tree_754975616(187, []); Label4: { - var j_553652647 = 0; - var res_553657181 = 7; + var j_553652084 = 0; + var res_553655327 = 7; Label5: { Label6: while (true) { - if (!(0 <= res_553657181)) break Label6; - j_553652647 = res_553657181; - add_754975552(tmp_553652635, createTile_553652468(theBoard_553648257[0][chckIndx(i_553652641, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652647, 0, (theBoard_553648257[0][chckIndx(i_553652641, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], i_553652641, j_553652647)); - res_553657181 = subInt(res_553657181, 1); + if (!(0 <= res_553655327)) break Label6; + j_553652084 = res_553655327; + add_754975552(tmp_553652072, createTile_553651905(theBoard_553648257[0][chckIndx(i_553652078, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652084, 0, (theBoard_553648257[0][chckIndx(i_553652078, 0, (theBoard_553648257[0]).length - 1)]).length - 1)], i_553652078, j_553652084)); + res_553655327 = subInt(res_553655327, 1); } }; }; - add_754975552(tmp_553652634, tmp_553652635); - res_553657183 = subInt(res_553657183, 1); + add_754975552(tmp_553652071, tmp_553652072); + res_553655329 = subInt(res_553655329, 1); } }; }; - result_553652633 = tmp_553652634; + result_553652070 = tmp_553652071; - return result_553652633; + return result_553652070; } -function HEX5BHEX5D_553653047(s_553653049, i_553653050) { - var result_553653051 = null; +function HEX5BHEX5D_553652484(s_553652486, i_553652487) { + var result_553652488 = null; - result_553653051 = s_553653049[chckIndx(subInt((s_553653049).length, i_553653050), 0, (s_553653049).length - 1)]; + result_553652488 = s_553652486[chckIndx(subInt((s_553652486).length, i_553652487), 0, (s_553652486).length - 1)]; - return result_553653051; + return result_553652488; } -function pop_553653130(s_553653132, s_553653132_Idx) { - var result_553653133 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; +function pop_553652567(s_553652569, s_553652569_Idx) { + var result_553652570 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; - var L_553653137 = subInt((s_553653132[s_553653132_Idx]).length, 1); - result_553653133 = nimCopy(result_553653133, s_553653132[s_553653132_Idx][chckIndx(L_553653137, 0, (s_553653132[s_553653132_Idx]).length - 1)], NTI553648142); - if (s_553653132[s_553653132_Idx].length < chckRange(L_553653137, 0, 2147483647)) { for (var i = s_553653132[s_553653132_Idx].length ; i < chckRange(L_553653137, 0, 2147483647) ; ++i) s_553653132[s_553653132_Idx].push({Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}); } - else { s_553653132[s_553653132_Idx].length = chckRange(L_553653137, 0, 2147483647); }; + var L_553652574 = subInt((s_553652569[s_553652569_Idx]).length, 1); + result_553652570 = nimCopy(result_553652570, s_553652569[s_553652569_Idx][chckIndx(L_553652574, 0, (s_553652569[s_553652569_Idx]).length - 1)], NTI553648142); + if (s_553652569[s_553652569_Idx].length < chckRange(L_553652574, 0, 2147483647)) { for (var i = s_553652569[s_553652569_Idx].length ; i < chckRange(L_553652574, 0, 2147483647) ; ++i) s_553652569[s_553652569_Idx].push({Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}); } + else { s_553652569[s_553652569_Idx].length = chckRange(L_553652574, 0, 2147483647); }; - return result_553653133; + return result_553652570; } -function newSeq_553651788(len_553651790) { - var result_553651791 = []; +function newSeq_553651260(len_553651262) { + var result_553651263 = []; - result_553651791 = new Array(len_553651790); for (var i = 0 ; i < len_553651790 ; ++i) { result_553651791[i] = false; } - return result_553651791; + result_553651263 = new Array(len_553651262); for (var i = 0 ; i < len_553651262 ; ++i) { result_553651263[i] = false; } + return result_553651263; } -function updateActionStack_553651376() { +function updateActionStack_553650848() { var Temporary7; - rawEcho([97,115], HEX24_553651529(actionStack_553648309[0])); - rawEcho([110,97,115], HEX24_553651529(nextActionStack_553648314[0])); - rawEcho([115], HEX24_553651529(toSend_553648319[0])); + rawEcho([97,115], HEX24_553651001(actionStack_553648309[0])); + rawEcho([110,97,115], HEX24_553651001(nextActionStack_553648314[0])); + rawEcho([115], HEX24_553651001(toSend_553648319[0])); if (((actionStack_553648309[0]).length == 0)) { if (!(((nextActionStack_553648314[0]).length == 0))) { Label1: { - var i_553651747 = 0; - var x_553651748 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; - var i_553657208 = 0; - var L_553657209 = (nextActionStack_553648314[0]).length; + var i_553651219 = 0; + var x_553651220 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; + var i_553655354 = 0; + var L_553655355 = (nextActionStack_553648314[0]).length; Label2: { Label3: while (true) { - if (!(i_553657208 < L_553657209)) break Label3; - i_553651747 = i_553657208; - x_553651748 = nimCopy(x_553651748, nextActionStack_553648314[0][chckIndx(i_553657208, 0, (nextActionStack_553648314[0]).length - 1)], NTI553648142); - nextActionStack_553648314[0][chckIndx(i_553651747, 0, (nextActionStack_553648314[0]).length - 1)].Field1 = subInt(nextActionStack_553648314[0][chckIndx(i_553651747, 0, (nextActionStack_553648314[0]).length - 1)].Field1, 1); - i_553657208 += 1; - if (!(((nextActionStack_553648314[0]).length == L_553657209))) { + if (!(i_553655354 < L_553655355)) break Label3; + i_553651219 = i_553655354; + x_553651220 = nimCopy(x_553651220, nextActionStack_553648314[0][chckIndx(i_553655354, 0, (nextActionStack_553648314[0]).length - 1)], NTI553648142); + nextActionStack_553648314[0][chckIndx(i_553651219, 0, (nextActionStack_553648314[0]).length - 1)].Field1 = subInt(nextActionStack_553648314[0][chckIndx(i_553651219, 0, (nextActionStack_553648314[0]).length - 1)].Field1, 1); + i_553655354 += 1; + if (!(((nextActionStack_553648314[0]).length == L_553655355))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(187, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -15913,17 +15924,17 @@ function updateActionStack_553651376() { if ((true && !(practiceMode_553648282[0]))) { if (!(((toSend_553648319[0]).length == 0))) { Label4: { - var x_553651760 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; - var i_553657212 = 0; - var L_553657213 = (toSend_553648319[0]).length; + var x_553651232 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; + var i_553655358 = 0; + var L_553655359 = (toSend_553648319[0]).length; Label5: { Label6: while (true) { - if (!(i_553657212 < L_553657213)) break Label6; - x_553651760 = toSend_553648319[0][chckIndx(i_553657212, 0, (toSend_553648319[0]).length - 1)]; - x_553651760.Field6(); + if (!(i_553655358 < L_553655359)) break Label6; + x_553651232 = toSend_553648319[0][chckIndx(i_553655358, 0, (toSend_553648319[0]).length - 1)]; + x_553651232.Field6(); rawEcho([115,101,110,100,44,32,116,104,105,115,32,101,110,100,115,32,116,117,114,110,32,105,102,32,46,115,101,110,100,32,100,111,101,115]); - i_553657212 += 1; - if (!(((toSend_553648319[0]).length == L_553657213))) { + i_553655358 += 1; + if (!(((toSend_553648319[0]).length == L_553655359))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -15933,20 +15944,20 @@ function updateActionStack_553651376() { } else { if (!!(((nextActionStack_553648314[0]).length == 0))) Temporary7 = false; else { Label8: { - var iHEX60gensym141_553651784 = 0; - var resultHEX60gensym141_553651828 = newSeq_553651788(chckRange((nextActionStack_553648314[0]).length, 0, 2147483647)); + var iHEX60gensym77_553651256 = 0; + var resultHEX60gensym77_553651300 = newSeq_553651260(chckRange((nextActionStack_553648314[0]).length, 0, 2147483647)); Label9: { - var it_553651832 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; - var i_553657217 = 0; - var L_553657218 = (nextActionStack_553648314[0]).length; + var it_553651304 = {Field0: [], Field1: 0, Field2: 0, Field3: null, Field4: false, Field5: false, Field6: null, Field7: null}; + var i_553655363 = 0; + var L_553655364 = (nextActionStack_553648314[0]).length; Label10: { Label11: while (true) { - if (!(i_553657217 < L_553657218)) break Label11; - it_553651832 = nextActionStack_553648314[0][chckIndx(i_553657217, 0, (nextActionStack_553648314[0]).length - 1)]; - resultHEX60gensym141_553651828[chckIndx(iHEX60gensym141_553651784, 0, (resultHEX60gensym141_553651828).length - 1)] = it_553651832.Field5; - iHEX60gensym141_553651784 = addInt(iHEX60gensym141_553651784, 1); - i_553657217 += 1; - if (!(((nextActionStack_553648314[0]).length == L_553657218))) { + if (!(i_553655363 < L_553655364)) break Label11; + it_553651304 = nextActionStack_553648314[0][chckIndx(i_553655363, 0, (nextActionStack_553648314[0]).length - 1)]; + resultHEX60gensym77_553651300[chckIndx(iHEX60gensym77_553651256, 0, (resultHEX60gensym77_553651300).length - 1)] = it_553651304.Field5; + iHEX60gensym77_553651256 = addInt(iHEX60gensym77_553651256, 1); + i_553655363 += 1; + if (!(((nextActionStack_553648314[0]).length == L_553655364))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -15954,31 +15965,31 @@ function updateActionStack_553651376() { }; }; }; - var sHEX60gensym144_553651844 = nimCopy(null, resultHEX60gensym141_553651828, NTI553650452); - var nHEX60gensym144_553651849 = (sHEX60gensym144_553651844).length; - if (!((0 < nHEX60gensym144_553651849))) { - failedAssertImpl_268435541(makeNimstrLit("sequtils.nim(977, 3) `n`gensym144 > 0` Can\'t fold empty sequences")); + var sHEX60gensym80_553651316 = nimCopy(null, resultHEX60gensym77_553651300, NTI553650043); + var nHEX60gensym80_553651321 = (sHEX60gensym80_553651316).length; + if (!((0 < nHEX60gensym80_553651321))) { + failedAssertImpl_268435541([115,101,113,117,116,105,108,115,46,110,105,109,40,57,55,55,44,32,51,41,32,96,110,96,103,101,110,115,121,109,56,48,32,62,32,48,96,32,67,97,110,39,116,32,102,111,108,100,32,101,109,112,116,121,32,115,101,113,117,101,110,99,101,115]); } - var resultHEX60gensym144_553651855 = sHEX60gensym144_553651844[chckIndx(subInt(nHEX60gensym144_553651849, 1), 0, (sHEX60gensym144_553651844).length - 1)]; + var resultHEX60gensym80_553651327 = sHEX60gensym80_553651316[chckIndx(subInt(nHEX60gensym80_553651321, 1), 0, (sHEX60gensym80_553651316).length - 1)]; Label12: { - var iHEX60gensym144_553651861 = 0; - var colontmp__553657221 = 0; - colontmp__553657221 = subInt(nHEX60gensym144_553651849, 2); - var res_553657222 = colontmp__553657221; + var iHEX60gensym80_553651333 = 0; + var colontmp__553655367 = 0; + colontmp__553655367 = subInt(nHEX60gensym80_553651321, 2); + var res_553655368 = colontmp__553655367; Label13: { Label14: while (true) { - if (!(0 <= res_553657222)) break Label14; - iHEX60gensym144_553651861 = res_553657222; - var a_553651862 = sHEX60gensym144_553651844[chckIndx(iHEX60gensym144_553651861, 0, (sHEX60gensym144_553651844).length - 1)]; - var b_553651863 = resultHEX60gensym144_553651855; - resultHEX60gensym144_553651855 = (a_553651862 && b_553651863); - res_553657222 = subInt(res_553657222, 1); + if (!(0 <= res_553655368)) break Label14; + iHEX60gensym80_553651333 = res_553655368; + var a_553651334 = sHEX60gensym80_553651316[chckIndx(iHEX60gensym80_553651333, 0, (sHEX60gensym80_553651316).length - 1)]; + var b_553651335 = resultHEX60gensym80_553651327; + resultHEX60gensym80_553651327 = (a_553651334 && b_553651335); + res_553655368 = subInt(res_553655368, 1); } }; }; - Temporary7 = !(resultHEX60gensym144_553651855); } if (Temporary7) { - sendAction_553651361([112,97,115,115], true); + Temporary7 = !(resultHEX60gensym80_553651327); } if (Temporary7) { + sendAction_553650833([112,97,115,115], true); } } @@ -15994,33 +16005,33 @@ function updateActionStack_553651376() { } -function HEX5BHEX5D_553653318(s_553653320, i_553653321) { - var result_553653322 = null; - var result_553653322_Idx = 0; +function HEX5BHEX5D_553652755(s_553652757, i_553652758) { + var result_553652759 = null; + var result_553652759_Idx = 0; - result_553653322 = s_553653320; result_553653322_Idx = chckIndx(subInt((s_553653320).length, i_553653321), 0, (s_553653320).length - 1); + result_553652759 = s_553652757; result_553652759_Idx = chckIndx(subInt((s_553652757).length, i_553652758), 0, (s_553652757).length - 1); - return [result_553653322, result_553653322_Idx]; + return [result_553652759, result_553652759_Idx]; } -function pop_553652200(s_553652202, s_553652202_Idx) { - var result_553652203 = {Field0: 0, Field1: 0}; +function pop_553651637(s_553651639, s_553651639_Idx) { + var result_553651640 = {Field0: 0, Field1: 0}; - var L_553652207 = subInt((s_553652202[s_553652202_Idx]).length, 1); - result_553652203 = nimCopy(result_553652203, s_553652202[s_553652202_Idx][chckIndx(L_553652207, 0, (s_553652202[s_553652202_Idx]).length - 1)], NTI1476395011); - if (s_553652202[s_553652202_Idx].length < chckRange(L_553652207, 0, 2147483647)) { for (var i = s_553652202[s_553652202_Idx].length ; i < chckRange(L_553652207, 0, 2147483647) ; ++i) s_553652202[s_553652202_Idx].push({Field0: 0, Field1: 0}); } - else { s_553652202[s_553652202_Idx].length = chckRange(L_553652207, 0, 2147483647); }; + var L_553651644 = subInt((s_553651639[s_553651639_Idx]).length, 1); + result_553651640 = nimCopy(result_553651640, s_553651639[s_553651639_Idx][chckIndx(L_553651644, 0, (s_553651639[s_553651639_Idx]).length - 1)], NTI1476395011); + if (s_553651639[s_553651639_Idx].length < chckRange(L_553651644, 0, 2147483647)) { for (var i = s_553651639[s_553651639_Idx].length ; i < chckRange(L_553651644, 0, 2147483647) ; ++i) s_553651639[s_553651639_Idx].push({Field0: 0, Field1: 0}); } + else { s_553651639[s_553651639_Idx].length = chckRange(L_553651644, 0, 2147483647); }; - return result_553652203; + return result_553651640; } -function cancelPick_553652191() { +function cancelPick_553651628() { if ((0 < (promptHistory_553648324[0]).length)) { picksLeft_553648330[0] = addInt(picksLeft_553648330[0], 1); - var _ = pop_553652200(picks_553648338, 0); - promptStack_553648329[0].push(pop_553652212(promptHistory_553648324, 0));; + var _ = pop_553651637(picks_553648338, 0); + promptStack_553648329[0].push(pop_553651649(promptHistory_553648324, 0));; pickOptions_553648333[0] = nimCopy(null, getPickOptions_553648332[0](), NTI553648299); } @@ -16028,198 +16039,198 @@ function cancelPick_553652191() { } -function cancelPick_553652228(__553652229, __553652230) { - cancelPick_553652191(); +function cancelPick_553651665(__553651666, __553651667) { + cancelPick_553651628(); } -function createInfo_553653030() { +function createInfo_553652467() { -function HEX3Aanonymous_553653104(__553653105, __553653106) { - HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field3(theBoard_553648257[0], theState_553648258[0]); +function HEX3Aanonymous_553652541(__553652542, __553652543) { + HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field3(theBoard_553648257[0], theState_553648258[0]); rawEcho([97,99,116,105,111,110,32,99,111,109,112,108,101,116,101]); Label1: { - var i_553653111 = 0; - var j_553653112 = 0; + var i_553652548 = 0; + var j_553652549 = 0; Label2: { - var i_553657199 = 0; - var i_553657200 = 0; + var i_553655345 = 0; + var i_553655346 = 0; Label3: { Label4: while (true) { - if (!(i_553657200 < 8)) break Label4; - i_553657199 = i_553657200; + if (!(i_553655346 < 8)) break Label4; + i_553655345 = i_553655346; Label5: { - var j_553657203 = 0; - var i_553657204 = 0; + var j_553655349 = 0; + var i_553655350 = 0; Label6: { Label7: while (true) { - if (!(i_553657204 < 8)) break Label7; - j_553657203 = i_553657204; - i_553653111 = i_553657199; - j_553653112 = j_553657203; - var resultHEX60gensym206_553653117 = newSeq_553651950(0); + if (!(i_553655350 < 8)) break Label7; + j_553655349 = i_553655350; + i_553652548 = i_553655345; + j_553652549 = j_553655349; + var resultHEX60gensym140_553652554 = newSeq_553651422(0); Label8: { - var it_553653121 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; - var colontmp__553657194 = []; - colontmp__553657194 = theBoard_553648257[0][chckIndx(i_553653111, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553653112, 0, (theBoard_553648257[0][chckIndx(i_553653111, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; - var i_553657195 = 0; - var L_553657196 = (colontmp__553657194).length; + var it_553652558 = {Field0: {Field0: 0, Field1: 0}, Field1: 0, Field2: 0}; + var colontmp__553655340 = []; + colontmp__553655340 = theBoard_553648257[0][chckIndx(i_553652548, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652549, 0, (theBoard_553648257[0][chckIndx(i_553652548, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts; + var i_553655341 = 0; + var L_553655342 = (colontmp__553655340).length; Label9: { Label10: while (true) { - if (!(i_553657195 < L_553657196)) break Label10; - it_553653121 = colontmp__553657194[chckIndx(i_553657195, 0, (colontmp__553657194).length - 1)]; - if (!((it_553653121.Field1 == HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field2))) { - var Temporary11 = nimCopy(null, it_553653121, NTI1476395028); - resultHEX60gensym206_553653117.push(Temporary11);; + if (!(i_553655341 < L_553655342)) break Label10; + it_553652558 = colontmp__553655340[chckIndx(i_553655341, 0, (colontmp__553655340).length - 1)]; + if (!((it_553652558.Field1 == HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field2))) { + var Temporary11 = nimCopy(null, it_553652558, NTI1476395028); + resultHEX60gensym140_553652554.push(Temporary11);; } - i_553657195 += 1; - if (!(((colontmp__553657194).length == L_553657196))) { + i_553655341 += 1; + if (!(((colontmp__553655340).length == L_553655342))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - theBoard_553648257[0][chckIndx(i_553653111, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553653112, 0, (theBoard_553648257[0][chckIndx(i_553653111, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym206_553653117, NTI553650598); - i_553657204 = addInt(i_553657204, 1); + theBoard_553648257[0][chckIndx(i_553652548, 0, (theBoard_553648257[0]).length - 1)][chckIndx(j_553652549, 0, (theBoard_553648257[0][chckIndx(i_553652548, 0, (theBoard_553648257[0]).length - 1)]).length - 1)].casts = nimCopy(null, resultHEX60gensym140_553652554, NTI553650189); + i_553655350 = addInt(i_553655350, 1); } }; }; - i_553657200 = addInt(i_553657200, 1); + i_553655346 = addInt(i_553655346, 1); } }; }; }; - toSend_553648319[0].push(pop_553653130(actionStack_553648309, 0));; + toSend_553648319[0].push(pop_553652567(actionStack_553648309, 0));; rawEcho([115,101,110,116]); - updateActionStack_553651376(); + updateActionStack_553650848(); } -function HEX3Aanonymous_553653219(__553653220, __553653221) { - nextActionStack_553648314[0].push(pop_553653130(actionStack_553648309, 0));; - updateActionStack_553651376(); +function HEX3Aanonymous_553652656(__553652657, __553652658) { + nextActionStack_553648314[0].push(pop_553652567(actionStack_553648309, 0));; + updateActionStack_553650848(); } -function HEX3Aanonymous_553653229(__553653230, __553653231) { - HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field7(); - var _ = pop_553653130(actionStack_553648309, 0); - updateActionStack_553651376(); +function HEX3Aanonymous_553652666(__553652667, __553652668) { + HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field7(); + var _ = pop_553652567(actionStack_553648309, 0); + updateActionStack_553650848(); } -function HEX3Aanonymous_553653293(__553653294, __553653295) { - nextActionStack_553648314[0].push(pop_553653130(actionStack_553648309, 0));; - updateActionStack_553651376(); +function HEX3Aanonymous_553652730(__553652731, __553652732) { + nextActionStack_553648314[0].push(pop_553652567(actionStack_553648309, 0));; + updateActionStack_553650848(); } var Temporary7; var Temporary9; - var result_553653031 = null; + var result_553652468 = null; - var tmp_553653032 = tree_754975616(44, []); - tmp_553653032.class = "bottom-info"; + var tmp_553652469 = tree_754975616(44, []); + tmp_553652469.class = "bottom-info"; if ((turn_553648240[0] && !(((actionStack_553648309[0]).length == 0)))) { - if ((HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field1 == 0)) { - var tmp_553653033 = tree_754975616(23, []); - if (HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field5) { + if ((HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field1 == 0)) { + var tmp_553652470 = tree_754975616(23, []); + if (HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field5) { Label1: { - var fmtRes_553653080 = [mnewString(0)]; - fmtRes_553653080[0].push.apply(fmtRes_553653080[0], [69,120,101,99,117,116,101,32]);; - formatValue_1728053380(fmtRes_553653080, 0, HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field0); - fmtRes_553653080[0].push.apply(fmtRes_553653080[0], makeNimstrLit(" (This will end your turn, after all other actions are resolved): "));; + var fmtRes_553652517 = [mnewString(0)]; + fmtRes_553652517[0].push.apply(fmtRes_553652517[0], [69,120,101,99,117,116,101,32]);; + formatValue_1728053380(fmtRes_553652517, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field0); + fmtRes_553652517[0].push.apply(fmtRes_553652517[0], makeNimstrLit(" (This will end your turn, after all other actions are resolved): "));; }; - add_754975552(tmp_553653033, text_754975684(fmtRes_553653080[0])); + add_754975552(tmp_553652470, text_754975684(fmtRes_553652517[0])); } else { Label2: { - var fmtRes_553653094 = [mnewString(0)]; - fmtRes_553653094[0].push.apply(fmtRes_553653094[0], [69,120,101,99,117,116,101,32]);; - formatValue_1728053380(fmtRes_553653094, 0, HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field0); - fmtRes_553653094[0].push.apply(fmtRes_553653094[0], [58,32]);; + var fmtRes_553652531 = [mnewString(0)]; + fmtRes_553652531[0].push.apply(fmtRes_553652531[0], [69,120,101,99,117,116,101,32]);; + formatValue_1728053380(fmtRes_553652531, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field0); + fmtRes_553652531[0].push.apply(fmtRes_553652531[0], [58,32]);; }; - add_754975552(tmp_553653033, text_754975684(fmtRes_553653094[0])); + add_754975552(tmp_553652470, text_754975684(fmtRes_553652531[0])); } - add_754975552(tmp_553653032, tmp_553653033); - var tmp_553653034 = tree_754975616(195, []); - add_754975552(tmp_553653034, text_754975684([69,120,101,99,117,116,101,33])); - add_754975552(tmp_553653032, tmp_553653034); - addEventHandler_721422102(tmp_553653032, 0, HEX3Aanonymous_553653104, kxi__); + add_754975552(tmp_553652469, tmp_553652470); + var tmp_553652471 = tree_754975616(195, []); + add_754975552(tmp_553652471, text_754975684([69,120,101,99,117,116,101,33])); + add_754975552(tmp_553652469, tmp_553652471); + addEventHandler_721422102(tmp_553652469, 0, HEX3Aanonymous_553652541, kxi__); } else { - if (HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field4) { - var tmp_553653035 = tree_754975616(23, []); - if (HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field5) { + if (HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field4) { + var tmp_553652472 = tree_754975616(23, []); + if (HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field5) { Label3: { - var fmtRes_553653175 = [mnewString(0)]; - formatValue_1728053380(fmtRes_553653175, 0, HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field0); - fmtRes_553653175[0].push.apply(fmtRes_553653175[0], [32,119,105,108,108,32,99,111,109,112,108,101,116,101,32,105,110,32]);; - formatValue_553651936(fmtRes_553653175, 0, HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field1); - fmtRes_553653175[0].push.apply(fmtRes_553653175[0], [46,32,67,111,110,116,105,110,117,105,110,103,32,100,111,101,115,32,110,111,116,32,101,110,100,32,121,111,117,114,32,116,117,114,110,46,32]);; + var fmtRes_553652612 = [mnewString(0)]; + formatValue_1728053380(fmtRes_553652612, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field0); + fmtRes_553652612[0].push.apply(fmtRes_553652612[0], [32,119,105,108,108,32,99,111,109,112,108,101,116,101,32,105,110,32]);; + formatValue_553651408(fmtRes_553652612, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field1); + fmtRes_553652612[0].push.apply(fmtRes_553652612[0], [46,32,67,111,110,116,105,110,117,105,110,103,32,100,111,101,115,32,110,111,116,32,101,110,100,32,121,111,117,114,32,116,117,114,110,46,32]);; }; - add_754975552(tmp_553653035, text_754975684(fmtRes_553653175[0])); + add_754975552(tmp_553652472, text_754975684(fmtRes_553652612[0])); } else { Label4: { - var fmtRes_553653199 = [mnewString(0)]; - formatValue_1728053380(fmtRes_553653199, 0, HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field0); - fmtRes_553653199[0].push.apply(fmtRes_553653199[0], [32,119,105,108,108,32,99,111,109,112,108,101,116,101,32,105,110,32]);; - formatValue_553651936(fmtRes_553653199, 0, HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field1); - fmtRes_553653199[0].push.apply(fmtRes_553653199[0], [46,32,89,111,117,114,32,116,117,114,110,32,119,105,108,108,32,101,110,100,32,105,102,32,121,111,117,32,99,111,110,116,105,110,117,101,46]);; + var fmtRes_553652636 = [mnewString(0)]; + formatValue_1728053380(fmtRes_553652636, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field0); + fmtRes_553652636[0].push.apply(fmtRes_553652636[0], [32,119,105,108,108,32,99,111,109,112,108,101,116,101,32,105,110,32]);; + formatValue_553651408(fmtRes_553652636, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field1); + fmtRes_553652636[0].push.apply(fmtRes_553652636[0], [46,32,89,111,117,114,32,116,117,114,110,32,119,105,108,108,32,101,110,100,32,105,102,32,121,111,117,32,99,111,110,116,105,110,117,101,46]);; }; - add_754975552(tmp_553653035, text_754975684(fmtRes_553653199[0])); - } - - add_754975552(tmp_553653032, tmp_553653035); - var tmp_553653036 = tree_754975616(44, []); - tmp_553653036.class = "column"; - var tmp_553653037 = tree_754975616(195, []); - add_754975552(tmp_553653037, text_754975684([67,111,110,116,105,110,117,101])); - addEventHandler_721422102(tmp_553653037, 0, HEX3Aanonymous_553653219, kxi__); - add_754975552(tmp_553653036, tmp_553653037); - var tmp_553653038 = tree_754975616(195, []); - add_754975552(tmp_553653038, text_754975684([67,97,110,99,101,108])); - addEventHandler_721422102(tmp_553653038, 0, HEX3Aanonymous_553653229, kxi__); - add_754975552(tmp_553653036, tmp_553653038); - add_754975552(tmp_553653032, tmp_553653036); + add_754975552(tmp_553652472, text_754975684(fmtRes_553652636[0])); + } + + add_754975552(tmp_553652469, tmp_553652472); + var tmp_553652473 = tree_754975616(44, []); + tmp_553652473.class = "column"; + var tmp_553652474 = tree_754975616(195, []); + add_754975552(tmp_553652474, text_754975684([67,111,110,116,105,110,117,101])); + addEventHandler_721422102(tmp_553652474, 0, HEX3Aanonymous_553652656, kxi__); + add_754975552(tmp_553652473, tmp_553652474); + var tmp_553652475 = tree_754975616(195, []); + add_754975552(tmp_553652475, text_754975684([67,97,110,99,101,108])); + addEventHandler_721422102(tmp_553652475, 0, HEX3Aanonymous_553652666, kxi__); + add_754975552(tmp_553652473, tmp_553652475); + add_754975552(tmp_553652469, tmp_553652473); } else { - var tmp_553653039 = tree_754975616(23, []); - if (HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field5) { + var tmp_553652476 = tree_754975616(23, []); + if (HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field5) { Label5: { - var fmtRes_553653249 = [mnewString(0)]; - formatValue_1728053380(fmtRes_553653249, 0, HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field0); - fmtRes_553653249[0].push.apply(fmtRes_553653249[0], [32,119,105,108,108,32,114,101,115,111,108,118,101,32,105,110,32]);; - formatValue_553651936(fmtRes_553653249, 0, HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field1); - fmtRes_553653249[0].push.apply(fmtRes_553653249[0], [32,116,117,114,110,115,46]);; + var fmtRes_553652686 = [mnewString(0)]; + formatValue_1728053380(fmtRes_553652686, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field0); + fmtRes_553652686[0].push.apply(fmtRes_553652686[0], [32,119,105,108,108,32,114,101,115,111,108,118,101,32,105,110,32]);; + formatValue_553651408(fmtRes_553652686, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field1); + fmtRes_553652686[0].push.apply(fmtRes_553652686[0], [32,116,117,114,110,115,46]);; }; - add_754975552(tmp_553653039, text_754975684(fmtRes_553653249[0])); + add_754975552(tmp_553652476, text_754975684(fmtRes_553652686[0])); } else { Label6: { - var fmtRes_553653273 = [mnewString(0)]; - formatValue_1728053380(fmtRes_553653273, 0, HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field0); - fmtRes_553653273[0].push.apply(fmtRes_553653273[0], [32,119,105,108,108,32,114,101,115,111,108,118,101,32,105,110,32]);; - formatValue_553651936(fmtRes_553653273, 0, HEX5BHEX5D_553653047(actionStack_553648309[0], 1).Field1); - fmtRes_553653273[0].push.apply(fmtRes_553653273[0], makeNimstrLit(" turns.\x0A This will end your turn, once all other actions are resolved."));; + var fmtRes_553652710 = [mnewString(0)]; + formatValue_1728053380(fmtRes_553652710, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field0); + fmtRes_553652710[0].push.apply(fmtRes_553652710[0], [32,119,105,108,108,32,114,101,115,111,108,118,101,32,105,110,32]);; + formatValue_553651408(fmtRes_553652710, 0, HEX5BHEX5D_553652484(actionStack_553648309[0], 1).Field1); + fmtRes_553652710[0].push.apply(fmtRes_553652710[0], makeNimstrLit(" turns.\x0A This will end your turn, once all other actions are resolved."));; }; - add_754975552(tmp_553653039, text_754975684(fmtRes_553653273[0])); + add_754975552(tmp_553652476, text_754975684(fmtRes_553652710[0])); } - add_754975552(tmp_553653032, tmp_553653039); - var tmp_553653040 = tree_754975616(195, []); - add_754975552(tmp_553653040, text_754975684([79,107])); - addEventHandler_721422102(tmp_553653040, 0, HEX3Aanonymous_553653293, kxi__); - add_754975552(tmp_553653032, tmp_553653040); + add_754975552(tmp_553652469, tmp_553652476); + var tmp_553652477 = tree_754975616(195, []); + add_754975552(tmp_553652477, text_754975684([79,107])); + addEventHandler_721422102(tmp_553652477, 0, HEX3Aanonymous_553652730, kxi__); + add_754975552(tmp_553652469, tmp_553652477); } } } @@ -16232,43 +16243,43 @@ function HEX3Aanonymous_553653293(__553653294, __553653295) { Temporary7 = [79,112,112,111,110,101,110,116,32,105,115,32,109,111,118,105,110,103,46,32]; } - var text_553653306 = nimCopy(null, Temporary7, NTI33554449); + var text_553652743 = nimCopy(null, Temporary7, NTI33554449); if (hasWallet_1879048196(side_553648239[0], theState_553648258[0])) { Label8: { - var fmtRes_553653311 = [mnewString(0)]; - fmtRes_553653311[0].push.apply(fmtRes_553653311[0], [89,111,117,32,104,97,118,101,32]);; - formatValue_553651936(fmtRes_553653311, 0, getMoney_1879048207(side_553648239[0], theState_553648258[0])); - fmtRes_553653311[0].push.apply(fmtRes_553653311[0], [32,100,111,108,108,97,114,115,46]);; + var fmtRes_553652748 = [mnewString(0)]; + fmtRes_553652748[0].push.apply(fmtRes_553652748[0], [89,111,117,32,104,97,118,101,32]);; + formatValue_553651408(fmtRes_553652748, 0, getMoney_1879048207(side_553648239[0], theState_553648258[0])); + fmtRes_553652748[0].push.apply(fmtRes_553652748[0], [32,100,111,108,108,97,114,115,46]);; }; - text_553653306.push.apply(text_553653306, fmtRes_553653311[0]);; + text_553652743.push.apply(text_553652743, fmtRes_553652748[0]);; } - var tmp_553653041 = tree_754975616(23, []); - add_754975552(tmp_553653041, text_754975684(text_553653306)); - add_754975552(tmp_553653032, tmp_553653041); + var tmp_553652478 = tree_754975616(23, []); + add_754975552(tmp_553652478, text_754975684(text_553652743)); + add_754975552(tmp_553652469, tmp_553652478); } else { - var tmp_553653042 = tree_754975616(23, []); - add_754975552(tmp_553653042, text_754975684((Temporary9 = HEX5BHEX5D_553653318(promptStack_553648329[0], 1), Temporary9)[0][Temporary9[1]])); - add_754975552(tmp_553653032, tmp_553653042); - var tmp_553653043 = tree_754975616(195, []); - addEventHandler_721422102(tmp_553653043, 0, cancelPick_553652228, kxi__); - add_754975552(tmp_553653043, text_754975684([85,110,100,111,32,108,97,115,116])); - add_754975552(tmp_553653032, tmp_553653043); + var tmp_553652479 = tree_754975616(23, []); + add_754975552(tmp_553652479, text_754975684((Temporary9 = HEX5BHEX5D_553652755(promptStack_553648329[0], 1), Temporary9)[0][Temporary9[1]])); + add_754975552(tmp_553652469, tmp_553652479); + var tmp_553652480 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553652480, 0, cancelPick_553651665, kxi__); + add_754975552(tmp_553652480, text_754975684([85,110,100,111,32,108,97,115,116])); + add_754975552(tmp_553652469, tmp_553652480); } } - result_553653031 = tmp_553653032; + result_553652468 = tmp_553652469; - return result_553653031; + return result_553652468; } -function createGame_553653963() { +function createGame_553653400() { var Temporary1; var Temporary2; var Temporary3; -function HEX3Aanonymous_553653985(__553653986, __553653987) { +function HEX3Aanonymous_553653422(__553653423, __553653424) { clear_553648458(); practiceMode_553648282[0] = false; currentScreen_553648287[0] = 11; @@ -16276,37 +16287,37 @@ function HEX3Aanonymous_553653985(__553653986, __553653987) { } -function HEX3Aanonymous_553653991(__553653992, __553653993) { +function HEX3Aanonymous_553653428(__553653429, __553653430) { currentTab_553648288[0] = 0; } -function HEX3Aanonymous_553654013(__553654014, __553654015) { +function HEX3Aanonymous_553653450(__553653451, __553653452) { currentTab_553648288[0] = 1; } -function HEX3Aanonymous_553654016(__553654017, __553654018) { +function HEX3Aanonymous_553653453(__553653454, __553653455) { currentTab_553648288[0] = 2; } -function HEX3Aanonymous_553654019(__553654020, __553654021) { +function HEX3Aanonymous_553653456(__553653457, __553653458) { currentTab_553648288[0] = 3; } -function HEX3Aanonymous_553654026(__553654027, __553654028) { +function HEX3Aanonymous_553653463(__553653464, __553653465) { showDebug_553648285[0] = true; } - var result_553653964 = null; + var result_553653401 = null; if ((1200 < screenWidth_553648290[0])) { Temporary1 = [109,97,105,110]; @@ -16315,7 +16326,7 @@ function HEX3Aanonymous_553654026(__553654027, __553654028) { Temporary1 = [99,111,108,117,109,110,32,104,101,105,103,104,116,45,49,48,48]; } - var topClass_553653965 = nimCopy(null, Temporary1, NTI33554449); + var topClass_553653402 = nimCopy(null, Temporary1, NTI33554449); if ((1200 < screenWidth_553648290[0])) { Temporary2 = [116,97,98,45,99,111,108,117,109,110]; } @@ -16323,11 +16334,11 @@ function HEX3Aanonymous_553654026(__553654027, __553654028) { Temporary2 = [116,97,98,45,99,111,108,117,109,110,32,108,111,110,103]; } - var nextClass_553653966 = nimCopy(null, Temporary2, NTI33554449); - var tmp_553653967 = tree_754975616(44, []); - tmp_553653967.class = toJSStr(topClass_553653965); - var tmp_553653968 = tree_754975616(44, []); - tmp_553653968.class = toJSStr(nextClass_553653966); + var nextClass_553653403 = nimCopy(null, Temporary2, NTI33554449); + var tmp_553653404 = tree_754975616(44, []); + tmp_553653404.class = toJSStr(topClass_553653402); + var tmp_553653405 = tree_754975616(44, []); + tmp_553653405.class = toJSStr(nextClass_553653403); if (practiceMode_553648282[0]) { if ((1200 < screenWidth_553648290[0])) { Temporary3 = [109,111,118,101,45,117,112,32,119,105,100,116,104,45,55,48]; @@ -16336,60 +16347,60 @@ function HEX3Aanonymous_553654026(__553654027, __553654028) { Temporary3 = [109,111,118,101,45,114,105,103,104,116]; } - var class_553653984 = nimCopy(null, Temporary3, NTI33554449); - var tmp_553653969 = tree_754975616(195, []); - tmp_553653969.class = toJSStr(class_553653984); - tmp_553653969.id = "exit-practice"; - add_754975552(tmp_553653969, text_754975684([69,120,105,116,32,112,114,97,99,116,105,99,101])); - addEventHandler_721422102(tmp_553653969, 0, HEX3Aanonymous_553653985, kxi__); - add_754975552(tmp_553653968, tmp_553653969); + var class_553653421 = nimCopy(null, Temporary3, NTI33554449); + var tmp_553653406 = tree_754975616(195, []); + tmp_553653406.class = toJSStr(class_553653421); + tmp_553653406.id = "exit-practice"; + add_754975552(tmp_553653406, text_754975684([69,120,105,116,32,112,114,97,99,116,105,99,101])); + addEventHandler_721422102(tmp_553653406, 0, HEX3Aanonymous_553653422, kxi__); + add_754975552(tmp_553653405, tmp_553653406); } - var tmp_553653970 = tree_754975616(44, []); - tmp_553653970.class = "tab-row extra-right"; + var tmp_553653407 = tree_754975616(44, []); + tmp_553653407.class = "tab-row extra-right"; if (!(((myDrafts_553648245[0]).length == 0))) { - var tmp_553653971 = tree_754975616(195, []); - add_754975552(tmp_553653971, text_754975684([89,111,117,114,32,68,114,97,102,116,115])); - addEventHandler_721422102(tmp_553653971, 0, HEX3Aanonymous_553653991, kxi__); - add_754975552(tmp_553653970, tmp_553653971); + var tmp_553653408 = tree_754975616(195, []); + add_754975552(tmp_553653408, text_754975684([89,111,117,114,32,68,114,97,102,116,115])); + addEventHandler_721422102(tmp_553653408, 0, HEX3Aanonymous_553653428, kxi__); + add_754975552(tmp_553653407, tmp_553653408); } if (!(((opponentDrafts_553648250[0]).length == 0))) { - var tmp_553653972 = tree_754975616(195, []); - add_754975552(tmp_553653972, text_754975684([79,112,112,111,110,101,110,116,32,68,114,97,102,116,115])); - addEventHandler_721422102(tmp_553653972, 0, HEX3Aanonymous_553654013, kxi__); - add_754975552(tmp_553653970, tmp_553653972); + var tmp_553653409 = tree_754975616(195, []); + add_754975552(tmp_553653409, text_754975684([79,112,112,111,110,101,110,116,32,68,114,97,102,116,115])); + addEventHandler_721422102(tmp_553653409, 0, HEX3Aanonymous_553653450, kxi__); + add_754975552(tmp_553653407, tmp_553653409); } - var tmp_553653973 = tree_754975616(195, []); - add_754975552(tmp_553653973, text_754975684([80,111,119,101,114,32,67,111,110,116,114,111,108])); - addEventHandler_721422102(tmp_553653973, 0, HEX3Aanonymous_553654016, kxi__); - add_754975552(tmp_553653970, tmp_553653973); + var tmp_553653410 = tree_754975616(195, []); + add_754975552(tmp_553653410, text_754975684([80,111,119,101,114,32,67,111,110,116,114,111,108])); + addEventHandler_721422102(tmp_553653410, 0, HEX3Aanonymous_553653453, kxi__); + add_754975552(tmp_553653407, tmp_553653410); if ((false || showDebug_553648285[0])) { - var tmp_553653974 = tree_754975616(195, []); - add_754975552(tmp_553653974, text_754975684([68,101,98,117,103])); - addEventHandler_721422102(tmp_553653974, 0, HEX3Aanonymous_553654019, kxi__); - add_754975552(tmp_553653970, tmp_553653974); + var tmp_553653411 = tree_754975616(195, []); + add_754975552(tmp_553653411, text_754975684([68,101,98,117,103])); + addEventHandler_721422102(tmp_553653411, 0, HEX3Aanonymous_553653456, kxi__); + add_754975552(tmp_553653407, tmp_553653411); } - add_754975552(tmp_553653968, tmp_553653970); - var tmp_553653975 = tree_754975616(44, []); - tmp_553653975.class = "column-scroll"; + add_754975552(tmp_553653405, tmp_553653407); + var tmp_553653412 = tree_754975616(44, []); + tmp_553653412.class = "column-scroll"; switch (currentTab_553648288[0]) { case 0: Label4: { - var p_553654025 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var colontmp__553657023 = []; - colontmp__553657023 = replaceAnySynergies_1728054684(myDrafts_553648245[0]); - var i_553657024 = 0; - var L_553657025 = (colontmp__553657023).length; + var p_553653462 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var colontmp__553655181 = []; + colontmp__553655181 = replaceAnySynergies_1728054684(myDrafts_553648245[0]); + var i_553655182 = 0; + var L_553655183 = (colontmp__553655181).length; Label5: { Label6: while (true) { - if (!(i_553657024 < L_553657025)) break Label6; - p_553654025 = colontmp__553657023[chckIndx(i_553657024, 0, (colontmp__553657023).length - 1)]; - add_754975552(tmp_553653975, createPowerSummary_553652943(p_553654025, side_553648239[0])); - i_553657024 += 1; - if (!(((colontmp__553657023).length == L_553657025))) { + if (!(i_553655182 < L_553655183)) break Label6; + p_553653462 = colontmp__553655181[chckIndx(i_553655182, 0, (colontmp__553655181).length - 1)]; + add_754975552(tmp_553653412, createPowerSummary_553652380(p_553653462, side_553648239[0])); + i_553655182 += 1; + if (!(((colontmp__553655181).length == L_553655183))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -16397,27 +16408,27 @@ function HEX3Aanonymous_553654026(__553654027, __553654028) { }; }; if (!(practiceMode_553648282[0])) { - var tmp_553653976 = tree_754975616(44, []); - tmp_553653976.class = "debug"; - addEventHandler_721422102(tmp_553653976, 0, HEX3Aanonymous_553654026, kxi__); - add_754975552(tmp_553653975, tmp_553653976); + var tmp_553653413 = tree_754975616(44, []); + tmp_553653413.class = "debug"; + addEventHandler_721422102(tmp_553653413, 0, HEX3Aanonymous_553653463, kxi__); + add_754975552(tmp_553653412, tmp_553653413); } break; case 1: Label7: { - var p_553654032 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var colontmp__553657028 = []; - colontmp__553657028 = replaceAnySynergies_1728054684(opponentDrafts_553648250[0]); - var i_553657029 = 0; - var L_553657030 = (colontmp__553657028).length; + var p_553653469 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var colontmp__553655186 = []; + colontmp__553655186 = replaceAnySynergies_1728054684(opponentDrafts_553648250[0]); + var i_553655187 = 0; + var L_553655188 = (colontmp__553655186).length; Label8: { Label9: while (true) { - if (!(i_553657029 < L_553657030)) break Label9; - p_553654032 = colontmp__553657028[chckIndx(i_553657029, 0, (colontmp__553657028).length - 1)]; - add_754975552(tmp_553653975, createPowerSummary_553652943(p_553654032, otherSide_1476396060(side_553648239[0]))); - i_553657029 += 1; - if (!(((colontmp__553657028).length == L_553657030))) { + if (!(i_553655187 < L_553655188)) break Label9; + p_553653469 = colontmp__553655186[chckIndx(i_553655187, 0, (colontmp__553655186).length - 1)]; + add_754975552(tmp_553653412, createPowerSummary_553652380(p_553653469, otherSide_1476396061(side_553648239[0]))); + i_553655187 += 1; + if (!(((colontmp__553655186).length == L_553655188))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -16426,109 +16437,109 @@ function HEX3Aanonymous_553654026(__553654027, __553654028) { }; break; case 2: - if ((isSelected_553648359((-1), (-1)) || isAir_1476396035(HEX5BHEX5D_1476395363(theBoard_553648257[0], selectedTile_553648261[0])))) { - add_754975552(tmp_553653975, createPieceProfile_553652994(HEX5BHEX5D_1476395363(theBoard_553648257[0], getKing_1476396248(side_553648239[0], theBoard_553648257[0])))); + if ((isSelected_553648359((-1), (-1)) || isAir_1476396036(HEX5BHEX5D_1476395364(theBoard_553648257[0], selectedTile_553648261[0])))) { + add_754975552(tmp_553653412, createPieceProfile_553652431(HEX5BHEX5D_1476395364(theBoard_553648257[0], getKing_1476396249(side_553648239[0], theBoard_553648257[0])))); } else { - add_754975552(tmp_553653975, createPieceProfile_553652994(pieceOf_553648356(selectedTile_553648261[0]))); + add_754975552(tmp_553653412, createPieceProfile_553652431(pieceOf_553648356(selectedTile_553648261[0]))); } if (hasGlass_1946157064(side_553648239[0], theState_553648258[0])) { - add_754975552(tmp_553653975, createGlassMenu_553653417()); + add_754975552(tmp_553653412, createGlassMenu_553652854()); } break; case 3: - var tmp_553653977 = tree_754975616(44, []); - tmp_553653977.class = "main"; + var tmp_553653414 = tree_754975616(44, []); + tmp_553653414.class = "main"; Label10: { - var fmtRes_553654135 = [mnewString(0)]; - fmtRes_553654135[0].push.apply(fmtRes_553654135[0], [83,104,97,114,101,100,58,32]);; - formatValue_1728053380(fmtRes_553654135, 0, HEX24_553654136(theState_553648258[0].Field0)); + var fmtRes_553653572 = [mnewString(0)]; + fmtRes_553653572[0].push.apply(fmtRes_553653572[0], [83,104,97,114,101,100,58,32]);; + formatValue_1728053380(fmtRes_553653572, 0, HEX24_553653573(theState_553648258[0].Field0)); }; - add_754975552(tmp_553653977, text_754975684(fmtRes_553654135[0])); - add_754975552(tmp_553653975, tmp_553653977); - var tmp_553653978 = tree_754975616(44, []); - tmp_553653978.class = "main"; + add_754975552(tmp_553653414, text_754975684(fmtRes_553653572[0])); + add_754975552(tmp_553653412, tmp_553653414); + var tmp_553653415 = tree_754975616(44, []); + tmp_553653415.class = "main"; Label11: { - var fmtRes_553654211 = [mnewString(0)]; - fmtRes_553654211[0].push.apply(fmtRes_553654211[0], [87,104,105,116,101,58,32]);; - formatValue_1728053380(fmtRes_553654211, 0, HEX24_553654212(theState_553648258[0].Field1[chckIndx(1, 0, (theState_553648258[0].Field1).length - 1)])); + var fmtRes_553653648 = [mnewString(0)]; + fmtRes_553653648[0].push.apply(fmtRes_553653648[0], [87,104,105,116,101,58,32]);; + formatValue_1728053380(fmtRes_553653648, 0, HEX24_1845497481(theState_553648258[0].Field1[chckIndx(1, 0, (theState_553648258[0].Field1).length - 1)])); }; - add_754975552(tmp_553653978, text_754975684(fmtRes_553654211[0])); - add_754975552(tmp_553653975, tmp_553653978); - var tmp_553653979 = tree_754975616(44, []); - tmp_553653979.class = "main"; + add_754975552(tmp_553653415, text_754975684(fmtRes_553653648[0])); + add_754975552(tmp_553653412, tmp_553653415); + var tmp_553653416 = tree_754975616(44, []); + tmp_553653416.class = "main"; Label12: { - var fmtRes_553655494 = [mnewString(0)]; - fmtRes_553655494[0].push.apply(fmtRes_553655494[0], [66,108,97,99,107,58,32]);; - formatValue_1728053380(fmtRes_553655494, 0, HEX24_553654212(theState_553648258[0].Field1[chckIndx(0, 0, (theState_553648258[0].Field1).length - 1)])); + var fmtRes_553653661 = [mnewString(0)]; + fmtRes_553653661[0].push.apply(fmtRes_553653661[0], [66,108,97,99,107,58,32]);; + formatValue_1728053380(fmtRes_553653661, 0, HEX24_1845497481(theState_553648258[0].Field1[chckIndx(0, 0, (theState_553648258[0].Field1).length - 1)])); }; - add_754975552(tmp_553653979, text_754975684(fmtRes_553655494[0])); - add_754975552(tmp_553653975, tmp_553653979); + add_754975552(tmp_553653416, text_754975684(fmtRes_553653661[0])); + add_754975552(tmp_553653412, tmp_553653416); if (!(isSelected_553648359((-1), (-1)))) { - var tmp_553653980 = tree_754975616(44, []); - tmp_553653980.class = "main"; + var tmp_553653417 = tree_754975616(44, []); + tmp_553653417.class = "main"; Label13: { - var fmtRes_553655507 = [mnewString(0)]; - fmtRes_553655507[0].push.apply(fmtRes_553655507[0], [83,101,108,101,99,116,101,100,32,112,105,101,99,101,58,32]);; - formatValue_1728053380(fmtRes_553655507, 0, HEX24_553650764(pieceOf_553648356(selectedTile_553648261[0]))); + var fmtRes_553653674 = [mnewString(0)]; + fmtRes_553653674[0].push.apply(fmtRes_553653674[0], [83,101,108,101,99,116,101,100,32,112,105,101,99,101,58,32]);; + formatValue_1728053380(fmtRes_553653674, 0, HEX24_1845498085(pieceOf_553648356(selectedTile_553648261[0]))); }; - add_754975552(tmp_553653980, text_754975684(fmtRes_553655507[0])); - add_754975552(tmp_553653975, tmp_553653980); + add_754975552(tmp_553653417, text_754975684(fmtRes_553653674[0])); + add_754975552(tmp_553653412, tmp_553653417); } - var tmp_553653981 = tree_754975616(44, []); - tmp_553653981.class = "main"; + var tmp_553653418 = tree_754975616(44, []); + tmp_553653418.class = "main"; Label14: { - var fmtRes_553655520 = [mnewString(0)]; - fmtRes_553655520[0].push.apply(fmtRes_553655520[0], [65,99,116,105,111,110,32,83,116,97,99,107,58,32]);; - formatValue_553655521(fmtRes_553655520, 0, actionStack_553648309[0]); + var fmtRes_553653687 = [mnewString(0)]; + fmtRes_553653687[0].push.apply(fmtRes_553653687[0], [65,99,116,105,111,110,32,83,116,97,99,107,58,32]);; + formatValue_553653688(fmtRes_553653687, 0, actionStack_553648309[0]); }; - add_754975552(tmp_553653981, text_754975684(fmtRes_553655520[0])); - add_754975552(tmp_553653975, tmp_553653981); - var tmp_553653982 = tree_754975616(44, []); - tmp_553653982.class = "main"; + add_754975552(tmp_553653418, text_754975684(fmtRes_553653687[0])); + add_754975552(tmp_553653412, tmp_553653418); + var tmp_553653419 = tree_754975616(44, []); + tmp_553653419.class = "main"; Label15: { - var fmtRes_553655539 = [mnewString(0)]; - fmtRes_553655539[0].push.apply(fmtRes_553655539[0], [78,101,120,116,32,65,99,116,105,111,110,83,116,97,99,107,58,32]);; - formatValue_553655521(fmtRes_553655539, 0, nextActionStack_553648314[0]); + var fmtRes_553653706 = [mnewString(0)]; + fmtRes_553653706[0].push.apply(fmtRes_553653706[0], [78,101,120,116,32,65,99,116,105,111,110,83,116,97,99,107,58,32]);; + formatValue_553653688(fmtRes_553653706, 0, nextActionStack_553648314[0]); }; - add_754975552(tmp_553653982, text_754975684(fmtRes_553655539[0])); - add_754975552(tmp_553653975, tmp_553653982); + add_754975552(tmp_553653419, text_754975684(fmtRes_553653706[0])); + add_754975552(tmp_553653412, tmp_553653419); break; } - add_754975552(tmp_553653968, tmp_553653975); - add_754975552(tmp_553653967, tmp_553653968); - var tmp_553653983 = tree_754975616(44, []); - tmp_553653983.class = "column"; + add_754975552(tmp_553653405, tmp_553653412); + add_754975552(tmp_553653404, tmp_553653405); + var tmp_553653420 = tree_754975616(44, []); + tmp_553653420.class = "column"; if ((side_553648239[0] == 1)) { - add_754975552(tmp_553653983, createBoard_553652612()); + add_754975552(tmp_553653420, createBoard_553652049()); } else { - add_754975552(tmp_553653983, reverseBoard_553652632()); + add_754975552(tmp_553653420, reverseBoard_553652069()); } - add_754975552(tmp_553653983, createInfo_553653030()); - add_754975552(tmp_553653967, tmp_553653983); - result_553653964 = tmp_553653967; + add_754975552(tmp_553653420, createInfo_553652467()); + add_754975552(tmp_553653404, tmp_553653420); + result_553653401 = tmp_553653404; - return result_553653964; + return result_553653401; } -function createResults_553655550() { +function createResults_553653717() { -function HEX3Aanonymous_553655558(__553655559, __553655560) { +function HEX3Aanonymous_553653725(__553653726, __553653727) { currentScreen_553648287[0] = 0; practiceMode_553648282[0] = false; } -function HEX3Aanonymous_553655561(__553655562, __553655563) { +function HEX3Aanonymous_553653728(__553653729, __553653730) { if ((side_553648239[0] == 0)) { - joinLogic_553652383([], 5); + joinLogic_553651820([], 5); } else { peer_553648238[0].Field0("rematch:please"); @@ -16539,13 +16550,13 @@ function HEX3Aanonymous_553655561(__553655562, __553655563) { } -function HEX3Aanonymous_553655570(__553655571, __553655572) { +function HEX3Aanonymous_553653737(__553653738, __553653739) { if ((side_553648239[0] == 1)) { - hostLogic_553652338([], 4); + hostLogic_553651775([], 4); } else { if ((side_553648239[0] == 0)) { - joinLogic_553652383([], 4); + joinLogic_553651820([], 4); } } currentScreen_553648287[0] = 0; @@ -16553,176 +16564,176 @@ function HEX3Aanonymous_553655570(__553655571, __553655572) { } - var result_553655551 = null; + var result_553653718 = null; - var tmp_553655552 = tree_754975616(44, []); - tmp_553655552.class = "start-column"; - if (alive_1476396067(side_553648239[0], theBoard_553648257[0])) { - var tmp_553655553 = tree_754975616(21, []); - add_754975552(tmp_553655553, text_754975684([89,111,117,32,119,111,110,33])); - add_754975552(tmp_553655552, tmp_553655553); + var tmp_553653719 = tree_754975616(44, []); + tmp_553653719.class = "start-column"; + if (alive_1476396068(side_553648239[0], theBoard_553648257[0])) { + var tmp_553653720 = tree_754975616(21, []); + add_754975552(tmp_553653720, text_754975684([89,111,117,32,119,111,110,33])); + add_754975552(tmp_553653719, tmp_553653720); } else { - var tmp_553655554 = tree_754975616(21, []); - add_754975552(tmp_553655554, text_754975684([89,111,117,32,108,111,115,116,46,46,46])); - add_754975552(tmp_553655552, tmp_553655554); + var tmp_553653721 = tree_754975616(21, []); + add_754975552(tmp_553653721, text_754975684([89,111,117,32,108,111,115,116,46,46,46])); + add_754975552(tmp_553653719, tmp_553653721); } if (practiceMode_553648282[0]) { - var tmp_553655555 = tree_754975616(195, []); - addEventHandler_721422102(tmp_553655555, 0, HEX3Aanonymous_553655558, kxi__); - add_754975552(tmp_553655555, text_754975684([66,97,99,107,32,116,111,32,76,111,98,98,121])); - add_754975552(tmp_553655552, tmp_553655555); + var tmp_553653722 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553653722, 0, HEX3Aanonymous_553653725, kxi__); + add_754975552(tmp_553653722, text_754975684([66,97,99,107,32,116,111,32,76,111,98,98,121])); + add_754975552(tmp_553653719, tmp_553653722); } else { - var tmp_553655556 = tree_754975616(195, []); - addEventHandler_721422102(tmp_553655556, 0, HEX3Aanonymous_553655561, kxi__); - add_754975552(tmp_553655556, text_754975684([82,101,109,97,116,99,104])); - add_754975552(tmp_553655552, tmp_553655556); - var tmp_553655557 = tree_754975616(195, []); - addEventHandler_721422102(tmp_553655557, 0, HEX3Aanonymous_553655570, kxi__); - add_754975552(tmp_553655557, text_754975684([66,97,99,107,32,116,111,32,76,111,98,98,121])); - add_754975552(tmp_553655552, tmp_553655557); + var tmp_553653723 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553653723, 0, HEX3Aanonymous_553653728, kxi__); + add_754975552(tmp_553653723, text_754975684([82,101,109,97,116,99,104])); + add_754975552(tmp_553653719, tmp_553653723); + var tmp_553653724 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553653724, 0, HEX3Aanonymous_553653737, kxi__); + add_754975552(tmp_553653724, text_754975684([66,97,99,107,32,116,111,32,76,111,98,98,121])); + add_754975552(tmp_553653719, tmp_553653724); } - result_553655551 = tmp_553655552; + result_553653718 = tmp_553653719; - return result_553655551; + return result_553653718; } -function createRematch_553655581() { +function createRematch_553653748() { -function HEX3Aanonymous_553655585(__553655586, __553655587) { +function HEX3Aanonymous_553653752(__553653753, __553653754) { currentScreen_553648287[0] = 0; peer_553648238[0].Field0("end:exit"); } - var result_553655582 = null; + var result_553653749 = null; - var tmp_553655583 = tree_754975616(44, []); - tmp_553655583.class = "main"; - add_754975552(tmp_553655583, text_754975684([87,97,105,116,105,110,103,32,102,111,114,32,111,112,112,111,110,101,110,116,32,116,111,32,97,99,99,101,112,116,46,46,46])); - var tmp_553655584 = tree_754975616(195, []); - addEventHandler_721422102(tmp_553655584, 0, HEX3Aanonymous_553655585, kxi__); - add_754975552(tmp_553655584, text_754975684([66,97,99,107,32,116,111,32,76,111,98,98,121])); - add_754975552(tmp_553655583, tmp_553655584); - result_553655582 = tmp_553655583; + var tmp_553653750 = tree_754975616(44, []); + tmp_553653750.class = "main"; + add_754975552(tmp_553653750, text_754975684([87,97,105,116,105,110,103,32,102,111,114,32,111,112,112,111,110,101,110,116,32,116,111,32,97,99,99,101,112,116,46,46,46])); + var tmp_553653751 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553653751, 0, HEX3Aanonymous_553653752, kxi__); + add_754975552(tmp_553653751, text_754975684([66,97,99,107,32,116,111,32,76,111,98,98,121])); + add_754975552(tmp_553653750, tmp_553653751); + result_553653749 = tmp_553653750; - return result_553655582; + return result_553653749; } -function createDisconnect_553655590() { +function createDisconnect_553653757() { -function HEX3Aanonymous_553655594(__553655595, __553655596) { +function HEX3Aanonymous_553653761(__553653762, __553653763) { currentScreen_553648287[0] = 0; } - var result_553655591 = null; + var result_553653758 = null; - var tmp_553655592 = tree_754975616(44, []); - tmp_553655592.class = "start-column"; - add_754975552(tmp_553655592, text_754975684([89,111,117,114,32,111,112,112,111,110,101,110,116,32,100,105,115,99,111,110,110,101,99,116,101,100])); - var tmp_553655593 = tree_754975616(195, []); - addEventHandler_721422102(tmp_553655593, 0, HEX3Aanonymous_553655594, kxi__); - add_754975552(tmp_553655593, text_754975684([66,97,99,107,32,116,111,32,76,111,98,98,121])); - add_754975552(tmp_553655592, tmp_553655593); - result_553655591 = tmp_553655592; + var tmp_553653759 = tree_754975616(44, []); + tmp_553653759.class = "start-column"; + add_754975552(tmp_553653759, text_754975684([89,111,117,114,32,111,112,112,111,110,101,110,116,32,100,105,115,99,111,110,110,101,99,116,101,100])); + var tmp_553653760 = tree_754975616(195, []); + addEventHandler_721422102(tmp_553653760, 0, HEX3Aanonymous_553653761, kxi__); + add_754975552(tmp_553653760, text_754975684([66,97,99,107,32,116,111,32,76,111,98,98,121])); + add_754975552(tmp_553653759, tmp_553653760); + result_553653758 = tmp_553653759; - return result_553655591; + return result_553653758; } -function createOther_553655597() { +function createOther_553653764() { -function HEX3Aanonymous_553655605(__553655606, __553655607) { +function HEX3Aanonymous_553653772(__553653773, __553653774) { currentScreen_553648287[0] = 9; } -function HEX3Aanonymous_553655608(ev_553655609, __553655610) { +function HEX3Aanonymous_553653775(ev_553653776, __553653777) { alert("Unimplemented"); } -function HEX3Aanonymous_553655611(ev_553655612, __553655613) { +function HEX3Aanonymous_553653778(ev_553653779, __553653780) { alert("Unimplemented"); } -function HEX3Aanonymous_553655614(__553655615, __553655616) { +function HEX3Aanonymous_553653781(__553653782, __553653783) { currentScreen_553648287[0] = 0; } - var result_553655598 = null; - - var tmp_553655599 = tree_754975616(44, []); - tmp_553655599.class = "start-column"; - var tmp_553655600 = tree_754975616(44, []); - tmp_553655600.class = "main"; - var tmp_553655601 = tree_754975616(195, []); - tmp_553655601.class = " menu-button "; - add_754975552(tmp_553655601, text_754975684([83,101,116,116,105,110,103,115])); - addEventHandler_721422102(tmp_553655601, 0, HEX3Aanonymous_553655605, kxi__); - add_754975552(tmp_553655600, tmp_553655601); - var tmp_553655602 = tree_754975616(195, []); - tmp_553655602.class = " menu-button "; - add_754975552(tmp_553655602, text_754975684([67,104,97,110,103,101,32,76,111,103])); - addEventHandler_721422102(tmp_553655602, 0, HEX3Aanonymous_553655608, kxi__); - add_754975552(tmp_553655600, tmp_553655602); - add_754975552(tmp_553655599, tmp_553655600); - var tmp_553655603 = tree_754975616(195, []); - tmp_553655603.class = "width-100"; - add_754975552(tmp_553655603, text_754975684([67,114,101,100,105,116,115])); - addEventHandler_721422102(tmp_553655603, 0, HEX3Aanonymous_553655611, kxi__); - add_754975552(tmp_553655599, tmp_553655603); - var tmp_553655604 = tree_754975616(195, []); - tmp_553655604.class = "width-100"; - add_754975552(tmp_553655604, text_754975684([82,101,116,117,114,110,32,84,111,32,76,111,98,98,121])); - addEventHandler_721422102(tmp_553655604, 0, HEX3Aanonymous_553655614, kxi__); - add_754975552(tmp_553655599, tmp_553655604); - result_553655598 = tmp_553655599; - - return result_553655598; - -} - -function createSetting_553655617(setting_553655618, setting_553655618_Idx, title_553655619, description_553655620, defaultOption_553655621) { + var result_553653765 = null; + + var tmp_553653766 = tree_754975616(44, []); + tmp_553653766.class = "start-column"; + var tmp_553653767 = tree_754975616(44, []); + tmp_553653767.class = "main"; + var tmp_553653768 = tree_754975616(195, []); + tmp_553653768.class = " menu-button "; + add_754975552(tmp_553653768, text_754975684([83,101,116,116,105,110,103,115])); + addEventHandler_721422102(tmp_553653768, 0, HEX3Aanonymous_553653772, kxi__); + add_754975552(tmp_553653767, tmp_553653768); + var tmp_553653769 = tree_754975616(195, []); + tmp_553653769.class = " menu-button "; + add_754975552(tmp_553653769, text_754975684([67,104,97,110,103,101,32,76,111,103])); + addEventHandler_721422102(tmp_553653769, 0, HEX3Aanonymous_553653775, kxi__); + add_754975552(tmp_553653767, tmp_553653769); + add_754975552(tmp_553653766, tmp_553653767); + var tmp_553653770 = tree_754975616(195, []); + tmp_553653770.class = "width-100"; + add_754975552(tmp_553653770, text_754975684([67,114,101,100,105,116,115])); + addEventHandler_721422102(tmp_553653770, 0, HEX3Aanonymous_553653778, kxi__); + add_754975552(tmp_553653766, tmp_553653770); + var tmp_553653771 = tree_754975616(195, []); + tmp_553653771.class = "width-100"; + add_754975552(tmp_553653771, text_754975684([82,101,116,117,114,110,32,84,111,32,76,111,98,98,121])); + addEventHandler_721422102(tmp_553653771, 0, HEX3Aanonymous_553653781, kxi__); + add_754975552(tmp_553653766, tmp_553653771); + result_553653765 = tmp_553653766; + + return result_553653765; + +} + +function createSetting_553653784(setting_553653785, setting_553653785_Idx, title_553653786, description_553653787, defaultOption_553653788) { var Temporary1; var Temporary2; var Temporary3; -function HEX3Aanonymous_553655629(__553655630, __553655631) { - setting_553655618[setting_553655618_Idx] = !(setting_553655618[setting_553655618_Idx]); +function HEX3Aanonymous_553653796(__553653797, __553653798) { + setting_553653785[setting_553653785_Idx] = !(setting_553653785[setting_553653785_Idx]); } - var result_553655622 = null; - - var tmp_553655623 = tree_754975616(44, []); - tmp_553655623.class = "start-column"; - var tmp_553655624 = tree_754975616(44, []); - tmp_553655624.class = " setting-item "; - var tmp_553655625 = tree_754975616(24, []); - add_754975552(tmp_553655625, text_754975684(title_553655619)); - add_754975552(tmp_553655624, tmp_553655625); - var tmp_553655626 = tree_754975616(32, []); - add_754975552(tmp_553655626, text_754975684(description_553655620)); - add_754975552(tmp_553655624, tmp_553655626); - var tmp_553655627 = tree_754975616(195, []); - if (defaultOption_553655621) { - if (!(setting_553655618[setting_553655618_Idx])) { + var result_553653789 = null; + + var tmp_553653790 = tree_754975616(44, []); + tmp_553653790.class = "start-column"; + var tmp_553653791 = tree_754975616(44, []); + tmp_553653791.class = " setting-item "; + var tmp_553653792 = tree_754975616(24, []); + add_754975552(tmp_553653792, text_754975684(title_553653786)); + add_754975552(tmp_553653791, tmp_553653792); + var tmp_553653793 = tree_754975616(32, []); + add_754975552(tmp_553653793, text_754975684(description_553653787)); + add_754975552(tmp_553653791, tmp_553653793); + var tmp_553653794 = tree_754975616(195, []); + if (defaultOption_553653788) { + if (!(setting_553653785[setting_553653785_Idx])) { Temporary2 = [68,105,115,97,98,108,101]; } else { @@ -16732,7 +16743,7 @@ function HEX3Aanonymous_553655629(__553655630, __553655631) { Temporary1 = Temporary2; } else { - if (setting_553655618[setting_553655618_Idx]) { + if (setting_553653785[setting_553653785_Idx]) { Temporary3 = [68,105,115,97,98,108,101]; } else { @@ -16742,95 +16753,95 @@ function HEX3Aanonymous_553655629(__553655630, __553655631) { Temporary1 = Temporary3; } - add_754975552(tmp_553655627, text_754975684(Temporary1)); - addEventHandler_721422102(tmp_553655627, 0, HEX3Aanonymous_553655629, kxi__); - add_754975552(tmp_553655624, tmp_553655627); - add_754975552(tmp_553655623, tmp_553655624); - var tmp_553655628 = tree_754975616(33, []); - add_754975552(tmp_553655623, tmp_553655628); - result_553655622 = tmp_553655623; + add_754975552(tmp_553653794, text_754975684(Temporary1)); + addEventHandler_721422102(tmp_553653794, 0, HEX3Aanonymous_553653796, kxi__); + add_754975552(tmp_553653791, tmp_553653794); + add_754975552(tmp_553653790, tmp_553653791); + var tmp_553653795 = tree_754975616(33, []); + add_754975552(tmp_553653790, tmp_553653795); + result_553653789 = tmp_553653790; - return result_553655622; + return result_553653789; } -function createSettings_553655632() { +function createSettings_553653799() { -function HEX3Aanonymous_553655636(__553655637, __553655638) { +function HEX3Aanonymous_553653803(__553653804, __553653805) { currentScreen_553648287[0] = 10; } - var result_553655633 = null; + var result_553653800 = null; - var tmp_553655634 = tree_754975616(44, []); - tmp_553655634.class = "start-column gap-10"; - add_754975552(tmp_553655634, createSetting_553655617(showTechnicalNames_553648283, 0, [84,101,99,104,110,105,99,97,108,32,78,97,109,101,115], makeNimstrLit("Shows the technical names for synergy powers and powers with multiple variations."), false)); - add_754975552(tmp_553655634, createSetting_553655617(disableRNGPowers_553648284, 0, [68,105,115,97,98,108,101,32,82,78,71,32,80,111,119,101,114,115], makeNimstrLit("Removes RNG based powers, like civilians, from the draft pool. Only works when you are the host."), true)); - add_754975552(tmp_553655634, createSetting_553655617(enableExperimental_553648286, 0, [73,110,99,108,117,100,101,32,69,120,112,101,114,105,109,101,110,116,97,108,32,80,111,119,101,114,115], makeNimstrLit("Adds the cutting edge of SuperChess. It is likely to break or be unbalanced."), false)); - var tmp_553655635 = tree_754975616(195, []); - tmp_553655635.class = "width-100"; - add_754975552(tmp_553655635, text_754975684([82,101,116,117,114,110,32,116,111,32,79,116,104,101,114])); - addEventHandler_721422102(tmp_553655635, 0, HEX3Aanonymous_553655636, kxi__); - add_754975552(tmp_553655634, tmp_553655635); - result_553655633 = tmp_553655634; + var tmp_553653801 = tree_754975616(44, []); + tmp_553653801.class = "start-column gap-10"; + add_754975552(tmp_553653801, createSetting_553653784(showTechnicalNames_553648283, 0, [84,101,99,104,110,105,99,97,108,32,78,97,109,101,115], makeNimstrLit("Shows the technical names for synergy powers and powers with multiple variations."), false)); + add_754975552(tmp_553653801, createSetting_553653784(disableRNGPowers_553648284, 0, [68,105,115,97,98,108,101,32,82,78,71,32,80,111,119,101,114,115], makeNimstrLit("Removes RNG based powers, like civilians, from the draft pool. Only works when you are the host."), true)); + add_754975552(tmp_553653801, createSetting_553653784(enableExperimental_553648286, 0, [73,110,99,108,117,100,101,32,69,120,112,101,114,105,109,101,110,116,97,108,32,80,111,119,101,114,115], makeNimstrLit("Adds the cutting edge of SuperChess. It is likely to break or be unbalanced."), false)); + var tmp_553653802 = tree_754975616(195, []); + tmp_553653802.class = "width-100"; + add_754975552(tmp_553653802, text_754975684([82,101,116,117,114,110,32,116,111,32,79,116,104,101,114])); + addEventHandler_721422102(tmp_553653802, 0, HEX3Aanonymous_553653803, kxi__); + add_754975552(tmp_553653801, tmp_553653802); + result_553653800 = tmp_553653801; - return result_553655633; + return result_553653800; } -function newSeq_553656098(len_553656100) { - var result_553656101 = []; +function newSeq_553654265(len_553654267) { + var result_553654268 = []; - result_553656101 = new Array(len_553656100); for (var i = 0 ; i < len_553656100 ; ++i) { result_553656101[i] = []; } - return result_553656101; + result_553654268 = new Array(len_553654267); for (var i = 0 ; i < len_553654267 ; ++i) { result_553654268[i] = []; } + return result_553654268; } -function mergeAlt_553656147(a_553656149, b_553656150, lo_553656151, m_553656152, hi_553656153, cmp_553656156, order_553656157) { +function mergeAlt_553654314(a_553654316, b_553654317, lo_553654318, m_553654319, hi_553654320, cmp_553654323, order_553654324) { BeforeRet: { - if ((HEX2A_1073741832(cmp_553656156(a_553656149[chckIndx(m_553656152, 0, (a_553656149).length - 1)], a_553656149[chckIndx(addInt(m_553656152, 1), 0, (a_553656149).length - 1)]), order_553656157) <= 0)) { + if ((HEX2A_1073741832(cmp_553654323(a_553654316[chckIndx(m_553654319, 0, (a_553654316).length - 1)], a_553654316[chckIndx(addInt(m_553654319, 1), 0, (a_553654316).length - 1)]), order_553654324) <= 0)) { break BeforeRet; } - var j_553656158 = lo_553656151; - if (!((j_553656158 <= m_553656152))) { + var j_553654325 = lo_553654318; + if (!((j_553654325 <= m_553654319))) { failedAssertImpl_268435541([97,108,103,111,114,105,116,104,109,46,110,105,109,40,51,51,56,44,32,51,41,32,96,106,32,60,61,32,109,96,32]); } - var bb_553656164 = 0; + var bb_553654331 = 0; Label1: { Label2: while (true) { - if (!(j_553656158 <= m_553656152)) break Label2; - b_553656150[chckIndx(bb_553656164, 0, (b_553656150).length - 1)] = a_553656149[chckIndx(j_553656158, 0, (a_553656149).length - 1)]; - bb_553656164 = addInt(bb_553656164, 1); - j_553656158 = addInt(j_553656158, 1); + if (!(j_553654325 <= m_553654319)) break Label2; + b_553654317[chckIndx(bb_553654331, 0, (b_553654317).length - 1)] = a_553654316[chckIndx(j_553654325, 0, (a_553654316).length - 1)]; + bb_553654331 = addInt(bb_553654331, 1); + j_553654325 = addInt(j_553654325, 1); } }; - var i_553656175 = 0; - var k_553656176 = lo_553656151; + var i_553654342 = 0; + var k_553654343 = lo_553654318; Label3: { Label4: while (true) { - if (!((k_553656176 < j_553656158) && (j_553656158 <= hi_553656153))) break Label4; - if ((HEX2A_1073741832(cmp_553656156(b_553656150[chckIndx(i_553656175, 0, (b_553656150).length - 1)], a_553656149[chckIndx(j_553656158, 0, (a_553656149).length - 1)]), order_553656157) <= 0)) { - a_553656149[chckIndx(k_553656176, 0, (a_553656149).length - 1)] = b_553656150[chckIndx(i_553656175, 0, (b_553656150).length - 1)]; - i_553656175 = addInt(i_553656175, 1); + if (!((k_553654343 < j_553654325) && (j_553654325 <= hi_553654320))) break Label4; + if ((HEX2A_1073741832(cmp_553654323(b_553654317[chckIndx(i_553654342, 0, (b_553654317).length - 1)], a_553654316[chckIndx(j_553654325, 0, (a_553654316).length - 1)]), order_553654324) <= 0)) { + a_553654316[chckIndx(k_553654343, 0, (a_553654316).length - 1)] = b_553654317[chckIndx(i_553654342, 0, (b_553654317).length - 1)]; + i_553654342 = addInt(i_553654342, 1); } else { - a_553656149[chckIndx(k_553656176, 0, (a_553656149).length - 1)] = a_553656149[chckIndx(j_553656158, 0, (a_553656149).length - 1)]; - j_553656158 = addInt(j_553656158, 1); + a_553654316[chckIndx(k_553654343, 0, (a_553654316).length - 1)] = a_553654316[chckIndx(j_553654325, 0, (a_553654316).length - 1)]; + j_553654325 = addInt(j_553654325, 1); } - k_553656176 = addInt(k_553656176, 1); + k_553654343 = addInt(k_553654343, 1); } }; Label5: { Label6: while (true) { - if (!(k_553656176 < j_553656158)) break Label6; - a_553656149[chckIndx(k_553656176, 0, (a_553656149).length - 1)] = b_553656150[chckIndx(i_553656175, 0, (b_553656150).length - 1)]; - k_553656176 = addInt(k_553656176, 1); - i_553656175 = addInt(i_553656175, 1); + if (!(k_553654343 < j_553654325)) break Label6; + a_553654316[chckIndx(k_553654343, 0, (a_553654316).length - 1)] = b_553654317[chckIndx(i_553654342, 0, (b_553654317).length - 1)]; + k_553654343 = addInt(k_553654343, 1); + i_553654342 = addInt(i_553654342, 1); } }; }; @@ -16838,49 +16849,49 @@ function mergeAlt_553656147(a_553656149, b_553656150, lo_553656151, m_553656152, } -function sort_553656130(a_553656132, cmp_553656135, order_553656136) { - var n_553656140 = (a_553656132).length; - var b_553656144 = newSeq_553656098(chckRange(divInt(n_553656140, 2), 0, 2147483647)); - var s_553656145 = 1; +function sort_553654297(a_553654299, cmp_553654302, order_553654303) { + var n_553654307 = (a_553654299).length; + var b_553654311 = newSeq_553654265(chckRange(divInt(n_553654307, 2), 0, 2147483647)); + var s_553654312 = 1; Label1: { Label2: while (true) { - if (!(s_553656145 < n_553656140)) break Label2; - var m_553656146 = subInt(subInt(n_553656140, 1), s_553656145); + if (!(s_553654312 < n_553654307)) break Label2; + var m_553654313 = subInt(subInt(n_553654307, 1), s_553654312); Label3: { Label4: while (true) { - if (!(0 <= m_553656146)) break Label4; - mergeAlt_553656147(a_553656132, b_553656144, nimMax(addInt(subInt(m_553656146, s_553656145), 1), 0), m_553656146, addInt(m_553656146, s_553656145), cmp_553656135, order_553656136); - m_553656146 = subInt(m_553656146, mulInt(s_553656145, 2)); + if (!(0 <= m_553654313)) break Label4; + mergeAlt_553654314(a_553654299, b_553654311, nimMax(addInt(subInt(m_553654313, s_553654312), 1), 0), m_553654313, addInt(m_553654313, s_553654312), cmp_553654302, order_553654303); + m_553654313 = subInt(m_553654313, mulInt(s_553654312, 2)); } }; - s_553656145 = mulInt(s_553656145, 2); + s_553654312 = mulInt(s_553654312, 2); } }; } -function sorted_553656087(a_553656089, cmp_553656092, order_553656093) { - var result_553656094 = []; +function sorted_553654254(a_553654256, cmp_553654259, order_553654260) { + var result_553654261 = []; - result_553656094 = nimCopy(null, newSeq_553656098(chckRange((a_553656089).length, 0, 2147483647)), NTI553654185); + result_553654261 = nimCopy(null, newSeq_553654265(chckRange((a_553654256).length, 0, 2147483647)), NTI553652986); Label1: { - var i_553656129 = 0; - var colontmp__553657247 = 0; - colontmp__553657247 = (a_553656089).length - 1; - var res_553657248 = 0; + var i_553654296 = 0; + var colontmp__553655393 = 0; + colontmp__553655393 = (a_553654256).length - 1; + var res_553655394 = 0; Label2: { Label3: while (true) { - if (!(res_553657248 <= colontmp__553657247)) break Label3; - i_553656129 = res_553657248; - result_553656094[chckIndx(i_553656129, 0, (result_553656094).length - 1)] = nimCopy(null, a_553656089[chckIndx(i_553656129, 0, (a_553656089).length - 1)], NTI1728054356); - res_553657248 = addInt(res_553657248, 1); + if (!(res_553655394 <= colontmp__553655393)) break Label3; + i_553654296 = res_553655394; + result_553654261[chckIndx(i_553654296, 0, (result_553654261).length - 1)] = nimCopy(null, a_553654256[chckIndx(i_553654296, 0, (a_553654256).length - 1)], NTI1728054356); + res_553655394 = addInt(res_553655394, 1); } }; }; - sort_553656130(result_553656094, cmp_553656092, order_553656093); + sort_553654297(result_553654261, cmp_553654259, order_553654260); - return result_553656094; + return result_553654261; } @@ -17673,15 +17684,15 @@ function editDistance_1962934274(a_1962934275, b_1962934276) { row_1962936065 = new Array(chckRange(len2_1962936064, 0, 2147483647)); for (var i = 0 ; i < chckRange(len2_1962936064, 0, 2147483647) ; ++i) { row_1962936065[i] = 0; } var e_1962936071 = subInt(addInt(iStart_1962934278, len2_1962936064), 1); Label14: { var i_1962936076 = 0; - var colontmp__553657261 = 0; - colontmp__553657261 = subInt(subInt(len2_1962936064, half_1962936066), 1); - var res_553657262 = 1; + var colontmp__553655407 = 0; + colontmp__553655407 = subInt(subInt(len2_1962936064, half_1962936066), 1); + var res_553655408 = 1; Label15: { Label16: while (true) { - if (!(res_553657262 <= colontmp__553657261)) break Label16; - i_1962936076 = res_553657262; + if (!(res_553655408 <= colontmp__553655407)) break Label16; + i_1962936076 = res_553655408; row_1962936065[chckIndx(i_1962936076, 0, (row_1962936065).length - 1)] = i_1962936076; - res_553657262 = addInt(res_553657262, 1); + res_553655408 = addInt(res_553655408, 1); } }; }; @@ -17691,13 +17702,13 @@ function editDistance_1962934274(a_1962934275, b_1962934276) { var char2pPrev_1962936078 = 0; Label17: { var i_1962936083 = 0; - var colontmp__553657269 = 0; - colontmp__553657269 = subInt(len1_1962936063, 1); - var res_553657270 = 1; + var colontmp__553655415 = 0; + colontmp__553655415 = subInt(len1_1962936063, 1); + var res_553655416 = 1; Label18: { Label19: while (true) { - if (!(res_553657270 <= colontmp__553657269)) break Label19; - i_1962936083 = res_553657270; + if (!(res_553655416 <= colontmp__553655415)) break Label19; + i_1962936083 = res_553655416; iNextA_1962934279 = iCurrentA_1962934740; if ((a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)] <= 127)) { runeA_1962934281 = chckRange(a_1962934275[chckIndx(iNextA_1962934279, 0, (a_1962934275).length - 1)], (-2147483648), 2147483647); @@ -17851,14 +17862,14 @@ function editDistance_1962934274(a_1962934275, b_1962934276) { char2p_1962936305 = iStart_1962934278; Label20: { var j_1962936535 = 0; - var i_553657266 = 0; + var i_553655412 = 0; Label21: { Label22: while (true) { - if (!(i_553657266 < offset_1962936309)) break Label22; - j_1962936535 = i_553657266; + if (!(i_553655412 < offset_1962936309)) break Label22; + j_1962936535 = i_553655412; runeB_1962934282 = runeAt_1157635100(b_1962934276, chckRange(char2p_1962936305, 0, 2147483647)); char2p_1962936305 = addInt(char2p_1962936305, size_1157633714(runeB_1962934282)); - i_553657266 = addInt(i_553657266, 1); + i_553655412 = addInt(i_553655412, 1); } }; }; @@ -17946,7 +17957,7 @@ function editDistance_1962934274(a_1962934275, b_1962934276) { } iCurrentA_1962934740 = iNextA_1962934279; - res_553657270 = addInt(res_553657270, 1); + res_553655416 = addInt(res_553655416, 1); } }; }; @@ -17963,21 +17974,21 @@ function getSynergyOf_1728054687(index_1728054688) { BeforeRet: { Label1: { var s_1728054701 = {Field0: ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}), Field1: 0, Field2: [], Field3: []}; - var colontmp__553657283 = []; - colontmp__553657283 = HEX26_1728054386(HEX26_1728054386(draftSynergies_1728053322[0], secretSynergies_1728053323[0]), secretSecretSynergies_1728053324[0]); - var i_553657284 = 0; - var L_553657285 = (colontmp__553657283).length; + var colontmp__553655429 = []; + colontmp__553655429 = HEX26_1728054386(HEX26_1728054386(draftSynergies_1728053322[0], secretSynergies_1728053323[0]), secretSecretSynergies_1728053324[0]); + var i_553655430 = 0; + var L_553655431 = (colontmp__553655429).length; Label2: { Label3: while (true) { - if (!(i_553657284 < L_553657285)) break Label3; - s_1728054701 = colontmp__553657283[chckIndx(i_553657284, 0, (colontmp__553657283).length - 1)]; + if (!(i_553655430 < L_553655431)) break Label3; + s_1728054701 = colontmp__553655429[chckIndx(i_553655430, 0, (colontmp__553655429).length - 1)]; if ((s_1728054701.Field0.index == index_1728054688)) { result_1728054689 = nimCopy(result_1728054689, s_1728054701, NTI1728053254); break BeforeRet; } - i_553657284 += 1; - if (!(((colontmp__553657283).length == L_553657285))) { + i_553655430 += 1; + if (!(((colontmp__553655429).length == L_553655431))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -17997,23 +18008,23 @@ function getSynergyOf_1728054687(index_1728054688) { } -function add_553655679(x_553655681, x_553655681_Idx, y_553655682) { +function add_553653846(x_553653848, x_553653848_Idx, y_553653849) { var Temporary1; - var xl_553655686 = (x_553655681[x_553655681_Idx]).length; - if (x_553655681[x_553655681_Idx].length < (Temporary1 = chckRange(addInt(xl_553655686, (y_553655682).length), 0, 2147483647), Temporary1)) { for (var i = x_553655681[x_553655681_Idx].length ; i < Temporary1 ; ++i) x_553655681[x_553655681_Idx].push([]); } - else { x_553655681[x_553655681_Idx].length = Temporary1; }; + var xl_553653853 = (x_553653848[x_553653848_Idx]).length; + if (x_553653848[x_553653848_Idx].length < (Temporary1 = chckRange(addInt(xl_553653853, (y_553653849).length), 0, 2147483647), Temporary1)) { for (var i = x_553653848[x_553653848_Idx].length ; i < Temporary1 ; ++i) x_553653848[x_553653848_Idx].push([]); } + else { x_553653848[x_553653848_Idx].length = Temporary1; }; Label2: { - var i_553655701 = 0; - var colontmp__553657289 = 0; - colontmp__553657289 = (y_553655682).length - 1; - var res_553657290 = 0; + var i_553653868 = 0; + var colontmp__553655435 = 0; + colontmp__553655435 = (y_553653849).length - 1; + var res_553655436 = 0; Label3: { Label4: while (true) { - if (!(res_553657290 <= colontmp__553657289)) break Label4; - i_553655701 = res_553657290; - x_553655681[x_553655681_Idx][chckIndx(addInt(xl_553655686, i_553655701), 0, (x_553655681[x_553655681_Idx]).length - 1)] = nimCopy(null, y_553655682[chckIndx(i_553655701, 0, (y_553655682).length - 1)], NTI33554449); - res_553657290 = addInt(res_553657290, 1); + if (!(res_553655436 <= colontmp__553655435)) break Label4; + i_553653868 = res_553655436; + x_553653848[x_553653848_Idx][chckIndx(addInt(xl_553653853, i_553653868), 0, (x_553653848[x_553653848_Idx]).length - 1)] = nimCopy(null, y_553653849[chckIndx(i_553653868, 0, (y_553653849).length - 1)], NTI33554449); + res_553655436 = addInt(res_553655436, 1); } }; }; @@ -18021,46 +18032,46 @@ function add_553655679(x_553655681, x_553655681_Idx, y_553655682) { } -function getLinkedPowers_553655639(p_553655640, alreadyAdded_553655645) { - var result_553655648 = {Field0: [], Field1: []}; +function getLinkedPowers_553653806(p_553653807, alreadyAdded_553653812) { + var result_553653815 = {Field0: [], Field1: []}; - result_553655648.Field1 = nimCopy(null, alreadyAdded_553655645, NTI553653859); - var Temporary1 = nimCopy(null, p_553655640, NTI1728053253); - result_553655648.Field0.push(Temporary1);; - var Temporary2 = nimCopy(null, p_553655640.name, NTI33554449); - result_553655648.Field1.push(Temporary2);; - if (p_553655640.synergy) { - var synergy_553655657 = getSynergyOf_1728054687(p_553655640.index); + result_553653815.Field1 = nimCopy(null, alreadyAdded_553653812, NTI553652660); + var Temporary1 = nimCopy(null, p_553653807, NTI1728053253); + result_553653815.Field0.push(Temporary1);; + var Temporary2 = nimCopy(null, p_553653807.name, NTI33554449); + result_553653815.Field1.push(Temporary2);; + if (p_553653807.synergy) { + var synergy_553653824 = getSynergyOf_1728054687(p_553653807.index); Label3: { - var name_553655661 = []; - var i_553657279 = 0; - var L_553657280 = (synergy_553655657.Field2).length; + var name_553653828 = []; + var i_553655425 = 0; + var L_553655426 = (synergy_553653824.Field2).length; Label4: { Label5: while (true) { - if (!(i_553657279 < L_553657280)) break Label5; - name_553655661 = synergy_553655657.Field2[chckIndx(i_553657279, 0, (synergy_553655657.Field2).length - 1)]; + if (!(i_553655425 < L_553655426)) break Label5; + name_553653828 = synergy_553653824.Field2[chckIndx(i_553655425, 0, (synergy_553653824.Field2).length - 1)]; Label6: { - if ((contains_1090519090(synergy_553655657.Field3, name_553655661) || contains_1090519090(result_553655648.Field1, name_553655661))) { + if ((contains_1090519090(synergy_553653824.Field3, name_553653828) || contains_1090519090(result_553653815.Field1, name_553653828))) { break Label6; } Label7: { - var reqPower_553655673 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553657276 = 0; - var L_553657277 = (powers_1728053321[0]).length; + var reqPower_553653840 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655422 = 0; + var L_553655423 = (powers_1728053321[0]).length; Label8: { Label9: while (true) { - if (!(i_553657276 < L_553657277)) break Label9; - reqPower_553655673 = powers_1728053321[0][chckIndx(i_553657276, 0, (powers_1728053321[0]).length - 1)]; - if (eqStrings(reqPower_553655673.name, name_553655661)) { - var next_553655674 = getLinkedPowers_553655639(reqPower_553655673, result_553655648.Field1); - add_553652282(result_553655648, "Field0", next_553655674.Field0); - add_553655679(result_553655648, "Field1", next_553655674.Field1); + if (!(i_553655422 < L_553655423)) break Label9; + reqPower_553653840 = powers_1728053321[0][chckIndx(i_553655422, 0, (powers_1728053321[0]).length - 1)]; + if (eqStrings(reqPower_553653840.name, name_553653828)) { + var next_553653841 = getLinkedPowers_553653806(reqPower_553653840, result_553653815.Field1); + add_553651719(result_553653815, "Field0", next_553653841.Field0); + add_553653846(result_553653815, "Field1", next_553653841.Field1); break Label7; } - i_553657276 += 1; - if (!(((powers_1728053321[0]).length == L_553657277))) { + i_553655422 += 1; + if (!(((powers_1728053321[0]).length == L_553655423))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -18068,8 +18079,8 @@ function getLinkedPowers_553655639(p_553655640, alreadyAdded_553655645) { }; }; }; - i_553657279 += 1; - if (!(((synergy_553655657.Field2).length == L_553657280))) { + i_553655425 += 1; + if (!(((synergy_553653824.Field2).length == L_553655426))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -18079,137 +18090,137 @@ function getLinkedPowers_553655639(p_553655640, alreadyAdded_553655645) { } - return result_553655648; + return result_553653815; } -function createSeePowerDescription_553655719(p_553655720) { +function createSeePowerDescription_553653886(p_553653887) { var Temporary1; var Temporary2; - p_553655720 = nimCopy(null, p_553655720, NTI1728053253); + p_553653887 = nimCopy(null, p_553653887, NTI1728053253); -function HEX3Aanonymous_553655754(__553655755, __553655756) { +function HEX3Aanonymous_553653921(__553653922, __553653923) { initGame_553648369(); side_553648239[0] = 0; turn_553648240[0] = true; practiceMode_553648282[0] = true; theState_553648258[0].Field0.randSeed = 0; - myDrafts_553648245[0] = nimCopy(null, getLinkedPowers_553655639(p_553655720, []).Field0, NTI553653869); + myDrafts_553648245[0] = nimCopy(null, getLinkedPowers_553653806(p_553653887, []).Field0, NTI553652670); execute_1728054367(myDrafts_553648245[0], opponentDrafts_553648250[0], side_553648239[0], theBoard_553648257[0], theState_553648258[0]); currentScreen_553648287[0] = 3; } - var result_553655721 = null; + var result_553653888 = null; - if (p_553655720.noColor) { - Temporary1 = p_553655720.icon; + if (p_553653887.noColor) { + Temporary1 = p_553653887.icon; } else { - Temporary1 = ([98,108,97,99,107] || []).concat(p_553655720.icon || []); + Temporary1 = ([98,108,97,99,107] || []).concat(p_553653887.icon || []); } - var src_553655725 = nimCopy(null, Temporary1, NTI33554449); - var record_553655728 = {Field0: 0, Field1: 0}; - if ((0 < record_553655728.Field0)) { + var src_553653892 = nimCopy(null, Temporary1, NTI33554449); + var record_553653895 = {Field0: 0, Field1: 0}; + if ((0 < record_553653895.Field0)) { Temporary2 = [115,101,101,45,112,111,119,101,114,32,104,97,115,45,119,111,110]; } else { Temporary2 = [115,101,101,45,112,111,119,101,114]; } - var class_553655729 = nimCopy(null, Temporary2, NTI33554449); - var tmp_553655730 = tree_754975616(44, []); - tmp_553655730.class = toJSStr(class_553655729); - var tmp_553655731 = tree_754975616(24, []); - add_754975552(tmp_553655731, text_754975684(p_553655720.technicalName)); - add_754975552(tmp_553655730, tmp_553655731); - var tmp_553655732 = tree_754975616(32, []); - tmp_553655732.class = "desc"; - add_754975552(tmp_553655732, text_754975684(p_553655720.description)); - add_754975552(tmp_553655730, tmp_553655732); - if (!(eqStrings(p_553655720.icon, []))) { - var tmp_553655733 = tree_754975616(76, []); - setAttr_754975467(tmp_553655733, "src", toJSStr(([46,47,105,99,111,110,115,47] || []).concat(src_553655725 || []))); - add_754975552(tmp_553655730, tmp_553655733); + var class_553653896 = nimCopy(null, Temporary2, NTI33554449); + var tmp_553653897 = tree_754975616(44, []); + tmp_553653897.class = toJSStr(class_553653896); + var tmp_553653898 = tree_754975616(24, []); + add_754975552(tmp_553653898, text_754975684(p_553653887.technicalName)); + add_754975552(tmp_553653897, tmp_553653898); + var tmp_553653899 = tree_754975616(32, []); + tmp_553653899.class = "desc"; + add_754975552(tmp_553653899, text_754975684(p_553653887.description)); + add_754975552(tmp_553653897, tmp_553653899); + if (!(eqStrings(p_553653887.icon, []))) { + var tmp_553653900 = tree_754975616(76, []); + setAttr_754975467(tmp_553653900, "src", toJSStr(([46,47,105,99,111,110,115,47] || []).concat(src_553653892 || []))); + add_754975552(tmp_553653897, tmp_553653900); } else { - var tmp_553655734 = tree_754975616(76, []); - setAttr_754975467(tmp_553655734, "src", "./icons/blackbishop.svg"); - add_754975552(tmp_553655730, tmp_553655734); + var tmp_553653901 = tree_754975616(76, []); + setAttr_754975467(tmp_553653901, "src", "./icons/blackbishop.svg"); + add_754975552(tmp_553653897, tmp_553653901); } - var tmp_553655735 = tree_754975616(32, []); - tmp_553655735.class = "win"; + var tmp_553653902 = tree_754975616(32, []); + tmp_553653902.class = "win"; Label3: { - var fmtRes_553655741 = [mnewString(0)]; - fmtRes_553655741[0].push.apply(fmtRes_553655741[0], [87,105,110,115,58,32]);; - formatValue_553651936(fmtRes_553655741, 0, record_553655728.Field0); - fmtRes_553655741[0].push.apply(fmtRes_553655741[0], [44,32,76,111,115,115,101,115,58,32]);; - formatValue_553651936(fmtRes_553655741, 0, record_553655728.Field1); + var fmtRes_553653908 = [mnewString(0)]; + fmtRes_553653908[0].push.apply(fmtRes_553653908[0], [87,105,110,115,58,32]);; + formatValue_553651408(fmtRes_553653908, 0, record_553653895.Field0); + fmtRes_553653908[0].push.apply(fmtRes_553653908[0], [44,32,76,111,115,115,101,115,58,32]);; + formatValue_553651408(fmtRes_553653908, 0, record_553653895.Field1); }; - add_754975552(tmp_553655735, text_754975684(fmtRes_553655741[0])); - add_754975552(tmp_553655730, tmp_553655735); - var tmp_553655736 = tree_754975616(195, []); - add_754975552(tmp_553655736, text_754975684([80,114,97,99,116,105,99,101])); - addEventHandler_721422102(tmp_553655736, 0, HEX3Aanonymous_553655754, kxi__); - add_754975552(tmp_553655730, tmp_553655736); - result_553655721 = tmp_553655730; + add_754975552(tmp_553653902, text_754975684(fmtRes_553653908[0])); + add_754975552(tmp_553653897, tmp_553653902); + var tmp_553653903 = tree_754975616(195, []); + add_754975552(tmp_553653903, text_754975684([80,114,97,99,116,105,99,101])); + addEventHandler_721422102(tmp_553653903, 0, HEX3Aanonymous_553653921, kxi__); + add_754975552(tmp_553653897, tmp_553653903); + result_553653888 = tmp_553653897; - return result_553655721; + return result_553653888; } -function HEX5BHEX5D_553656331(t_553656334, key_553656335) { - var result_553656336 = null; - var result_553656336_Idx = 0; +function HEX5BHEX5D_553654498(t_553654501, key_553654502) { + var result_553654503 = null; + var result_553654503_Idx = 0; - var hcHEX60gensym22_553656337 = [0]; - var indexHEX60gensym22_553656344 = rawGet_553649544(t_553656334, key_553656335, hcHEX60gensym22_553656337, 0); - if ((0 <= indexHEX60gensym22_553656344)) { - result_553656336 = t_553656334.data[chckIndx(indexHEX60gensym22_553656344, 0, (t_553656334.data).length - 1)]; result_553656336_Idx = "Field2"; + var hcHEX60gensym22_553654504 = [0]; + var indexHEX60gensym22_553654511 = rawGet_553649542(t_553654501, key_553654502, hcHEX60gensym22_553654504, 0); + if ((0 <= indexHEX60gensym22_553654511)) { + result_553654503 = t_553654501.data[chckIndx(indexHEX60gensym22_553654511, 0, (t_553654501.data).length - 1)]; result_553654503_Idx = "Field2"; } else { - raiseKeyError_1593837190(key_553656335); + raiseKeyError_1593837190(key_553654502); } - return [result_553656336, result_553656336_Idx]; + return [result_553654503, result_553654503_Idx]; } -function createSeePowerOnclick_553655757(name_553655758, index_553655759) { - name_553655758 = nimCopy(null, name_553655758, NTI33554449); +function createSeePowerOnclick_553653924(name_553653925, index_553653926) { + name_553653925 = nimCopy(null, name_553653925, NTI33554449); -function HEX3Aanonymous_553655764(__553655765, __553655766) { - HEX5BHEX5DHEX3D_553649487(selectedSubPower_553648348[0], name_553655758, index_553655759); +function HEX3Aanonymous_553653931(__553653932, __553653933) { + HEX5BHEX5DHEX3D_553649485(selectedSubPower_553648348[0], name_553653925, index_553653926); } - var result_553655763 = null; + var result_553653930 = null; - result_553655763 = HEX3Aanonymous_553655764; + result_553653930 = HEX3Aanonymous_553653931; - return result_553655763; + return result_553653930; } -function getPowerTabLength_553655809(powers_553655810) { - var result_553655811 = 0; +function getPowerTabLength_553653976(powers_553653977) { + var result_553653978 = 0; Label1: { - var p_553655815 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553657293 = 0; - var L_553657294 = (powers_553655810).length; + var p_553653982 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655439 = 0; + var L_553655440 = (powers_553653977).length; Label2: { Label3: while (true) { - if (!(i_553657293 < L_553657294)) break Label3; - p_553655815 = powers_553655810[chckIndx(i_553657293, 0, (powers_553655810).length - 1)]; - result_553655811 = addInt(result_553655811, mulInt((p_553655815.technicalName).length, 15)); - i_553657293 += 1; - if (!(((powers_553655810).length == L_553657294))) { + if (!(i_553655439 < L_553655440)) break Label3; + p_553653982 = powers_553653977[chckIndx(i_553655439, 0, (powers_553653977).length - 1)]; + result_553653978 = addInt(result_553653978, mulInt((p_553653982.technicalName).length, 15)); + i_553655439 += 1; + if (!(((powers_553653977).length == L_553655440))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } @@ -18217,29 +18228,29 @@ function getPowerTabLength_553655809(powers_553655810) { }; }; - return result_553655811; + return result_553653978; } -function createSeePower_553655820() { +function createSeePower_553653987() { -function HEX3Aanonymous_553655830(__553655831, __553655832) { +function HEX3Aanonymous_553653997(__553653998, __553653999) { currentScreen_553648287[0] = 0; } var Temporary1; -function HEX3Aanonymous_553656054(xHEX60gensym320_553656077, yHEX60gensym320_553656078) { - var result_553656079 = 0; +function HEX3Aanonymous_553654221(xHEX60gensym205_553654244, yHEX60gensym205_553654245) { + var result_553654246 = 0; - var it_553656080 = nimCopy(null, xHEX60gensym320_553656077, NTI1728054356); - var aHEX60gensym320_553656081 = editDistance_1962934274(it_553656080[chckIndx(0, 0, (it_553656080).length - 1)].name, cstrToNimstr(search_553655833)); - it_553656080 = nimCopy(null, yHEX60gensym320_553656078, NTI1728054356); - var bHEX60gensym320_553656082 = editDistance_1962934274(it_553656080[chckIndx(0, 0, (it_553656080).length - 1)].name, cstrToNimstr(search_553655833)); - result_553656079 = cmp_33557985(aHEX60gensym320_553656081, bHEX60gensym320_553656082); + var it_553654247 = nimCopy(null, xHEX60gensym205_553654244, NTI1728054356); + var aHEX60gensym205_553654248 = editDistance_1962934274(it_553654247[chckIndx(0, 0, (it_553654247).length - 1)].name, cstrToNimstr(search_553654000)); + it_553654247 = nimCopy(null, yHEX60gensym205_553654245, NTI1728054356); + var bHEX60gensym205_553654249 = editDistance_1962934274(it_553654247[chckIndx(0, 0, (it_553654247).length - 1)].name, cstrToNimstr(search_553654000)); + result_553654246 = cmp_33557985(aHEX60gensym205_553654248, bHEX60gensym205_553654249); - return result_553656079; + return result_553654246; } var Temporary14; @@ -18247,27 +18258,27 @@ function HEX3Aanonymous_553656054(xHEX60gensym320_553656077, yHEX60gensym320_553 var Temporary16; var Temporary17; - var result_553655821 = null; + var result_553653988 = null; rawEcho([99,114,101,97,116,105,110,103,32,83,101,101,32,80,111,119,101,114]); - var tmp_553655822 = tree_754975616(44, []); - tmp_553655822.class = "tab-column"; - var tmp_553655823 = tree_754975616(195, []); - tmp_553655823.class = "top-button"; - add_754975552(tmp_553655823, text_754975684([82,101,116,117,114,110,32,116,111,32,76,111,98,98,121])); - addEventHandler_721422102(tmp_553655823, 0, HEX3Aanonymous_553655830, kxi__); - add_754975552(tmp_553655822, tmp_553655823); - var tmp_553655824 = tree_754975616(44, []); - tmp_553655824.class = "search move-up"; - var tmp_553655825 = tree_754975616(193, []); - setAttr_754975467(tmp_553655825, "for", "search"); - add_754975552(tmp_553655825, text_754975684([83,101,97,114,99,104,58,32])); - add_754975552(tmp_553655824, tmp_553655825); - var tmp_553655826 = tree_754975616(194, []); - tmp_553655826.id = "search"; - addEventHandler_721422110(tmp_553655826, 8, validateNotEmpty_553652462("search"), kxi__); - add_754975552(tmp_553655824, tmp_553655826); - add_754975552(tmp_553655822, tmp_553655824); + var tmp_553653989 = tree_754975616(44, []); + tmp_553653989.class = "tab-column"; + var tmp_553653990 = tree_754975616(195, []); + tmp_553653990.class = "top-button"; + add_754975552(tmp_553653990, text_754975684([82,101,116,117,114,110,32,116,111,32,76,111,98,98,121])); + addEventHandler_721422102(tmp_553653990, 0, HEX3Aanonymous_553653997, kxi__); + add_754975552(tmp_553653989, tmp_553653990); + var tmp_553653991 = tree_754975616(44, []); + tmp_553653991.class = "search move-up"; + var tmp_553653992 = tree_754975616(193, []); + setAttr_754975467(tmp_553653992, "for", "search"); + add_754975552(tmp_553653992, text_754975684([83,101,97,114,99,104,58,32])); + add_754975552(tmp_553653991, tmp_553653992); + var tmp_553653993 = tree_754975616(194, []); + tmp_553653993.id = "search"; + addEventHandler_721422110(tmp_553653993, 8, validateNotEmpty_553651899("search"), kxi__); + add_754975552(tmp_553653991, tmp_553653993); + add_754975552(tmp_553653989, tmp_553653991); ++excHandler; try { Temporary1 = getInputText_721422193(getVNodeById_721420594("search", kxi__)); @@ -18280,160 +18291,160 @@ function HEX3Aanonymous_553656054(xHEX60gensym320_553656077, yHEX60gensym320_553 lastJSError = prevJSError; } finally { } - var search_553655833 = Temporary1; + var search_553654000 = Temporary1; Label3: { - var subpowers_553656226 = []; - var colontmp__553657241 = []; - var resultHEX60gensym319_553656043 = []; + var subpowers_553654393 = []; + var colontmp__553655387 = []; + var resultHEX60gensym204_553654210 = []; Label4: { - var xHEX60gensym319_553656044 = []; - var L_553657235 = len_553649289(allPowers_553648349[0]); + var xHEX60gensym204_553654211 = []; + var L_553655381 = len_553649287(allPowers_553648349[0]); Label5: { - var h_553657237 = 0; - var colontmp__553657238 = 0; - colontmp__553657238 = (allPowers_553648349[0].data).length - 1; - var res_553657239 = 0; + var h_553655383 = 0; + var colontmp__553655384 = 0; + colontmp__553655384 = (allPowers_553648349[0].data).length - 1; + var res_553655385 = 0; Label6: { Label7: while (true) { - if (!(res_553657239 <= colontmp__553657238)) break Label7; - h_553657237 = res_553657239; - if (isFilled_1291845663(allPowers_553648349[0].data[chckIndx(h_553657237, 0, (allPowers_553648349[0].data).length - 1)].Field0)) { - xHEX60gensym319_553656044 = allPowers_553648349[0].data[chckIndx(h_553657237, 0, (allPowers_553648349[0].data).length - 1)]["Field2"]; - var Temporary8 = nimCopy(null, xHEX60gensym319_553656044, NTI1728054356); - resultHEX60gensym319_553656043.push(Temporary8);; - if (!((len_553649289(allPowers_553648349[0]) == L_553657235))) { + if (!(res_553655385 <= colontmp__553655384)) break Label7; + h_553655383 = res_553655385; + if (isFilled_1291845663(allPowers_553648349[0].data[chckIndx(h_553655383, 0, (allPowers_553648349[0].data).length - 1)].Field0)) { + xHEX60gensym204_553654211 = allPowers_553648349[0].data[chckIndx(h_553655383, 0, (allPowers_553648349[0].data).length - 1)]["Field2"]; + var Temporary8 = nimCopy(null, xHEX60gensym204_553654211, NTI1728054356); + resultHEX60gensym204_553654210.push(Temporary8);; + if (!((len_553649287(allPowers_553648349[0]) == L_553655381))) { failedAssertImpl_268435541(makeNimstrLit("tables.nim(763, 13) `len(t) == L` the length of the table changed while iterating over it")); } } - res_553657239 = addInt(res_553657239, 1); + res_553655385 = addInt(res_553655385, 1); } }; }; }; - var resultHEX60gensym320_553656222 = sorted_553656087(resultHEX60gensym319_553656043, HEX3Aanonymous_553656054, 1); - colontmp__553657241 = resultHEX60gensym320_553656222; - var i_553657243 = 0; - var L_553657244 = (colontmp__553657241).length; + var resultHEX60gensym205_553654389 = sorted_553654254(resultHEX60gensym204_553654210, HEX3Aanonymous_553654221, 1); + colontmp__553655387 = resultHEX60gensym205_553654389; + var i_553655389 = 0; + var L_553655390 = (colontmp__553655387).length; Label9: { Label10: while (true) { - if (!(i_553657243 < L_553657244)) break Label10; - subpowers_553656226 = colontmp__553657241[chckIndx(i_553657243, 0, (colontmp__553657241).length - 1)]; - if (((subpowers_553656226).length == 1)) { - add_754975552(tmp_553655822, createSeePowerDescription_553655719(subpowers_553656226[chckIndx(0, 0, (subpowers_553656226).length - 1)])); + if (!(i_553655389 < L_553655390)) break Label10; + subpowers_553654393 = colontmp__553655387[chckIndx(i_553655389, 0, (colontmp__553655387).length - 1)]; + if (((subpowers_553654393).length == 1)) { + add_754975552(tmp_553653989, createSeePowerDescription_553653886(subpowers_553654393[chckIndx(0, 0, (subpowers_553654393).length - 1)])); } else { - var tmp_553655827 = tree_754975616(44, []); - tmp_553655827.class = "tab-row margin-t-20"; + var tmp_553653994 = tree_754975616(44, []); + tmp_553653994.class = "tab-row margin-t-20"; Label11: { - var index_553656280 = 0; - var power_553656281 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); - var i_553657227 = 0; - var L_553657228 = (subpowers_553656226).length; + var index_553654447 = 0; + var power_553654448 = ({name: [], technicalName: [], synergy: false, tier: 0, rarity: 0, description: [], icon: [], rotatable: false, noColor: false, onStart: null, index: 0, priority: 0}); + var i_553655373 = 0; + var L_553655374 = (subpowers_553654393).length; Label12: { Label13: while (true) { - if (!(i_553657227 < L_553657228)) break Label13; - index_553656280 = i_553657227; - power_553656281 = nimCopy(power_553656281, subpowers_553656226[chckIndx(i_553657227, 0, (subpowers_553656226).length - 1)], NTI1728053253); - if ((index_553656280 == (Temporary15 = HEX5BHEX5D_553656331(selectedSubPower_553648348[0], subpowers_553656226[chckIndx(0, 0, (subpowers_553656226).length - 1)].name), Temporary15)[0][Temporary15[1]])) { + if (!(i_553655373 < L_553655374)) break Label13; + index_553654447 = i_553655373; + power_553654448 = nimCopy(power_553654448, subpowers_553654393[chckIndx(i_553655373, 0, (subpowers_553654393).length - 1)], NTI1728053253); + if ((index_553654447 == (Temporary15 = HEX5BHEX5D_553654498(selectedSubPower_553648348[0], subpowers_553654393[chckIndx(0, 0, (subpowers_553654393).length - 1)].name), Temporary15)[0][Temporary15[1]])) { Temporary14 = [115,101,108,101,99,116,101,100,45,116,97,98,32,102,111,110,116,45,50,48]; } else { Temporary14 = [102,111,110,116,45,50,48]; } - var class_553656413 = nimCopy(null, Temporary14, NTI33554449); - var tmp_553655828 = tree_754975616(195, []); - tmp_553655828.class = toJSStr(class_553656413); - addEventHandler_721422102(tmp_553655828, 0, createSeePowerOnclick_553655757(power_553656281.name, index_553656280), kxi__); - if ((screenWidth_553648290[0] < getPowerTabLength_553655809(subpowers_553656226))) { - Temporary16 = HEX24_385875976(addInt(index_553656280, 1)); + var class_553654580 = nimCopy(null, Temporary14, NTI33554449); + var tmp_553653995 = tree_754975616(195, []); + tmp_553653995.class = toJSStr(class_553654580); + addEventHandler_721422102(tmp_553653995, 0, createSeePowerOnclick_553653924(power_553654448.name, index_553654447), kxi__); + if ((screenWidth_553648290[0] < getPowerTabLength_553653976(subpowers_553654393))) { + Temporary16 = HEX24_385875976(addInt(index_553654447, 1)); } else { - Temporary16 = power_553656281.technicalName; + Temporary16 = power_553654448.technicalName; } - add_754975552(tmp_553655828, text_754975684(Temporary16)); - add_754975552(tmp_553655827, tmp_553655828); - i_553657227 += 1; - if (!(((subpowers_553656226).length == L_553657228))) { + add_754975552(tmp_553653995, text_754975684(Temporary16)); + add_754975552(tmp_553653994, tmp_553653995); + i_553655373 += 1; + if (!(((subpowers_553654393).length == L_553655374))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(187, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - add_754975552(tmp_553655822, tmp_553655827); - add_754975552(tmp_553655822, createSeePowerDescription_553655719(subpowers_553656226[chckIndx((Temporary17 = HEX5BHEX5D_553656331(selectedSubPower_553648348[0], subpowers_553656226[chckIndx(0, 0, (subpowers_553656226).length - 1)].name), Temporary17)[0][Temporary17[1]], 0, (subpowers_553656226).length - 1)])); + add_754975552(tmp_553653989, tmp_553653994); + add_754975552(tmp_553653989, createSeePowerDescription_553653886(subpowers_553654393[chckIndx((Temporary17 = HEX5BHEX5D_553654498(selectedSubPower_553648348[0], subpowers_553654393[chckIndx(0, 0, (subpowers_553654393).length - 1)].name), Temporary17)[0][Temporary17[1]], 0, (subpowers_553654393).length - 1)])); } - var tmp_553655829 = tree_754975616(33, []); - add_754975552(tmp_553655822, tmp_553655829); - i_553657243 += 1; - if (!(((colontmp__553657241).length == L_553657244))) { + var tmp_553653996 = tree_754975616(33, []); + add_754975552(tmp_553653989, tmp_553653996); + i_553655389 += 1; + if (!(((colontmp__553655387).length == L_553655390))) { failedAssertImpl_268435541(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - result_553655821 = tmp_553655822; + result_553653988 = tmp_553653989; - return result_553655821; + return result_553653988; } -function main_553656468() { - var result_553656469 = null; +function main_553654635() { + var result_553654636 = null; - var tmp_553656470 = tree_754975616(44, []); - tmp_553656470.class = "main scroll"; + var tmp_553654637 = tree_754975616(44, []); + tmp_553654637.class = "main scroll"; switch (currentScreen_553648287[0]) { case 0: - add_754975552(tmp_553656470, createLobby_553652648()); + add_754975552(tmp_553654637, createLobby_553652085()); break; case 1: - add_754975552(tmp_553656470, createRoomMenu_553652737()); + add_754975552(tmp_553654637, createRoomMenu_553652174()); break; case 2: - add_754975552(tmp_553656470, createJoinMenu_553652767()); + add_754975552(tmp_553654637, createJoinMenu_553652204()); break; case 4: - add_754975552(tmp_553656470, createOptionsMenu_553652773()); + add_754975552(tmp_553654637, createOptionsMenu_553652210()); break; case 5: - add_754975552(tmp_553656470, createDraftMenu_553652936()); + add_754975552(tmp_553654637, createDraftMenu_553652373()); break; case 3: - add_754975552(tmp_553656470, createGame_553653963()); + add_754975552(tmp_553654637, createGame_553653400()); break; case 6: - add_754975552(tmp_553656470, createResults_553655550()); + add_754975552(tmp_553654637, createResults_553653717()); break; case 7: - add_754975552(tmp_553656470, createRematch_553655581()); + add_754975552(tmp_553654637, createRematch_553653748()); break; case 8: - add_754975552(tmp_553656470, createDisconnect_553655590()); + add_754975552(tmp_553654637, createDisconnect_553653757()); break; case 10: - add_754975552(tmp_553656470, createOther_553655597()); + add_754975552(tmp_553654637, createOther_553653764()); break; case 9: - add_754975552(tmp_553656470, createSettings_553655632()); + add_754975552(tmp_553654637, createSettings_553653799()); break; case 11: - add_754975552(tmp_553656470, createSeePower_553655820()); + add_754975552(tmp_553654637, createSeePower_553653987()); break; case 12: - var tmp_553656471 = tree_754975616(44, []); - add_754975552(tmp_553656470, tmp_553656471); + var tmp_553654638 = tree_754975616(44, []); + add_754975552(tmp_553654637, tmp_553654638); break; } - result_553656469 = tmp_553656470; + result_553654636 = tmp_553654637; - return result_553656469; + return result_553654636; } var roomId_553648232 = [nimCopy(null, {Field0: false, Field1: "Waiting..."}, NTI553648169)]; @@ -18449,7 +18460,7 @@ var draftsLeft_553648254 = [0]; var draftTier_553648255 = [0]; var rematch_553648256 = [false]; var theBoard_553648257 = [[[({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})]]]; -var theState_553648258 = [{Field0: ({nextIndex: 0, nextGroup: 0, randSeed: 0, turnNumber: 0}), Field1: [({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]}), ({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]})]}]; +var theState_553648258 = [{Field0: ({nextIndex: 0, nextGroup: 0, randSeed: 0, turnNumber: 0}), Field1: [({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]}), ({abilityTakes: 0, hasCastled: false, dna: [({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []}), ({item: 0, color: 0, index: 0, timesMoved: 0, piecesTaken: 0, tile: {Field0: 0, Field1: 0}, moves: [], takes: [], onMove: null, onTake: null, whenTaken: null, onEndTurn: [], onPromote: [], promoted: false, filePath: [], colorable: false, rotate: false, drunk: false, casts: []})], transforms: [[], [], [], [], [], [], [], []], wallet: ({val: 0, has: false}), buys: [], piecesSold: 0, piecesSoldThisTurn: 0, glass: [({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false}), ({val: {Field0: 0, Field1: null, Field2: null}, has: false})]})]}]; var selectedTile_553648261 = [nimCopy(null, {Field0: (-1), Field1: (-1)}, NTI1476395011)]; var possibleMoves_553648266 = [[]]; var possibleTakes_553648271 = [[]]; @@ -18491,11 +18502,11 @@ case 3: break; case 5: gameMode_553648289[0] = 2; - draft_553652266([], []); + draft_553651703([], []); break; default: break; } } -setRenderer_721422053(main_553656468, "ROOT", null); +setRenderer_721422053(main_553654635, "ROOT", null); diff --git a/src/names.nim b/src/names.nim deleted file mode 100644 index 22d8a23..0000000 --- a/src/names.nim +++ /dev/null @@ -1,10 +0,0 @@ -from random import randomize, sample -from sequtils import filterIt - -const pawnPool = ["Joe", "John"] - -proc generateName*(pool: openArray[string], seed: int, - excluding: openArray[string] = @[]): string = - randomize(seed) - let cutPool: seq[string] = pool.filterIt(it notin excluding) - return cutPool.sample() \ No newline at end of file diff --git a/src/piece.nim b/src/piece.nim index 01ebf46..0a3b97b 100644 --- a/src/piece.nim +++ b/src/piece.nim @@ -110,6 +110,7 @@ type wallet*: Option[int] = none(int) buys*: seq[BuyOption] = @[] piecesSold*: int = 0 #Just for Capitalism Sell + piecesSoldThisTurn*: int = 0 glass*: Glasses = arrayWith(none(GlassAbility), GlassType.high.ord.succ) #high.ord.succ finds length of enum. I could do high.ord + 1 but .succ looks cooler diff --git a/src/powers.nim b/src/powers.nim index a8ff0a0..13a2d44 100644 --- a/src/powers.nim +++ b/src/powers.nim @@ -1737,23 +1737,21 @@ const capitalismThree2: Synergy = createCapitalism(upgrade2) const sellPiece: OnPiece = proc (piece: var Piece, b: var ChessBoard, state: var BoardState) = - b[piece.tile.rank][piece.tile.file] = air.pieceCopy(index = b[piece.tile.rank][piece.tile.file].index, tile = piece.tile) inc state.side[piece.color].piecesSold + inc state.side[piece.color].piecesSoldThisTurn + echo state.side[piece.color] + b[piece.tile.rank][piece.tile.file] = air.pieceCopy(index = b[piece.tile.rank][piece.tile.file].index, tile = piece.tile) + +const updatePiecesSold: OnPiece = proc (piece: var Piece, b: var ChessBoard, state: var BoardState) = + state.side[white].piecesSoldThisTurn = 0 + state.side[black].piecesSoldThisTurn = 0 const notKing: BuyCondition = func (piece: Piece, board: ChessBoard, s: BoardState): bool = return piece.item != King proc createPieceMarket(cost: int, rate: int): BuyCost = - var lastTurnSold = -1 - var lastPiecesSold = 0 - result = func (piece: Piece, b: ChessBoard, s: BoardState): int = - let piecesSold = s.side[piece.color].piecesSold - if s.shared.turnNumber != lastTurnSold: - lastTurnSold = s.shared.turnNumber - lastPiecesSold = piecesSold - - result = cost + (rate * (lastPiecesSold - piecesSold)) + result = cost + (rate * (s.side[piece.color].piecesSoldThisTurn)) const sell*: Power = Power( name: "Capitalism IV", @@ -1766,7 +1764,10 @@ const sell*: Power = Power( noColor: true, onStart: proc (side: Color, _: Color, b: var ChessBoard, s: var BoardState) = - s.side[side].buys &= (name: "Sell", cost: createPieceMarket(-4, -1), action: sellPiece, condition: notKing) + s.side[side].buys &= (name: "Sell", cost: createPieceMarket(-4, 1), action: sellPiece, condition: notKing) + King.buff(side, b, s, + onEndTurn = @[updatePiecesSold] + ) ) const capitalismFour1: Synergy = createCapitalism(sell)