STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/12620373?noj=FRM12620373-22DC" width="1" height="1"></div>

Mate Master.swf

This is the info page for
Flash #61231

(Click the ID number above for more basic data on this flash file.)


Text
loading...

matemaster

by Alex Gagin

n

k

matemaster

get puzzles:

play puzzles

play puzzles

play chess

play chess

more games

more games

help

help

<p align="right"><font face="Century Gothic" size="20" color="#ffffff" letterSpacing="1.000000" kerning="0">1</font></p>

88

<p align="left"><font face="Century Gothic" size="20" color="#ffffff" letterSpacing="1.000000" kerning="0">/</font></p>

novice

novice

beginner

beginner

easy

easy

moderate

moderate

difficult

difficult

fiendish

fiendish

m
e
n
u

m
e
n
u

- You play white chess pieces.
- Press on chess pieces and you can see all
possible chess moves.
- Deliver checkmate black in specified
moves against any possible defence.
Checkmate is a situation in chess in which
one player's king is threatened with
capture and there is no way to meet that
threat. Delivering checkmate is the
ultimate goal in chess: a player who is
checkmated loses the game.

Good luck!

<p align="center"><font face="Century Gothic" size="51" color="#d9f678" letterSpacing="5.000000" kerning="0">wrong</font></p><p align="center"><font face="Century Gothic" size="51" color="#d9f678" letterSpacing="5.000000" kerning="0">try again</font></p>

8
7
6
5
4
3
2
1

abcdefgh

Mate  in  3

111/111

back

restart

next

>>>

random

prev

<<<

<p align="center"><font face="DiagramTTCrystals" size="45" color="#ffffff" letterSpacing="3.000000" kerning="0">qlkprn</font></p>

ActionScript [AS1/AS2]

Frame 1
_root.showADS = false; _root.intADS = setInterval(function () { _root.showADS = true; }, 25000); stop();
Instance of Symbol 7 MovieClip "preloader_mc" in Frame 1
onClipEvent (load) { total = _root.getBytesTotal(); } onClipEvent (enterFrame) { loaded = _root.getBytesLoaded(); percent = int((loaded / total) * 100); gotoAndStop(percent); if ((loaded == total) && (_root.showADS == true)) { clearInterval(_root.intADS); trace(total); trace(loaded); trace(percent); _root.gotoAndPlay(2); } }
Instance of Symbol 18 MovieClip "by_mc" in Frame 1
on (keyPress "<Space>") { _root.by_mc._x = 70.3; _root.by_mc._y = 18.1; } on (press) { _root.by_mc._x = -75.3; _root.by_mc._y = -18.1; getURL ("http://www.galex.com.ua/", "BLANK"); }
Frame 2
function adslock() { lockADS = true; domain_ads_parts = _url.split("://"); real_ads_domain = domain_ads_parts[1].split("/"); domain_ads.text = real_ads_domain[0]; for (x in _root.urls_not_ads) { if (_root.urls_not_ads[x] == real_ads_domain[0]) { lockADS = false; } } trace(lockADS); if (lockADS == false) { _root.menuha_mc.ads_mc.gotoAndStop(1); } else { _root.menuha_mc.ads_mc.gotoAndStop(2); } clearInterval(_root.intADSlock); } urls_not_ads = ["www.flashgamelicense.com", "www.minijuegos.com", "minijuegos.com", "www.chat.minijuegos.com", "chat.minijuegos.com", "www.minichat.minijuegos.com", "minichat.minijuegos.com", "www.minijuegos.es", "minijuegos.es", "www.chat.minijuegos.es", "chat.minijuegos.es", "www.minichat.minijuegos.es", "minichat.minijuegos.es"]; intADSlock = setInterval(adslock, 240000); plchess_bl = false; plpuzzl_bl = false; memo_bl = false; memory = 1; menuha_mc.ng_btn.onPress = function () { getURL ("http://www.minijuegos.com/", "BLANK"); }; menuha_mc.plshe_btn.onPress = function () { tween1 = new mx.transitions.Tween(menuha_mc, "_x", mx.transitions.easing.Strong.easeOut, menuha_mc._x, 728.6, 10, false); help_mc._y = -281; board_mc.numPuz_txt.text = ""; board_mc.mateIn_txt.text = "Chess"; if (plchess_bl == false) { plchess_bl = true; plpuzzl_bl = false; memo_bl = false; startChess(); all_btn_off(); } }; menuha_mc.men_btn.onPress = function () { tween2 = new mx.transitions.Tween(menuha_mc, "_x", mx.transitions.easing.Back.easeOut, menuha_mc._y, 246.8, 10, false); }; menuha_mc.plpuz_btn.onPress = function () { tween1 = new mx.transitions.Tween(menuha_mc, "_x", mx.transitions.easing.Strong.easeOut, menuha_mc._x, 728.6, 10, false); help_mc._y = -281; board_mc.mateIn_txt.text = "Mate in 3"; board_mc.numPuz_txt.text = (menuha_mc.numProbl_txt.text + "/") + menuha_mc.allPuz_txt.text; plchess_bl = false; plpuzzl_bl = true; memo_bl = false; memory = 1; startChess(); var _local1 = Number(menuha_mc.numProbl_txt.text); if (_local1 == 1) { all_btn_off(); nxt_btn_in(); ran_btn_in(); } else if (_local1 == menuha_mc.allPuz_txt.text) { all_btn_off(); prev_btn_in(); ran_btn_in(); } else { all_btn_off(); prev_btn_in(); ran_btn_in(); nxt_btn_in(); } }; menuha_mc.hlp_btn.onPress = function () { tween3 = new mx.transitions.Tween(help_mc, "_y", mx.transitions.easing.Strong.easeOut, -281, 267.5, 10, false); }; help_mc.clhlp_btn.onPress = function () { tween4 = new mx.transitions.Tween(help_mc, "_y", mx.transitions.easing.Back.easeOut, 267.5, -281, 10, false); };
Instance of Symbol 230 MovieClip "minijuegos_mc" in Frame 2
on (release) { getURL ("http://www.minijuegos.com/", "BLANK"); }
Instance of Symbol 273 MovieClip "piece_3_7" in Frame 3
onClipEvent (load) { }
Frame 4
function rest_btn_in() { board_mc.rest_btn.enabled = true; board_mc.rest_btn._alpha = 100; board_mc.rest_btn.onRollOver = function () { tween7 = new mx.transitions.Tween(board_mc.rest_btn, "_y", mx.transitions.easing.Back.easeOut, 277.9, 274, 10, false); }; board_mc.rest_btn.onRollOut = function () { tween8 = new mx.transitions.Tween(board_mc.rest_btn, "_y", mx.transitions.easing.Back.easeOut, 274, 277.9, 10, false); }; board_mc.rest_btn.onPress = function () { bc_btn_off(); rest_btn_off(); memory = 1; memo_bl = false; if (plchess_bl) { board_mc.mateIn_txt.text = "Chess"; } tween8 = new mx.transitions.Tween(board_mc.rest_btn, "_y", mx.transitions.easing.Back.easeOut, 274, 277.9, 10, false); startChess(); }; } function rest_btn_off() { board_mc.rest_btn.enabled = false; board_mc.rest_btn._alpha = 50; } function bc_btn_in() { board_mc.bc_btn.enabled = true; board_mc.bc_btn._alpha = 100; board_mc.bc_btn.onRollOver = function () { tween7 = new mx.transitions.Tween(board_mc.bc_btn, "_y", mx.transitions.easing.Back.easeOut, 277.9, 274, 10, false); }; board_mc.bc_btn.onRollOut = function () { tween8 = new mx.transitions.Tween(board_mc.bc_btn, "_y", mx.transitions.easing.Back.easeOut, 274, 277.9, 10, false); }; board_mc.bc_btn.onPress = function () { memory--; backChess(); if (board_mc.mateIn_txt.text != "Chess") { board_mc.mateIn_txt.text = "Chess"; } if (plpuzzl_bl) { mateIn++; if (mateIn >= 0) { board_mc.mateIn_txt.text = "Mate in " + mateIn; } } if (memory < 2) { memo_bl = false; bc_btn_off(); if (plpuzzl_bl) { rest_btn_off(); } tween8 = new mx.transitions.Tween(board_mc.bc_btn, "_y", mx.transitions.easing.Back.easeOut, 274, 277.9, 10, false); } }; } function bc_btn_off() { board_mc.bc_btn.enabled = false; board_mc.bc_btn._alpha = 50; } function prev_btn_in() { board_mc.prev_btn.enabled = true; board_mc.prev_btn._alpha = 100; board_mc.prev_btn.onRollOver = function () { tween7 = new mx.transitions.Tween(board_mc.prev_btn, "_y", mx.transitions.easing.Back.easeOut, -296.6, -292, 10, false); }; board_mc.prev_btn.onRollOut = function () { tween8 = new mx.transitions.Tween(board_mc.prev_btn, "_y", mx.transitions.easing.Back.easeOut, -292, -296.6, 10, false); }; board_mc.prev_btn.onPress = function () { var _local1 = Number(menuha_mc.numProbl_txt.text); menuha_mc.numProbl_txt.text--; board_mc.numPuz_txt.text = (menuha_mc.numProbl_txt.text + "/") + menuha_mc.allPuz_txt.text; if (_local1 == 2) { tween8 = new mx.transitions.Tween(board_mc.prev_btn, "_y", mx.transitions.easing.Back.easeOut, -292, -296.6, 10, false); all_btn_off(); nxt_btn_in(); ran_btn_in(); } if (_local1 == menuha_mc.allPuz_txt.text) { nxt_btn_in(); } plchess_bl = false; plpuzzl_bl = true; memo_bl = false; memory = 1; startChess(); }; } function prev_btn_off() { board_mc.prev_btn.enabled = false; board_mc.prev_btn._alpha = 50; } function ran_btn_in() { board_mc.ran_btn.enabled = true; board_mc.ran_btn._alpha = 100; board_mc.ran_btn.onRollOver = function () { tween7 = new mx.transitions.Tween(board_mc.ran_btn, "_y", mx.transitions.easing.Back.easeOut, -296.6, -292, 10, false); }; board_mc.ran_btn.onRollOut = function () { tween8 = new mx.transitions.Tween(board_mc.ran_btn, "_y", mx.transitions.easing.Back.easeOut, -292, -296.6, 10, false); }; board_mc.ran_btn.onPress = function () { var _local1 = Math.ceil(Math.random() * menuha_mc.allPuz_txt.text); trace(Number(_local1)); if (Number(_local1) == menuha_mc.numProbl_txt.text) { trace("!"); if (Number(_local1) == 1) { _local1++; } else if (Number(_local1) == menuha_mc.allPuz_txt.text) { _local1--; } else { trace("!!"); _local1++; } } if (Number(_local1) == 1) { all_btn_off(); nxt_btn_in(); ran_btn_in(); } else if (Number(_local1) == menuha_mc.allPuz_txt.text) { all_btn_off(); prev_btn_in(); ran_btn_in(); } else { all_btn_off(); prev_btn_in(); ran_btn_in(); nxt_btn_in(); } menuha_mc.numProbl_txt.text = _local1; board_mc.numPuz_txt.text = (menuha_mc.numProbl_txt.text + "/") + menuha_mc.allPuz_txt.text; plchess_bl = false; plpuzzl_bl = true; memo_bl = false; memory = 1; startChess(); }; } function ran_btn_off() { board_mc.ran_btn.enabled = false; board_mc.ran_btn._alpha = 50; } function nxt_btn_in() { board_mc.nxt_btn.enabled = true; board_mc.nxt_btn._alpha = 100; board_mc.nxt_btn.onRollOver = function () { tween7 = new mx.transitions.Tween(board_mc.nxt_btn, "_y", mx.transitions.easing.Back.easeOut, -296.6, -292, 10, false); }; board_mc.nxt_btn.onRollOut = function () { tween8 = new mx.transitions.Tween(board_mc.nxt_btn, "_y", mx.transitions.easing.Back.easeOut, -292, -296.6, 10, false); }; board_mc.nxt_btn.onPress = function () { var _local1 = Number(menuha_mc.numProbl_txt.text); menuha_mc.numProbl_txt.text++; board_mc.numPuz_txt.text = (menuha_mc.numProbl_txt.text + "/") + menuha_mc.allPuz_txt.text; _local1++; if (_local1 == menuha_mc.allPuz_txt.text) { tween8 = new mx.transitions.Tween(board_mc.nxt_btn, "_y", mx.transitions.easing.Back.easeOut, -292, -296.6, 10, false); all_btn_off(); prev_btn_in(); ran_btn_in(); } if (_local1 > 1) { prev_btn_in(); } if (_local1 == 1) { all_btn_off(); nxt_btn_in(); ran_btn_in(); } else if (_local1 == menuha_mc.allPuz_txt.text) { all_btn_off(); prev_btn_in(); ran_btn_in(); } else { all_btn_off(); prev_btn_in(); ran_btn_in(); nxt_btn_in(); } plchess_bl = false; plpuzzl_bl = true; memo_bl = false; memory = 1; startChess(); }; } function nxt_btn_off() { board_mc.nxt_btn.enabled = false; board_mc.nxt_btn._alpha = 50; } function all_btn_off() { nxt_btn_off(); ran_btn_off(); prev_btn_off(); bc_btn_off(); rest_btn_off(); } all_btn_off(); function MovementRules() { this.up = 0; this.down = 0; this.left = 0; this.right = 0; this.up_left = 0; this.up_right = 0; this.down_left = 0; this.down_right = 0; this.isKnight = false; this.isPawn = false; } function Move(firstPosX, firstPosY, lastPosX, lastPosY) { this.fPX = firstPosX; this.fPY = firstPosY; this.lPX = lastPosX; this.lPY = lastPosY; } function rulesFor(piece) { if ((piece == PAWN_W) || (piece == PAWN_B)) { return(pawnRules); } if ((piece == KNIGHT_W) || (piece == KNIGHT_B)) { return(knightRules); } if ((piece == ROOK_W) || (piece == ROOK_B)) { return(rookRules); } if ((piece == BISSHOP_W) || (piece == BISSHOP_B)) { return(bisshopRules); } if ((piece == QUEEN_W) || (piece == QUEEN_B)) { return(queenRules); } if ((piece == KING_W) || (piece == KING_B)) { return(kingRules); } } function initChessBoard() { chessBoard = new Array(8); if (memo_bl) { initMemoryBoard(); } else if (plpuzzl_bl) { initPuzzleBoard(); } else if (plchess_bl) { chessBoard[0] = new Array(ROOK_B, KNIGHT_B, BISSHOP_B, QUEEN_B, KING_B, BISSHOP_B, KNIGHT_B, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, PAWN_B, PAWN_B, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, PAWN_W, PAWN_W, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, QUEEN_W, KING_W, BISSHOP_W, KNIGHT_W, ROOK_W); } else { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } var _local3 = 0; for(;;){ if (_local3 >= 8) { return(undefined); } var _local2 = 0; while (_local2 < 8) { _root[(("piece_" + _local3) + "_") + _local2].showPiece(chessBoard[_local3][_local2]); _root[(("piece_" + _local3) + "_") + _local2].row = _local3; _root[(("piece_" + _local3) + "_") + _local2].col = _local2; _local2++; } _local3++; }; } function calculateMoves(row, col, side) { if (chessBoard[row][col] == VOID) { trace("Error: no piece to calculate moves for !!"); return(null); } var _local3 = new Array(); rules = rulesFor(chessBoard[row][col]); var _local11; if (rules.isKnight) { var _local8 = row - 1; var _local7 = col + 2; if ((((_local8 >= 0) && (_local8 < 8)) && (_local7 >= 0)) && (_local7 < 8)) { if ((chessBoard[_local8][_local7] == VOID) || (side != (chessBoard[_local8][_local7] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local8 << 3)) | _local7; } } _local8 = row - 1; _local7 = col - 2; if ((((_local8 >= 0) && (_local8 < 8)) && (_local7 >= 0)) && (_local7 < 8)) { if ((chessBoard[_local8][_local7] == VOID) || (side != (chessBoard[_local8][_local7] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local8 << 3)) | _local7; } } _local8 = row + 1; _local7 = col + 2; if ((((_local8 >= 0) && (_local8 < 8)) && (_local7 >= 0)) && (_local7 < 8)) { if ((chessBoard[_local8][_local7] == VOID) || (side != (chessBoard[_local8][_local7] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local8 << 3)) | _local7; } } _local8 = row + 1; _local7 = col - 2; if ((((_local8 >= 0) && (_local8 < 8)) && (_local7 >= 0)) && (_local7 < 8)) { if ((chessBoard[_local8][_local7] == VOID) || (side != (chessBoard[_local8][_local7] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local8 << 3)) | _local7; } } _local8 = row - 2; _local7 = col + 1; if ((((_local8 >= 0) && (_local8 < 8)) && (_local7 >= 0)) && (_local7 < 8)) { if ((chessBoard[_local8][_local7] == VOID) || (side != (chessBoard[_local8][_local7] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local8 << 3)) | _local7; } } _local8 = row - 2; _local7 = col - 1; if ((((_local8 >= 0) && (_local8 < 8)) && (_local7 >= 0)) && (_local7 < 8)) { if ((chessBoard[_local8][_local7] == VOID) || (side != (chessBoard[_local8][_local7] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local8 << 3)) | _local7; } } _local8 = row + 2; _local7 = col - 1; if ((((_local8 >= 0) && (_local8 < 8)) && (_local7 >= 0)) && (_local7 < 8)) { if ((chessBoard[_local8][_local7] == VOID) || (side != (chessBoard[_local8][_local7] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local8 << 3)) | _local7; } } _local8 = row + 2; _local7 = col + 1; if ((((_local8 >= 0) && (_local8 < 8)) && (_local7 >= 0)) && (_local7 < 8)) { if ((chessBoard[_local8][_local7] == VOID) || (side != (chessBoard[_local8][_local7] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local8 << 3)) | _local7; } } } else if (rules.isPawn) { if (side == SIDE_PLAYER) { var _local10 = false; var _local6 = row - 1; if (chessBoard[_local6][col] == VOID) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local6 << 3)) | col; _local10 = true; } if ((row == 6) && (_local10)) { _local6--; if (chessBoard[_local6][col] == VOID) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local6 << 3)) | col; } } var _local8 = row - 1; var _local7 = col - 1; if ((((((_local8 >= 0) && (_local8 < 8)) && (_local7 >= 0)) && (_local7 < 8)) && (chessBoard[_local8][_local7] != VOID)) && (side != (chessBoard[_local8][_local7] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local8 << 3)) | _local7; } _local8 = row - 1; _local7 = col + 1; if ((((((_local8 >= 0) && (_local8 < 8)) && (_local7 >= 0)) && (_local7 < 8)) && (chessBoard[_local8][_local7] != VOID)) && (side != (chessBoard[_local8][_local7] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local8 << 3)) | _local7; } } else { var _local10 = false; var _local6 = row + 1; if (chessBoard[_local6][col] == VOID) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local6 << 3)) | col; _local10 = true; } if ((row == 1) && (_local10)) { _local6++; if (chessBoard[_local6][col] == VOID) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local6 << 3)) | col; } } var _local8 = row + 1; var _local7 = col - 1; if ((((((_local8 >= 0) && (_local8 < 8)) && (_local7 >= 0)) && (_local7 < 8)) && (chessBoard[_local8][_local7] != VOID)) && (side != (chessBoard[_local8][_local7] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local8 << 3)) | _local7; } _local8 = row + 1; _local7 = col + 1; if ((((((_local8 >= 0) && (_local8 < 8)) && (_local7 >= 0)) && (_local7 < 8)) && (chessBoard[_local8][_local7] != VOID)) && (side != (chessBoard[_local8][_local7] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local8 << 3)) | _local7; } } } else { var _local9 = rules.up; var _local6 = row - 1; while ((0 < _local9) && (_local6 >= 0)) { if ((chessBoard[_local6][col] == VOID) || (side != (chessBoard[_local6][col] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local6 << 3)) | col; } else { break; } if (chessBoard[_local6][col] != VOID) { break; } _local6--; _local9--; } _local9 = rules.down; _local6 = row + 1; while ((0 < _local9) && (_local6 < 8)) { if ((chessBoard[_local6][col] == VOID) || (side != (chessBoard[_local6][col] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local6 << 3)) | col; } else { break; } if (chessBoard[_local6][col] != VOID) { break; } _local6++; _local9--; } _local9 = rules.left; var _local5 = col - 1; while ((0 < _local9) && (_local5 >= 0)) { if ((chessBoard[row][_local5] == VOID) || (side != (chessBoard[row][_local5] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (row << 3)) | _local5; } else { break; } if (chessBoard[row][_local5] != VOID) { break; } _local5--; _local9--; } _local9 = rules.right; _local5 = col + 1; while ((0 < _local9) && (_local5 < 8)) { if ((chessBoard[row][_local5] == VOID) || (side != (chessBoard[row][_local5] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (row << 3)) | _local5; } else { break; } if (chessBoard[row][_local5] != VOID) { break; } _local5++; _local9--; } _local9 = rules.up_left; _local6 = row - 1; _local5 = col - 1; while (((0 < _local9) && (_local5 >= 0)) && (_local6 >= 0)) { if ((chessBoard[_local6][_local5] == VOID) || (side != (chessBoard[_local6][_local5] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local6 << 3)) | _local5; } else { break; } if (chessBoard[_local6][_local5] != VOID) { break; } _local6--; _local5--; _local9--; } _local9 = rules.up_right; _local6 = row - 1; _local5 = col + 1; while (((0 < _local9) && (_local5 < 8)) && (_local6 >= 0)) { if ((chessBoard[_local6][_local5] == VOID) || (side != (chessBoard[_local6][_local5] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local6 << 3)) | _local5; } else { break; } if (chessBoard[_local6][_local5] != VOID) { break; } _local6--; _local5++; _local9--; } _local9 = rules.down_left; _local6 = row + 1; _local5 = col - 1; while (((0 < _local9) && (_local5 >= 0)) && (_local6 < 8)) { if ((chessBoard[_local6][_local5] == VOID) || (side != (chessBoard[_local6][_local5] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local6 << 3)) | _local5; } else { break; } if (chessBoard[_local6][_local5] != VOID) { break; } _local6++; _local5--; _local9--; } _local9 = rules.down_right; _local6 = row + 1; _local5 = col + 1; while (((0 < _local9) && (_local5 < 8)) && (_local6 < 8)) { if ((chessBoard[_local6][_local5] == VOID) || (side != (chessBoard[_local6][_local5] & 1))) { _local3[_local3.length] = (((row << 9) | (col << 6)) | (_local6 << 3)) | _local5; } else { break; } if (chessBoard[_local6][_local5] != VOID) { break; } _local6++; _local5++; _local9--; } } return(_local3); } function checkChessState(side) { var _local3; var _local4; var _local6 = 0; while (_local6 < 8) { var _local5 = 0; while (_local5 < 8) { if (((chessBoard[_local6][_local5] & 1) == getOpponent(side)) && (chessBoard[_local6][_local5] != VOID)) { compMoves = calculateMoves(_local6, _local5, getOpponent(side)); var _local2 = 0; while (_local2 < compMoves.length) { _local3 = (compMoves[_local2] >> 3) & 7; _local4 = compMoves[_local2] & 7; if (((chessBoard[_local3][_local4] == KING_W) && (side == SIDE_PLAYER)) || ((chessBoard[_local3][_local4] == KING_B) && (side == SIDE_COMPUTER))) { if (side == SIDE_PLAYER) { kingInChess(_local3, _local4, side); } return(false); } _local2++; } } _local5++; } _local6++; } if (side == SIDE_PLAYER) { var _local7 = 0; _local6 = 0; while (_local6 < 8) { var _local5 = 0; while (_local5 < 8) { if (((chessBoard[_local6][_local5] & 1) == SIDE_PLAYER) && (chessBoard[_local6][_local5] != VOID)) { _local7 = _local7 + select(_local6, _local5, true); } _local5++; } _local6++; } if (_local7 == 0) { invalidateAll(); board_mc.mateIn_txt.text = "Pat"; } } return(true); } function computerLoose() { trace("ComputerLost"); invalidateAll(); board_mc.mateIn_txt.text = "Checkmate"; stop(); } function deselect(piece) { resetAllSelection(); pieceSelected = null; possiblePositions = null; } function displayMove(move, side) { var _local7 = (move >> 9) & 7; var _local6 = (move >> 6) & 7; var _local5 = (move >> 3) & 7; var _local4 = move & 7; var _local2 = " "; if (side == SIDE_COMPUTER) { _local2 = _local2 + "Comp: "; } else { _local2 = _local2 + "You: "; } _local2 = _local2 + letters[_local6]; _local2 = _local2 + (9 - (_local7 + 1)); _local2 = _local2 + " - "; _local2 = _local2 + letters[_local4]; _local2 = _local2 + (9 - (_local5 + 1)); _root.myscroll.appendText(_local2); } function do_move(move, side) { var _local3 = VOID; var _local5 = (move >> 9) & 7; var _local4 = (move >> 6) & 7; var _local2 = (move >> 3) & 7; var _local1 = move & 7; if (side == SIDE_COMPUTER) { if (chessBoard[_local2][_local1] != VOID) { _local3 = chessBoard[_local2][_local1]; playerScore = playerScore - (chessBoard[_local2][_local1] >> 1); computerScore = computerScore + (chessBoard[_local2][_local1] >> 1); } chessBoard[_local2][_local1] = chessBoard[_local5][_local4]; chessBoard[_local5][_local4] = VOID; return(_local3); } if (chessBoard[_local2][_local1] != VOID) { _local3 = chessBoard[_local2][_local1]; playerScore = playerScore + (chessBoard[_local2][_local1] >> 1); computerScore = computerScore - (chessBoard[_local2][_local1] >> 1); } chessBoard[_local2][_local1] = chessBoard[_local5][_local4]; chessBoard[_local5][_local4] = VOID; return(_local3); } function invalidateAll() { var _local3 = 0; for(;;){ if (_local3 >= 8) { return(undefined); } var _local2 = 0; while (_local2 < 8) { _root[(("piece_" + _local3) + "_") + _local2].marker.gotoAndStop("disabled"); _local2++; } _local3++; }; } function movePlayer() { resetAllSelection(); checkChessState(SIDE_PLAYER); signal.gotoAndStop("player"); } function moveRealPlayer(move, side) { var _local3 = (move >> 9) & 7; var _local2 = (move >> 6) & 7; var _local5 = (move >> 3) & 7; var _local4 = move & 7; if (pieceSelected == null) { trace("ERROR: no piece selected"); return(undefined); } if ((chessBoard[_local3][_local2] == KING_W) && (chessBoard[_local5][_local4] == ROOK_W)) { trace("rocade"); possibleRocade = false; chessBoard[_local3][_local2] = VOID; chessBoard[_local5][_local4] = VOID; if (_local2 < _local4) { chessBoard[_local3][_local2 + 2] = KING_W; chessBoard[_local3][_local2 + 1] = ROOK_W; _root[(("piece_" + _local3) + "_") + (_local2 + 1)].showPiece(chessBoard[_local3][_local2 + 1]); _root[(("piece_" + _local3) + "_") + (_local2 + 2)].showPiece(chessBoard[_local3][_local2 + 2]); } else { chessBoard[_local3][_local2 - 2] = KING_W; chessBoard[_local3][_local2 - 1] = ROOK_W; _root[(("piece_" + _local3) + "_") + (_local2 - 1)].showPiece(chessBoard[_local3][_local2 - 1]); _root[(("piece_" + _local3) + "_") + (_local2 - 2)].showPiece(chessBoard[_local3][_local2 - 2]); } _root[(("piece_" + _local5) + "_") + _local4].showPiece(chessBoard[_local5][_local4]); _root[(("piece_" + _local3) + "_") + _local2].showPiece(chessBoard[_local3][_local2]); } else { if ((chessBoard[_local3][_local2] == KING_W) || (chessBoard[_local3][_local2] == ROOK_W)) { possibleRocade = false; } var _local7 = chessBoard[_local5][_local4]; if (((_local7 & 1) == SIDE_COMPUTER) && (_local7 != VOID)) { trace("capture the computer piece"); } chessBoard[_local5][_local4] = chessBoard[_local3][_local2]; chessBoard[_local3][_local2] = VOID; _root[(("piece_" + _local5) + "_") + _local4].showPiece(chessBoard[_local5][_local4]); _root[(("piece_" + _local3) + "_") + _local2].showPiece(VOID); } invalidateAll(); if ((_local5 == 0) && (chessBoard[_local5][_local4] == PAWN_W)) { trace("promotion"); chessBoard[_local5][_local4] = QUEEN_W; _root[(("piece_" + _local5) + "_") + _local4].showPiece(QUEEN_W); } displayMove(move, SIDE_PLAYER); gotoAndPlay (7); } function moveRealComputer(move) { var _local6 = (move >> 9) & 7; var _local5 = (move >> 6) & 7; var _local2 = (move >> 3) & 7; var _local3 = move & 7; var _local7 = chessBoard[_local2][_local3]; if (((_local7 & 1) == SIDE_PLAYER) && (_local7 != VOID)) { trace("captures the player piece"); } chessBoard[_local2][_local3] = chessBoard[_local6][_local5]; chessBoard[_local6][_local5] = VOID; _root[(("piece_" + _local2) + "_") + _local3].showPiece(chessBoard[_local2][_local3]); _root[(("piece_" + _local6) + "_") + _local5].showPiece(VOID); if ((_local2 == 7) && (chessBoard[_local2][_local3] == PAWN_B)) { trace("promotion"); chessBoard[_local2][_local3] = QUEEN_B; _root[(("piece_" + _local2) + "_") + _local3].showPiece(QUEEN_B); } displayMove(move, SIDE_COMPUTER); movePlayer(); } function resetAllSelection() { var _local3 = 0; for(;;){ if (_local3 >= 8) { return(undefined); } var _local2 = 0; while (_local2 < 8) { if ((chessBoard[_local3][_local2] == VOID) || ((chessBoard[_local3][_local2] & 1) == SIDE_COMPUTER)) { _root[(("piece_" + _local3) + "_") + _local2].marker.gotoAndStop("disabled"); } else { _root[(("piece_" + _local3) + "_") + _local2].marker.gotoAndStop("normal"); } _local2++; } _local3++; }; } function select(row, col, real) { resetAllSelection(); var _local4 = calculateMoves(row, col, SIDE_PLAYER); if (possibleRocade && (real != true)) { if (chessBoard[row][col] == KING_W) { var _local3 = col; var _local7 = true; while (_local7) { _local3++; if (chessBoard[row][_local3] != VOID) { if (chessBoard[row][_local3] == ROOK_W) { if (verifyKingState((((row << 9) | (col << 6)) | (row << 3)) | (col + 2), SIDE_PLAYER)) { _local4[_local4.length] = (((row << 9) | (col << 6)) | (row << 3)) | _local3; } } _local7 = false; } } _local3 = col; _local7 = true; while (_local7) { _local3--; if (chessBoard[row][_local3] != VOID) { if (chessBoard[row][_local3] == ROOK_W) { if (verifyKingState((((row << 9) | (col << 6)) | (row << 3)) | (col - 2), SIDE_PLAYER)) { _local4[_local4.length] = (((row << 9) | (col << 6)) | (row << 3)) | _local3; } } _local7 = false; } } } } var _local6 = new Array(); var _local8 = 0; while (_local8 < _local4.length) { if (verifyKingState(_local4[_local8], SIDE_PLAYER)) { _local6[_local6.length] = _local4[_local8]; } _local8++; } if (real != true) { _local8 = 0; while (_local8 < _local6.length) { _root[(("piece_" + ((_local6[_local8] >> 3) & 7)) + "_") + (_local6[_local8] & 7)].marker.gotoAndStop("selectedTo"); _local8++; } pieceSelected = _root[(("piece_" + row) + "_") + col]; return(undefined); } return(_local6.length); } function kingInChess(rowKing, colKing, side) { trace(" >>>> CHESS " + side); possibleRocade = false; if (side == SIDE_PLAYER) { board_mc.mateIn_txt.text = "Check"; } else { board_mc.mateIn_txt.text = "Check"; } var _local4; var _local6 = true; var _local3 = 0; while (_local3 < 8) { var _local2 = 0; while (_local2 < 8) { if (((chessBoard[_local3][_local2] & 1) == side) && (chessBoard[_local3][_local2] != VOID)) { _local4 = calculateMoves(_local3, _local2, side); disabled = true; var _local1 = 0; while (_local1 < _local4.length) { if (verifyKingState(_local4[_local1], side)) { _local6 = false; } _local1++; } } _local2++; } _local3++; } if (_local6) { loose(side); } } function loose(side) { if (side == SIDE_COMPUTER) { computerLoose(); return(undefined); } playerLoose(); } function playerLoose() { trace("Player Loose"); invalidateAll(); board_mc.mateIn_txt.text = "Player Loose"; stop(); } function search(side, depth, alpha, beta) { var _local5 = -INFINITY; var _local3 = new Array(); var _local8 = null; var _local7; var _local11; var _local6 = 0; while (_local6 < 8) { var _local1 = 0; while (_local1 < 8) { if (((chessBoard[_local6][_local1] & 1) == side) && (chessBoard[_local6][_local1] != VOID)) { _local3 = _local3.concat(calculateMoves(_local6, _local1, side)); } _local1++; } _local6++; } _local6 = 0; while (_local6 < _local3.length) { _local8 = do_move(_local3[_local6], side); if (depth == 0) { _local7 = ((side == SIDE_COMPUTER) ? (computerScore) : (playerScore)); } else { _local7 = -search(getOpponent(side), depth - 1, -1 * beta, -1 * alpha); } undo_move(_local3[_local6], side, _local8); if (_local5 < _local7) { _local5 = _local7; } if (alpha < _local5) { alpha = _local5; } if (alpha >= beta) { return(alpha); } _local6++; } return(_local5); } function shuffle(collection) { var _local4 = new Array(); var _local3; var _local2; while (collection.length != 0) { _local2 = Math.round(Math.random() * (collection.length - 1)); _local3 = collection[_local2]; collection.splice(_local2, 1); _local4.push(_local3); } return(_local4); } function getOpponent(side) { if (side == SIDE_PLAYER) { return(SIDE_COMPUTER); } return(SIDE_PLAYER); } function undo_move(move, side, pieceCaptured) { var _local6 = (move >> 9) & 7; var _local5 = (move >> 6) & 7; var _local2 = (move >> 3) & 7; var _local1 = move & 7; if (side == SIDE_COMPUTER) { chessBoard[_local6][_local5] = chessBoard[_local2][_local1]; if (pieceCaptured == VOID) { chessBoard[_local2][_local1] = VOID; } else { chessBoard[_local2][_local1] = pieceCaptured; playerScore = playerScore + (chessBoard[_local2][_local1] >> 1); computerScore = computerScore - (chessBoard[_local2][_local1] >> 1); } return(undefined); } chessBoard[_local6][_local5] = chessBoard[_local2][_local1]; if (pieceCaptured != VOID) { chessBoard[_local2][_local1] = pieceCaptured; playerScore = playerScore - (chessBoard[_local2][_local1] >> 1); computerScore = computerScore + (chessBoard[_local2][_local1] >> 1); return(undefined); } chessBoard[_local2][_local1] = VOID; } function verifyKingState(move, side) { var _local8; var _local4; var _local5; var _local6; _local8 = do_move(move, side); var _local7 = 0; while (_local7 < 8) { var _local3 = 0; while (_local3 < 8) { if (((chessBoard[_local7][_local3] & 1) == getOpponent(side)) && (chessBoard[_local7][_local3] != VOID)) { _local4 = calculateMoves(_local7, _local3, getOpponent(side)); var _local1 = 0; while (_local1 < _local4.length) { _local5 = (_local4[_local1] >> 3) & 7; _local6 = _local4[_local1] & 7; if (((chessBoard[_local5][_local6] == KING_W) && (side == SIDE_PLAYER)) || ((chessBoard[_local5][_local6] == KING_B) && (side == SIDE_COMPUTER))) { undo_move(move, side, _local8); return(false); } _local1++; } } _local3++; } _local7++; } undo_move(move, side, _local8); return(true); } function startChess() { VOID = -1; PAWN_W = 5; KNIGHT_W = 13; ROOK_W = 21; BISSHOP_W = 17; QUEEN_W = 29; KING_W = 2001; PAWN_B = 4; KNIGHT_B = 12; ROOK_B = 20; BISSHOP_B = 16; QUEEN_B = 28; KING_B = 4000; SIDE_COMPUTER = 0; SIDE_PLAYER = 1; letters = new Array("a", "b", "c", "d", "e", "f", "g", "h"); possibleRocade = true; pawnRules = new MovementRules(); pawnRules.isPawn = true; pawnRules.up = 1; knightRules = new MovementRules(); knightRules.isKnight = true; rookRules = new MovementRules(); rookRules.up = 8; rookRules.down = 8; rookRules.left = 8; rookRules.right = 8; bisshopRules = new MovementRules(); bisshopRules.up_left = 8; bisshopRules.up_right = 8; bisshopRules.down_left = 8; bisshopRules.down_right = 8; queenRules = new MovementRules(); queenRules.up = 8; queenRules.down = 8; queenRules.left = 8; queenRules.right = 8; queenRules.up_left = 8; queenRules.up_right = 8; queenRules.down_left = 8; queenRules.down_right = 8; kingRules = new MovementRules(); kingRules.up = 1; kingRules.down = 1; kingRules.left = 1; kingRules.right = 1; kingRules.up_left = 1; kingRules.up_right = 1; kingRules.down_left = 1; kingRules.down_right = 1; poMo = new Array(); initChessBoard(); movePlayer(); myscroll.clearText(); initMemory(); } function backChess() { initChessBoard(); movePlayer(); myscroll.clearText(); } function initPuzzleBoard() { if (getPuzzle == "Novice") { initPuzzleNovice(); } else if (getPuzzle == "Beginner") { initPuzzleBeginner(); } else if (getPuzzle == "Easy") { initPuzzleEasy(); } else if (getPuzzle == "Moderate") { initPuzzleModerate(); } else if (getPuzzle == "Difficult") { initPuzzleDifficult(); } else if (getPuzzle == "Fiendish") { initPuzzleFiendish(); } } function initPuzzleNovice() { mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; initPuzzleNum = Number(menuha_mc.numProbl_txt.text); if ((initPuzzleNum > 0) && (initPuzzleNum <= 50)) { initPuzzleNovice50(); } if ((initPuzzleNum > 50) && (initPuzzleNum <= 100)) { initPuzzleNovice100(); } } function initPuzzleNovice50() { if (initPuzzleNum == 1) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("# 1461"); } if (initPuzzleNum == 2) { chessBoard[0] = new Array(VOID, VOID, BISSHOP_B, KING_B, BISSHOP_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, BISSHOP_B, BISSHOP_B, VOID, VOID, KNIGHT_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 3) { chessBoard[0] = new Array(KNIGHT_B, KING_B, QUEEN_B, VOID, ROOK_B, ROOK_B, VOID, VOID); chessBoard[1] = new Array(VOID, BISSHOP_B, PAWN_B, VOID, KNIGHT_B, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, PAWN_B, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KNIGHT_W, BISSHOP_W, QUEEN_W, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, VOID, VOID, VOID, VOID, ROOK_W, KING_W, VOID); } if (initPuzzleNum == 4) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_W, QUEEN_W, ROOK_B, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID); chessBoard[5] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 5) { chessBoard[0] = new Array(VOID, VOID, ROOK_B, VOID, KING_B, VOID, KING_W, BISSHOP_B); chessBoard[1] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, PAWN_W, PAWN_B); chessBoard[2] = new Array(VOID, VOID, PAWN_W, PAWN_W, VOID, PAWN_W, PAWN_B, PAWN_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 6) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_B, PAWN_B, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, QUEEN_B, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, BISSHOP_B, VOID, VOID, VOID, VOID, KING_W); } if (initPuzzleNum == 7) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, QUEEN_W, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 8) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, KNIGHT_B, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 9) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, QUEEN_B, VOID, VOID, ROOK_B, KING_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KNIGHT_B, VOID, QUEEN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, KNIGHT_W, PAWN_W, ROOK_W); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, VOID, PAWN_W, BISSHOP_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); trace("#3217"); } if (initPuzzleNum == 10) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, KNIGHT_W, KNIGHT_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, KNIGHT_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, KNIGHT_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KNIGHT_W, KNIGHT_W, KNIGHT_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KNIGHT_W, KNIGHT_W, KNIGHT_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KNIGHT_W, KNIGHT_W, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KNIGHT_W, KNIGHT_W, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KNIGHT_W, KNIGHT_W, VOID, VOID, KING_W, VOID, VOID, VOID); } if (initPuzzleNum == 11) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_B, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_B, KNIGHT_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, KING_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 12) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); } if (initPuzzleNum == 13) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); } if (initPuzzleNum == 14) { chessBoard[0] = new Array(VOID, VOID, BISSHOP_B, VOID, KING_B, VOID, KNIGHT_B, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_W, KNIGHT_B, VOID, VOID, PAWN_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_W, VOID, PAWN_W, KING_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_B, BISSHOP_B, QUEEN_B); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 15) { chessBoard[0] = new Array(ROOK_B, KNIGHT_B, BISSHOP_B, QUEEN_B, KING_B, BISSHOP_B, KNIGHT_B, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, PAWN_B, PAWN_B, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_W, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, QUEEN_W, KING_W, BISSHOP_W, KNIGHT_W, ROOK_W); } if (initPuzzleNum == 16) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 17) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(BISSHOP_B, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, KING_W, VOID); } if (initPuzzleNum == 18) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, QUEEN_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, BISSHOP_W, KING_W, BISSHOP_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, BISSHOP_W, BISSHOP_W, BISSHOP_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 19) { chessBoard[0] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 20) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); } if (initPuzzleNum == 21) { chessBoard[0] = new Array(VOID, VOID, KING_W, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[3] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 22) { chessBoard[0] = new Array(VOID, ROOK_B, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 23) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, PAWN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 24) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(BISSHOP_B, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); trace("# 4168"); } if (initPuzzleNum == 25) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); } if (initPuzzleNum == 26) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, KING_W, VOID, VOID, PAWN_B, BISSHOP_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 27) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); } if (initPuzzleNum == 28) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_W, KNIGHT_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); } if (initPuzzleNum == 29) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); chessBoard[2] = new Array(VOID, BISSHOP_W, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, BISSHOP_W, VOID, VOID, KING_W, VOID, VOID, VOID); } if (initPuzzleNum == 30) { chessBoard[0] = new Array(KING_B, KNIGHT_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 31) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 32) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, ROOK_W, ROOK_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); } if (initPuzzleNum == 33) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, QUEEN_W, VOID, BISSHOP_W, VOID, QUEEN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KNIGHT_W, ROOK_W, VOID, VOID, VOID, ROOK_W, BISSHOP_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, KNIGHT_W, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, QUEEN_W, VOID, QUEEN_W, VOID, QUEEN_W, VOID, QUEEN_W); } if (initPuzzleNum == 34) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, BISSHOP_W, VOID, BISSHOP_W, BISSHOP_W, VOID, VOID, BISSHOP_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, BISSHOP_W, VOID, VOID, KING_W, VOID, VOID, VOID); } if (initPuzzleNum == 35) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_B, PAWN_W); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, KING_W, VOID); } if (initPuzzleNum == 36) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 37) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, BISSHOP_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 38) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 39) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, ROOK_B, VOID, ROOK_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, ROOK_B, KING_B, ROOK_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_B, VOID, KNIGHT_B, VOID, VOID); chessBoard[5] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); } if (initPuzzleNum == 40) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[3] = new Array(VOID, VOID, KNIGHT_W, KNIGHT_W, KNIGHT_W, KNIGHT_W, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, KNIGHT_W, KNIGHT_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); } if (initPuzzleNum == 41) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, ROOK_W); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, KNIGHT_B, KNIGHT_W, VOID, PAWN_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, ROOK_W, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 42) { chessBoard[0] = new Array(VOID, VOID, KING_B, ROOK_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 43) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); } if (initPuzzleNum == 44) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, QUEEN_B, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, KNIGHT_B, KNIGHT_B, PAWN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, PAWN_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 45) { chessBoard[0] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, KING_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 46) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, BISSHOP_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 47) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#4205"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 48) { chessBoard[0] = new Array(ROOK_B, VOID, BISSHOP_B, QUEEN_B, KING_B, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, PAWN_B, KNIGHT_B, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, KNIGHT_B, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, QUEEN_W, KING_W, BISSHOP_W, VOID, ROOK_W); trace("# 1393"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 49) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, PAWN_B, ROOK_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_W, BISSHOP_B, VOID, PAWN_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, KING_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, PAWN_W); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); trace("#2394"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 50) { chessBoard[0] = new Array(VOID, KNIGHT_B, ROOK_B, KING_B, ROOK_B, VOID, VOID, BISSHOP_B); chessBoard[1] = new Array(ROOK_W, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, PAWN_W); chessBoard[4] = new Array(VOID, PAWN_W, PAWN_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#1813"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } } function initPuzzleNovice100() { if (initPuzzleNum == 51) { chessBoard[0] = new Array(ROOK_B, VOID, BISSHOP_B, QUEEN_B, KING_B, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, PAWN_B, KNIGHT_B, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, KNIGHT_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, KNIGHT_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, QUEEN_W, KING_W, BISSHOP_W, VOID, ROOK_W); trace("#4219"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 52) { chessBoard[0] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, QUEEN_B, VOID, VOID, VOID, VOID, PAWN_B, KING_B); chessBoard[2] = new Array(VOID, VOID, BISSHOP_B, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_B, KNIGHT_B, VOID, VOID, PAWN_W, VOID, PAWN_W, VOID); chessBoard[4] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_B, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, ROOK_W, VOID); trace("#1418"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 53) { chessBoard[0] = new Array(ROOK_B, VOID, BISSHOP_B, QUEEN_B, KING_B, BISSHOP_B, KNIGHT_B, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, KNIGHT_B, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, PAWN_W, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, VOID, KING_W, VOID, KNIGHT_W, ROOK_W); trace("#85"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 54) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, QUEEN_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, BISSHOP_B, KING_B, BISSHOP_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, BISSHOP_B, BISSHOP_B, BISSHOP_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1371"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 55) { chessBoard[0] = new Array(ROOK_B, VOID, BISSHOP_B, QUEEN_B, KING_B, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, PAWN_B, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, KNIGHT_B, VOID, VOID, KNIGHT_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, QUEEN_W); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, PAWN_W, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, VOID, KING_W, VOID, KNIGHT_W, ROOK_W); trace("#105"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 56) { chessBoard[0] = new Array(ROOK_B, KNIGHT_B, BISSHOP_B, VOID, KING_B, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, KNIGHT_W, VOID, PAWN_B, PAWN_B, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_B, PAWN_W, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, PAWN_W, PAWN_W, QUEEN_W, PAWN_W, VOID, PAWN_W); chessBoard[7] = new Array(ROOK_W, VOID, BISSHOP_W, VOID, KING_W, BISSHOP_W, VOID, ROOK_W); trace("#2058"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 57) { chessBoard[0] = new Array(ROOK_B, VOID, BISSHOP_B, QUEEN_B, KING_B, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, PAWN_B, KNIGHT_B, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, KNIGHT_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, KNIGHT_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, QUEEN_W, KING_W, BISSHOP_W, VOID, ROOK_W); trace("#2876"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 58) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1108"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 59) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, VOID, BISSHOP_W, VOID, VOID); chessBoard[5] = new Array(VOID, BISSHOP_W, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#240"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 60) { chessBoard[0] = new Array(VOID, VOID, BISSHOP_B, VOID, VOID, VOID, VOID, ROOK_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, KNIGHT_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID, QUEEN_B); chessBoard[6] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, ROOK_W); trace("#2158"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 61) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, KING_B, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, ROOK_W); trace("#2130"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 62) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#238"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 63) { chessBoard[0] = new Array(VOID, VOID, KNIGHT_W, VOID, KING_B, VOID, VOID, KNIGHT_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KNIGHT_W, VOID, VOID, KNIGHT_W, VOID, KNIGHT_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#1392"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 64) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[1] = new Array(KING_B, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_B, VOID, QUEEN_B, VOID, VOID, VOID, ROOK_B, VOID); chessBoard[3] = new Array(KING_W, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_W, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 1182"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 65) { chessBoard[0] = new Array(ROOK_B, KNIGHT_B, BISSHOP_B, QUEEN_B, KING_B, VOID, KNIGHT_B, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, PAWN_B, KNIGHT_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KNIGHT_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, PAWN_W, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, VOID, KING_W, BISSHOP_W, VOID, ROOK_W); trace("# 226"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 66) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KNIGHT_W, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(BISSHOP_W, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 339"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 67) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, QUEEN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, ROOK_B, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 1376"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 68) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); trace("# 1297"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 69) { chessBoard[0] = new Array(VOID, VOID, KNIGHT_W, VOID, KING_B, KNIGHT_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, BISSHOP_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#11"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 70) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, ROOK_B, VOID, VOID, ROOK_B, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, PAWN_W, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#10"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 71) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, QUEEN_B, KING_B, BISSHOP_B, KNIGHT_B, ROOK_B); chessBoard[1] = new Array(PAWN_B, BISSHOP_B, VOID, PAWN_B, PAWN_B, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, KNIGHT_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, PAWN_W, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, VOID, KING_W, VOID, VOID, ROOK_W); trace("#271"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 72) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, QUEEN_W, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 1722"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 73) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[2] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, BISSHOP_W, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#272"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 74) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[3] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, PAWN_B, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, PAWN_B); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 1216"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 75) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, KING_B); chessBoard[1] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 26"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 76) { chessBoard[0] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, PAWN_B, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); trace("# 1811"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 77) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, KNIGHT_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); trace("#88"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 78) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, ROOK_W, VOID, ROOK_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("# 2039"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 79) { chessBoard[0] = new Array(BISSHOP_W, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_W, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B, ROOK_B); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B, KING_B); trace("# 1377"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 80) { chessBoard[0] = new Array(KING_B, ROOK_B, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 427"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 81) { chessBoard[0] = new Array(KING_B, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 609"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 82) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[5] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 429"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 83) { chessBoard[0] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_B); chessBoard[1] = new Array(ROOK_B, PAWN_B, VOID, KNIGHT_W, VOID, VOID, BISSHOP_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KNIGHT_B, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, VOID, VOID, PAWN_W, VOID, VOID, QUEEN_W); chessBoard[7] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); trace("# 533"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 84) { chessBoard[0] = new Array(VOID, VOID, ROOK_B, KING_B, ROOK_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[2] = new Array(ROOK_W, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[5] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); trace("# 1343"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 85) { chessBoard[0] = new Array(VOID, VOID, VOID, ROOK_B, KING_B, VOID, ROOK_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, ROOK_W, QUEEN_B, ROOK_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); trace("# 1347"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 86) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, QUEEN_B, KING_B, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, BISSHOP_B, PAWN_B, PAWN_B, PAWN_B, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(VOID, PAWN_B, KNIGHT_B, VOID, VOID, KNIGHT_B, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, QUEEN_W, KING_W, VOID, VOID, ROOK_W); trace("# 1461"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 87) { chessBoard[0] = new Array(KNIGHT_W, VOID, BISSHOP_W, VOID, BISSHOP_B, VOID, KNIGHT_B, KNIGHT_W); chessBoard[1] = new Array(VOID, KING_W, BISSHOP_W, KNIGHT_W, KNIGHT_B, VOID, ROOK_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_B, KNIGHT_B, KNIGHT_W, VOID); chessBoard[3] = new Array(VOID, PAWN_W, PAWN_W, VOID, VOID, VOID, KNIGHT_B, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_W, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_B, PAWN_B, VOID, VOID, KNIGHT_W, VOID); chessBoard[6] = new Array(BISSHOP_W, VOID, VOID, QUEEN_B, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID); trace("#2030"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 88) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KING_W, PAWN_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, PAWN_B, VOID); chessBoard[4] = new Array(VOID, BISSHOP_W, BISSHOP_W, KING_B, PAWN_B, PAWN_B, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, PAWN_B, VOID, VOID, VOID, ROOK_B); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[7] = new Array(VOID, VOID, QUEEN_B, VOID, VOID, VOID, VOID, KNIGHT_W); trace("#3494"); mateIn = 1; board_mc.mateIn_txt.text = "Mate in " + mateIn; } } function initPuzzleBeginner() { mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; initPuzzleNum = Number(menuha_mc.numProbl_txt.text); if ((initPuzzleNum > 0) && (initPuzzleNum <= 50)) { initPuzzleBeginner50(); } if ((initPuzzleNum > 50) && (initPuzzleNum <= 100)) { initPuzzleBeginner100(); } if ((initPuzzleNum > 100) && (initPuzzleNum <= 150)) { initPuzzleBeginner150(); } } function initPuzzleBeginner50() { if (initPuzzleNum == 1) { chessBoard[0] = new Array(VOID, VOID, ROOK_B, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, QUEEN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_B, VOID, VOID, PAWN_B, VOID, KNIGHT_W, QUEEN_W, VOID); chessBoard[3] = new Array(VOID, PAWN_B, VOID, PAWN_W, VOID, PAWN_W, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, KING_W, VOID); trace("#975"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 2) { chessBoard[0] = new Array(ROOK_B, KNIGHT_B, BISSHOP_B, QUEEN_B, VOID, VOID, KNIGHT_B, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, PAWN_B, BISSHOP_B, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, PAWN_B, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, VOID); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, VOID, KING_W, VOID, VOID, ROOK_W); trace("#1768"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 3) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1364"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 4) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, VOID, ROOK_B, VOID, KING_B); chessBoard[1] = new Array(PAWN_B, BISSHOP_B, VOID, PAWN_B, VOID, VOID, PAWN_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KNIGHT_B, VOID, VOID, PAWN_W, PAWN_B); chessBoard[3] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, PAWN_W); chessBoard[5] = new Array(VOID, VOID, BISSHOP_W, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[7] = new Array(VOID, QUEEN_B, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1112"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 5) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[2] = new Array(PAWN_B, VOID, VOID, PAWN_B, VOID, ROOK_B, ROOK_W, PAWN_B); chessBoard[3] = new Array(VOID, VOID, PAWN_B, PAWN_W, PAWN_B, QUEEN_B, VOID, QUEEN_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_W, PAWN_W, PAWN_B, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, ROOK_W); chessBoard[7] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#322"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 6) { chessBoard[0] = new Array(VOID, VOID, VOID, ROOK_B, VOID, VOID, KNIGHT_B, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#329"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 7) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KING_W, VOID, VOID, KING_B, PAWN_B, ROOK_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); trace("#274"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 8) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(BISSHOP_W, VOID, VOID, BISSHOP_W, BISSHOP_W, VOID, VOID, BISSHOP_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("# 1668"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 9) { chessBoard[0] = new Array(VOID, ROOK_B, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, ROOK_W, VOID, VOID, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_B, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(ROOK_B, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[6] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, KING_W, VOID); trace("#2992"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 10) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, ROOK_B, BISSHOP_B, KING_B, VOID); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, QUEEN_W, PAWN_B, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, QUEEN_B, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, KNIGHT_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, VOID, KNIGHT_B, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, BISSHOP_W, PAWN_B); chessBoard[7] = new Array(VOID, KING_W, VOID, ROOK_W, VOID, VOID, ROOK_W, VOID); trace("#1091"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 11) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, QUEEN_B, ROOK_B, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, QUEEN_W, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, ROOK_W, VOID, VOID, VOID, ROOK_W); trace("# 3814"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 12) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, VOID, VOID, ROOK_B, KING_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, PAWN_B, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_B, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, ROOK_W); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, ROOK_W); trace("# 1559"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 13) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[5] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("# 136"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 14) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, PAWN_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, QUEEN_W, VOID, PAWN_W, PAWN_B, PAWN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, PAWN_W, PAWN_B, VOID, PAWN_B, PAWN_W); chessBoard[4] = new Array(VOID, KING_B, PAWN_W, PAWN_B, VOID, VOID, VOID, PAWN_B); chessBoard[5] = new Array(VOID, PAWN_W, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("# 2508"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 15) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(ROOK_W, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 1439"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 16) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(KING_B, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 2059"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 17) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, BISSHOP_W, VOID, VOID); chessBoard[6] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); trace("# 1752"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 18) { chessBoard[0] = new Array(VOID, KING_B, VOID, VOID, VOID, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(VOID, PAWN_B, ROOK_B, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[2] = new Array(PAWN_B, BISSHOP_W, BISSHOP_B, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_W, QUEEN_W, VOID, PAWN_B); chessBoard[4] = new Array(PAWN_W, QUEEN_B, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[6] = new Array(VOID, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, ROOK_W, VOID, ROOK_W, KING_W, VOID); trace("# 1033"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 19) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, ROOK_W, VOID, VOID); trace("# 4206"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 20) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 155"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 21) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, ROOK_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); trace("#89"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 22) { chessBoard[0] = new Array(ROOK_B, VOID, BISSHOP_B, QUEEN_B, VOID, ROOK_B, VOID, KING_B); chessBoard[1] = new Array(VOID, PAWN_B, VOID, KNIGHT_B, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[3] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, PAWN_W, VOID, VOID, VOID, ROOK_W); chessBoard[5] = new Array(PAWN_W, VOID, PAWN_W, VOID, VOID, VOID, BISSHOP_B, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, VOID, QUEEN_W, VOID, VOID, VOID, KING_W); trace("# 505"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 23) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(KING_B, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(BISSHOP_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1309"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 24) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[5] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(BISSHOP_W, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, KING_W); trace("# 3557"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 25) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_B, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 4085"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 26) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, BISSHOP_W, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KING_W, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(BISSHOP_W, VOID, PAWN_B, KNIGHT_W, PAWN_B, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 614"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 27) { chessBoard[0] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, BISSHOP_B, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_W, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KNIGHT_W, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); trace("#352"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 28) { chessBoard[0] = new Array(ROOK_B, VOID, BISSHOP_B, QUEEN_B, KING_B, VOID, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, VOID, PAWN_B, KNIGHT_B, VOID, PAWN_B, PAWN_B, VOID); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, PAWN_B, KNIGHT_B, VOID, PAWN_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(BISSHOP_W, VOID, PAWN_W, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, PAWN_W, VOID, QUEEN_W, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, VOID, VOID, VOID, KING_W, VOID, KNIGHT_W, ROOK_W); trace("#126"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 29) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID); chessBoard[1] = new Array(QUEEN_B, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[2] = new Array(VOID, ROOK_B, KNIGHT_B, VOID, VOID, VOID, PAWN_B, PAWN_B); chessBoard[3] = new Array(PAWN_B, VOID, VOID, BISSHOP_W, KNIGHT_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, QUEEN_W, VOID, VOID, PAWN_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, KING_W, VOID); trace("#978"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 30) { chessBoard[0] = new Array(VOID, VOID, VOID, QUEEN_B, ROOK_B, BISSHOP_B, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, BISSHOP_B, VOID, PAWN_B, KING_B, VOID); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, PAWN_W, BISSHOP_W, QUEEN_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, PAWN_W, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#1009"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 31) { chessBoard[0] = new Array(KING_B, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1282"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 32) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, KING_B); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, KNIGHT_B, BISSHOP_W, PAWN_B, PAWN_B); chessBoard[3] = new Array(QUEEN_B, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_W, VOID, BISSHOP_B, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, VOID, ROOK_W, VOID, VOID, QUEEN_W); chessBoard[6] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#178"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 33) { chessBoard[0] = new Array(KING_B, VOID, VOID, ROOK_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KNIGHT_B, VOID, QUEEN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, BISSHOP_W); chessBoard[7] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#1783"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 34) { chessBoard[0] = new Array(BISSHOP_B, VOID, VOID, VOID, ROOK_B, VOID, KING_B, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, PAWN_B, QUEEN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, PAWN_W, VOID, VOID, PAWN_W, VOID); chessBoard[6] = new Array(PAWN_W, VOID, PAWN_W, VOID, VOID, QUEEN_W, KNIGHT_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, KING_W, VOID); trace("#198"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 35) { chessBoard[0] = new Array(ROOK_B, VOID, BISSHOP_B, VOID, QUEEN_B, KNIGHT_W, VOID, KING_B); chessBoard[1] = new Array(VOID, PAWN_B, PAWN_B, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[2] = new Array(PAWN_B, VOID, VOID, PAWN_B, VOID, VOID, VOID, KNIGHT_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, BISSHOP_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, BISSHOP_W, PAWN_W, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[6] = new Array(PAWN_W, PAWN_W, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1772"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 36) { chessBoard[0] = new Array(ROOK_B, VOID, BISSHOP_B, QUEEN_B, VOID, VOID, ROOK_B, VOID); chessBoard[1] = new Array(BISSHOP_B, VOID, VOID, VOID, VOID, PAWN_B, KING_B, VOID); chessBoard[2] = new Array(PAWN_B, VOID, PAWN_B, PAWN_B, VOID, PAWN_B, VOID, VOID); chessBoard[3] = new Array(VOID, PAWN_B, VOID, VOID, PAWN_B, PAWN_W, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, VOID, PAWN_W, VOID, PAWN_W, BISSHOP_W); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, PAWN_W, QUEEN_W, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(ROOK_W, VOID, VOID, VOID, KING_W, VOID, VOID, ROOK_W); trace("#1598"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 37) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, KNIGHT_B, VOID, VOID, PAWN_B, VOID, VOID, ROOK_B); chessBoard[2] = new Array(KNIGHT_B, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[6] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, ROOK_W, VOID, ROOK_W, VOID, VOID); trace("#3231"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 38) { chessBoard[0] = new Array(KING_B, BISSHOP_W, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1399"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 39) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, KNIGHT_B, PAWN_B, KNIGHT_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, PAWN_W, KNIGHT_W, PAWN_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#2091"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 40) { chessBoard[0] = new Array(KNIGHT_W, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_B, VOID); chessBoard[2] = new Array(PAWN_B, BISSHOP_W, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1472"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 41) { chessBoard[0] = new Array(ROOK_W, VOID, VOID, ROOK_B, KING_B, ROOK_B, VOID, ROOK_W); chessBoard[1] = new Array(ROOK_W, VOID, VOID, VOID, ROOK_B, VOID, VOID, ROOK_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[7] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1451"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 42) { chessBoard[0] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, PAWN_B, KNIGHT_W, VOID, VOID, VOID, QUEEN_W, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, KNIGHT_W, KNIGHT_B, VOID, VOID); chessBoard[3] = new Array(QUEEN_B, VOID, VOID, PAWN_W, BISSHOP_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KNIGHT_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, KING_W); trace("#1067"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 43) { chessBoard[0] = new Array(VOID, ROOK_W, VOID, BISSHOP_W, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(QUEEN_B, VOID, VOID, VOID, VOID, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, ROOK_B, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#1555"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 44) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KNIGHT_W, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); trace("#1834"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 45) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, QUEEN_W, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, PAWN_B, ROOK_W, PAWN_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, VOID, VOID); chessBoard[5] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#2139"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 46) { chessBoard[0] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, ROOK_W, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, BISSHOP_W, BISSHOP_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, ROOK_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#970"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 47) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_B, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, ROOK_W, KING_W, VOID, VOID, VOID); trace("#382"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 48) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_W, VOID, VOID, KING_B, VOID, VOID, BISSHOP_B, KNIGHT_W); chessBoard[4] = new Array(PAWN_W, VOID, PAWN_B, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1118"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 49) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[3] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#137"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 50) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_W, VOID, KING_B, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, PAWN_B, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, VOID, PAWN_B, PAWN_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, PAWN_W, QUEEN_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#4174"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } } function initPuzzleBeginner100() { if (initPuzzleNum == 51) { chessBoard[0] = new Array(ROOK_B, KNIGHT_B, VOID, QUEEN_B, ROOK_B, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, PAWN_B, VOID, VOID, KNIGHT_B, PAWN_B, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_B, PAWN_W, BISSHOP_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[6] = new Array(PAWN_W, BISSHOP_W, VOID, PAWN_W, VOID, PAWN_W, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, ROOK_W, VOID, BISSHOP_W, VOID, ROOK_W); trace("#1695"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 52) { chessBoard[0] = new Array(VOID, KING_B, ROOK_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[7] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#139"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 53) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, PAWN_B, VOID, VOID, VOID, PAWN_B); chessBoard[2] = new Array(BISSHOP_B, PAWN_B, VOID, VOID, PAWN_W, QUEEN_W, VOID, VOID); chessBoard[3] = new Array(VOID, BISSHOP_W, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, QUEEN_B); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, KING_W, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); trace("#1643"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 54) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, BISSHOP_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[5] = new Array(VOID, PAWN_B, PAWN_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, KING_W, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); trace("#411"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 55) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1721"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 56) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, BISSHOP_W, PAWN_B, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, KING_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, PAWN_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, BISSHOP_B, VOID, VOID, VOID, VOID); trace("#3091"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 57) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1500"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 58) { chessBoard[0] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_B, VOID, ROOK_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, PAWN_B, PAWN_W, VOID, BISSHOP_B, KNIGHT_W, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, PAWN_B, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); trace("#882"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 59) { chessBoard[0] = new Array(VOID, VOID, KING_B, ROOK_B, VOID, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, BISSHOP_B, VOID, VOID, QUEEN_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, BISSHOP_W, VOID, VOID, ROOK_W, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, KING_W, VOID); trace("#323"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 60) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, QUEEN_B, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, BISSHOP_B, VOID, QUEEN_W, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, VOID, BISSHOP_B, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[6] = new Array(PAWN_W, VOID, PAWN_W, PAWN_W, VOID, PAWN_W, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, KING_W, VOID); trace("#325"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 61) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#3229"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 62) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_B, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[5] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, VOID); chessBoard[6] = new Array(VOID, BISSHOP_W, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, ROOK_W, KING_W, VOID, VOID, VOID); trace("#381"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 63) { chessBoard[0] = new Array(VOID, ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, BISSHOP_B, VOID, VOID, KING_B); chessBoard[2] = new Array(VOID, QUEEN_B, VOID, PAWN_B, KNIGHT_W, ROOK_B, PAWN_B, PAWN_B); chessBoard[3] = new Array(PAWN_B, VOID, VOID, PAWN_W, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, ROOK_W, VOID, VOID, VOID, QUEEN_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, KING_W, VOID); trace("#1625"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 64) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, ROOK_B, VOID, ROOK_B, VOID); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, QUEEN_W, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, QUEEN_B, PAWN_B, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, BISSHOP_B, VOID, KING_B, VOID, BISSHOP_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, VOID, VOID, VOID, VOID, ROOK_W, KING_W, VOID); trace("#2938"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 65) { chessBoard[0] = new Array(QUEEN_B, VOID, VOID, VOID, BISSHOP_B, VOID, VOID, ROOK_B); chessBoard[1] = new Array(KING_B, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, PAWN_B, VOID, ROOK_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[4] = new Array(VOID, VOID, KNIGHT_W, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, VOID, VOID, PAWN_W, KNIGHT_B, PAWN_B); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, PAWN_B, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#861"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 66) { chessBoard[0] = new Array(VOID, VOID, KING_B, ROOK_B, VOID, VOID, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, VOID, BISSHOP_B, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, BISSHOP_B, QUEEN_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, BISSHOP_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, ROOK_W, ROOK_W, VOID, VOID, KING_W); trace("#193"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 67) { chessBoard[0] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, KING_W, PAWN_W, VOID, PAWN_W, QUEEN_W, VOID); chessBoard[2] = new Array(VOID, VOID, PAWN_W, PAWN_W, VOID, PAWN_W, PAWN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_B, PAWN_B, VOID, PAWN_B, PAWN_B, VOID); chessBoard[5] = new Array(VOID, VOID, KNIGHT_B, PAWN_B, VOID, PAWN_B, QUEEN_B, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); trace("#1637"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 68) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); trace("#154"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 69) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, PAWN_B, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, PAWN_B, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, KING_B, VOID, VOID, VOID); trace("#3347"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 70) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, QUEEN_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, VOID, VOID, VOID, PAWN_W, KING_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, BISSHOP_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[4] = new Array(BISSHOP_B, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[5] = new Array(PAWN_W, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_B, VOID, VOID, ROOK_B, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, ROOK_W, VOID); trace("#285"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 71) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1250"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 72) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, ROOK_B, VOID, PAWN_B, BISSHOP_B, ROOK_B, PAWN_B, KING_B); chessBoard[2] = new Array(VOID, PAWN_B, VOID, ROOK_W, VOID, VOID, VOID, PAWN_B); chessBoard[3] = new Array(PAWN_B, VOID, PAWN_B, VOID, BISSHOP_W, VOID, VOID, PAWN_W); chessBoard[4] = new Array(PAWN_W, VOID, PAWN_W, VOID, KING_W, PAWN_W, PAWN_W, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#973"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 73) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, KNIGHT_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#1475"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 74) { chessBoard[0] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, PAWN_B, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(BISSHOP_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_W, PAWN_W, KNIGHT_B, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_W, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); trace("#337"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 75) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_B, ROOK_B, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[3] = new Array(PAWN_B, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KNIGHT_B, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(ROOK_B, VOID, QUEEN_B, BISSHOP_W, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#384"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 76) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, VOID, ROOK_B, VOID, KING_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, VOID, VOID, PAWN_B, ROOK_W, PAWN_B); chessBoard[2] = new Array(VOID, PAWN_W, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KNIGHT_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, BISSHOP_W, VOID, VOID, VOID, PAWN_W, VOID, PAWN_W); chessBoard[7] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); trace("#236"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 77) { chessBoard[0] = new Array(ROOK_B, VOID, BISSHOP_B, VOID, KING_B, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, KNIGHT_B, VOID, PAWN_B, PAWN_B, VOID); chessBoard[2] = new Array(VOID, QUEEN_B, PAWN_B, VOID, PAWN_B, VOID, VOID, PAWN_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_W, PAWN_W, QUEEN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, KNIGHT_W, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, VOID, VOID, VOID, VOID, ROOK_W, KING_W, VOID); trace("#1159"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 78) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, ROOK_B, VOID, KING_B, BISSHOP_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(PAWN_B, VOID, VOID, QUEEN_W, BISSHOP_B, VOID, PAWN_B, BISSHOP_W); chessBoard[3] = new Array(VOID, VOID, PAWN_B, VOID, VOID, KNIGHT_W, PAWN_W, PAWN_W); chessBoard[4] = new Array(VOID, PAWN_B, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KNIGHT_B, VOID, PAWN_W, VOID, VOID); chessBoard[6] = new Array(PAWN_W, QUEEN_B, PAWN_W, KING_W, BISSHOP_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, ROOK_W); trace("#570"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 79) { chessBoard[0] = new Array(VOID, VOID, VOID, QUEEN_B, KING_B, QUEEN_B, VOID, VOID); chessBoard[1] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[2] = new Array(VOID, BISSHOP_W, VOID, BISSHOP_W, BISSHOP_W, BISSHOP_W, VOID, BISSHOP_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#1470"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 80) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[2] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, BISSHOP_B, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#4053"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 81) { chessBoard[0] = new Array(VOID, VOID, ROOK_B, VOID, VOID, VOID, ROOK_B, VOID); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[2] = new Array(KNIGHT_B, VOID, PAWN_B, VOID, PAWN_B, VOID, PAWN_B, KING_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, PAWN_B); chessBoard[4] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, BISSHOP_W, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#290"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 82) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, KNIGHT_B, VOID, KING_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, VOID, KNIGHT_B, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, KNIGHT_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, BISSHOP_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(QUEEN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, KING_W, VOID); trace("#4145"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 83) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, KNIGHT_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_W, PAWN_W, VOID, PAWN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, PAWN_B, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, BISSHOP_B); chessBoard[5] = new Array(PAWN_B, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, VOID); chessBoard[6] = new Array(ROOK_B, PAWN_B, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[7] = new Array(ROOK_B, BISSHOP_W, VOID, VOID, VOID, KING_W, VOID, VOID); trace("#2090"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 84) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#243"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 85) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_B, VOID, PAWN_W, KNIGHT_B, VOID, VOID); chessBoard[3] = new Array(PAWN_W, VOID, KNIGHT_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#445"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 86) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, KNIGHT_W, KNIGHT_B, KING_B, PAWN_B, KING_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID); trace("#2979"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 87) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, ROOK_B, BISSHOP_B); chessBoard[3] = new Array(PAWN_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, ROOK_B); chessBoard[4] = new Array(VOID, PAWN_W, KING_B, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KING_W, VOID, VOID, PAWN_B, ROOK_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); trace("#1176"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 88) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, ROOK_W, VOID, VOID, KING_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1530"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 89) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID, PAWN_W); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_W, VOID, KING_B, VOID, KING_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, KNIGHT_W, VOID); chessBoard[6] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1270"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 90) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, ROOK_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KNIGHT_W, PAWN_B, VOID, KING_B, BISSHOP_B, PAWN_W, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, KING_W, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_B, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); trace("#446"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 91) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(KING_W, VOID, KNIGHT_W, VOID, VOID, BISSHOP_B, BISSHOP_B, VOID); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_B, VOID, PAWN_B, VOID, VOID, VOID, VOID, ROOK_B); chessBoard[4] = new Array(PAWN_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); trace("#888"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 92) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, KING_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, KING_B, KNIGHT_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, PAWN_B, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1050"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 93) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1494"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 94) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_B, VOID); chessBoard[1] = new Array(KING_W, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_B, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B); chessBoard[4] = new Array(PAWN_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); trace("#885"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 95) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, KNIGHT_B, VOID, KING_B, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, QUEEN_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_B, ROOK_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, VOID, VOID, ROOK_W, PAWN_W, QUEEN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#971"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 96) { chessBoard[0] = new Array(VOID, VOID, ROOK_B, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, QUEEN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_B, VOID, VOID, PAWN_B, VOID, KNIGHT_W, QUEEN_W, VOID); chessBoard[3] = new Array(VOID, PAWN_B, VOID, PAWN_W, VOID, PAWN_W, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, KING_W, VOID); trace("#975"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 97) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_W, VOID, PAWN_B, VOID, VOID, VOID, BISSHOP_B, VOID); chessBoard[3] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[5] = new Array(BISSHOP_B, VOID, PAWN_W, VOID, ROOK_B, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#777"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 98) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, KNIGHT_W, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, ROOK_B, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); trace("#1193"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 99) { chessBoard[0] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_W, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[4] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#3227"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 100) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, KNIGHT_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, BISSHOP_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, KING_B, VOID, PAWN_B, PAWN_B, KNIGHT_W); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, KING_W, VOID, PAWN_W, VOID, BISSHOP_W); chessBoard[7] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1281"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } } function initPuzzleBeginner150() { if (initPuzzleNum == 101) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[4] = new Array(KING_B, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1350"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 102) { chessBoard[0] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, PAWN_B, QUEEN_B, PAWN_B, KING_W, PAWN_B, VOID, VOID); chessBoard[2] = new Array(QUEEN_W, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, PAWN_B, VOID, PAWN_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); trace("#1810"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 103) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, VOID, VOID, KNIGHT_B, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, QUEEN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, BISSHOP_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, KING_W, ROOK_W, VOID, VOID, VOID, VOID); trace("#172"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 104) { chessBoard[0] = new Array(KING_B, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); trace("#1762"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 105) { chessBoard[0] = new Array(ROOK_B, KNIGHT_B, VOID, QUEEN_B, KING_B, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, VOID, PAWN_B, PAWN_B, PAWN_B, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, KNIGHT_B, PAWN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, BISSHOP_B, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, VOID, KING_W, VOID, KNIGHT_W, ROOK_W); trace("#2975"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 106) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, ROOK_B, ROOK_B, VOID, KING_B); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, VOID, PAWN_B, BISSHOP_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, PAWN_B); chessBoard[3] = new Array(VOID, PAWN_B, VOID, VOID, QUEEN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_W, VOID, VOID, PAWN_W, VOID, VOID, ROOK_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, BISSHOP_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); trace("#1344"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 107) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1771"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 108) { chessBoard[0] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1777"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 109) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, KNIGHT_B, VOID, ROOK_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, QUEEN_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_B, VOID, PAWN_B, VOID, VOID, VOID, KING_B); chessBoard[3] = new Array(PAWN_B, PAWN_W, PAWN_B, PAWN_W, PAWN_B, PAWN_W, PAWN_B, PAWN_B); chessBoard[4] = new Array(VOID, VOID, PAWN_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, QUEEN_W, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, ROOK_W); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, KING_W); trace("#559"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 110) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[6] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#138"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 111) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); trace("#153"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 112) { chessBoard[0] = new Array(VOID, VOID, VOID, ROOK_B, VOID, ROOK_B, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, QUEEN_B, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(PAWN_B, VOID, BISSHOP_B, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, QUEEN_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, ROOK_W, ROOK_W); trace("#157"); mateIn = 2; board_mc.mateIn_txt.text = "Mate in " + mateIn; } } function initPuzzleEasy() { mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; initPuzzleNum = Number(menuha_mc.numProbl_txt.text); if ((initPuzzleNum > 0) && (initPuzzleNum <= 50)) { initPuzzleEasy50(); } if ((initPuzzleNum > 50) && (initPuzzleNum <= 100)) { initPuzzleEasy100(); } if ((initPuzzleNum > 100) && (initPuzzleNum <= 150)) { initPuzzleEasy150(); } } function initPuzzleEasy50() { if (initPuzzleNum == 1) { chessBoard[0] = new Array(VOID, ROOK_B, VOID, VOID, VOID, ROOK_B, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_W, VOID, VOID, QUEEN_B, QUEEN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[6] = new Array(VOID, BISSHOP_B, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); trace("#1558"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 2) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, BISSHOP_B, KNIGHT_B, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, PAWN_B, ROOK_B, BISSHOP_W, PAWN_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, QUEEN_B, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_B, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, PAWN_W, VOID, PAWN_W, ROOK_W, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, QUEEN_W, KING_W, PAWN_W, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); trace("#57"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 3) { chessBoard[0] = new Array(ROOK_B, VOID, ROOK_B, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); trace("#81"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 4) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 1296"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 5) { chessBoard[0] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_B); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); trace("#2038"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 6) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B, VOID); chessBoard[2] = new Array(KING_B, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[4] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#2460"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 7) { chessBoard[0] = new Array(ROOK_B, VOID, BISSHOP_B, VOID, ROOK_B, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, PAWN_B, QUEEN_B, VOID, BISSHOP_B, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(PAWN_B, VOID, VOID, VOID, PAWN_B, BISSHOP_W, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, PAWN_B, ROOK_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[5] = new Array(VOID, VOID, PAWN_W, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, KING_W, VOID); trace("#1639"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 8) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, KING_B); trace("# 2224"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 9) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, KING_B, VOID); chessBoard[1] = new Array(BISSHOP_B, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(ROOK_B, VOID, VOID, VOID, VOID, KNIGHT_B, VOID, VOID); chessBoard[3] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_B, PAWN_W, VOID); chessBoard[6] = new Array(KNIGHT_B, VOID, VOID, VOID, VOID, PAWN_W, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, ROOK_W, VOID, KING_W, VOID); trace("# 1239"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 10) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, BISSHOP_W, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("# 1253"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 11) { chessBoard[0] = new Array(ROOK_B, KNIGHT_B, BISSHOP_B, QUEEN_B, VOID, KING_B, KNIGHT_B, QUEEN_W); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, PAWN_B, PAWN_B, PAWN_B, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, BISSHOP_W, VOID, KING_W, BISSHOP_W, KNIGHT_W, ROOK_W); trace("# 632"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 12) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KING_W, VOID, VOID, VOID, BISSHOP_W, BISSHOP_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); trace("# 3679"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 13) { chessBoard[0] = new Array(ROOK_B, VOID, BISSHOP_B, VOID, ROOK_B, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, PAWN_B, QUEEN_B, VOID, BISSHOP_B, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(PAWN_B, VOID, VOID, VOID, PAWN_B, BISSHOP_W, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, PAWN_B, ROOK_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[5] = new Array(VOID, VOID, PAWN_W, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, KING_W, VOID); trace("# 1553"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 14) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, QUEEN_B, VOID, PAWN_B, VOID); chessBoard[2] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[5] = new Array(PAWN_B, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, KNIGHT_W, VOID); trace("#1302"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 15) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, KING_B, VOID); chessBoard[1] = new Array(VOID, PAWN_B, PAWN_B, VOID, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, QUEEN_B, VOID, BISSHOP_B); chessBoard[3] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(QUEEN_W, PAWN_W, VOID, VOID, VOID, VOID, KNIGHT_B, VOID); chessBoard[5] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, ROOK_W, KNIGHT_W, VOID, KING_W); trace("#573"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 16) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, BISSHOP_W, KING_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#4201"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 17) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, QUEEN_B, VOID, ROOK_B, KING_B, VOID); chessBoard[1] = new Array(PAWN_B, KNIGHT_B, VOID, VOID, VOID, KNIGHT_W, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_W, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, KING_W, BISSHOP_W, KNIGHT_W, VOID); trace("#383"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 18) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, ROOK_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, BISSHOP_B, VOID, VOID, VOID, KING_B, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_W, QUEEN_B, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_B, BISSHOP_W, PAWN_B, VOID, PAWN_B, VOID, VOID, PAWN_B); chessBoard[4] = new Array(PAWN_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[7] = new Array(ROOK_W, VOID, VOID, QUEEN_W, VOID, VOID, KING_W, VOID); trace("#186"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 19) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, QUEEN_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[2] = new Array(PAWN_W, VOID, VOID, PAWN_B, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KNIGHT_W, PAWN_B, VOID, KING_B, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, PAWN_B); chessBoard[5] = new Array(ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, KING_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#181"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 20) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[2] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, KING_W, PAWN_W); chessBoard[6] = new Array(PAWN_W, VOID, PAWN_W, VOID, ROOK_B, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#24"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 21) { chessBoard[0] = new Array(VOID, VOID, QUEEN_B, BISSHOP_B, QUEEN_W, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, PAWN_B, ROOK_B, VOID, PAWN_B, PAWN_B, KING_B); chessBoard[2] = new Array(VOID, KNIGHT_B, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[5] = new Array(VOID, PAWN_W, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, ROOK_W); chessBoard[7] = new Array(VOID, KING_W, VOID, VOID, VOID, BISSHOP_B, ROOK_B, VOID); trace("#4152"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 22) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_W, ROOK_B, VOID, ROOK_B, PAWN_W, VOID); chessBoard[2] = new Array(VOID, VOID, PAWN_W, PAWN_W, VOID, PAWN_W, PAWN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#1426"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 23) { chessBoard[0] = new Array(VOID, ROOK_B, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, ROOK_B); chessBoard[7] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, ROOK_W); trace("#2107"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 24) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); trace("#299"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 25) { chessBoard[0] = new Array(ROOK_B, KNIGHT_B, VOID, VOID, KING_B, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, VOID, PAWN_B, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, KNIGHT_W, VOID, VOID); chessBoard[6] = new Array(QUEEN_B, PAWN_W, PAWN_W, BISSHOP_W, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, KING_W, ROOK_W, VOID, VOID, VOID, ROOK_W); trace("#95"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 26) { chessBoard[0] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, KNIGHT_B, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, PAWN_B, VOID, QUEEN_B, PAWN_B, PAWN_B, VOID, KING_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, PAWN_W); chessBoard[5] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, PAWN_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, KING_W, VOID); chessBoard[7] = new Array(ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1779"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 27) { chessBoard[0] = new Array(ROOK_B, KNIGHT_B, BISSHOP_B, VOID, KING_B, VOID, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, PAWN_B, BISSHOP_B, KNIGHT_W, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, PAWN_W, VOID, VOID, VOID, PAWN_W); chessBoard[7] = new Array(ROOK_W, VOID, BISSHOP_W, VOID, KING_W, BISSHOP_W, VOID, QUEEN_B); trace("#210"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 28) { chessBoard[0] = new Array(VOID, VOID, VOID, ROOK_B, VOID, KING_B, VOID, VOID); chessBoard[1] = new Array(PAWN_B, BISSHOP_B, VOID, QUEEN_B, VOID, PAWN_B, PAWN_B, QUEEN_W); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, PAWN_B, BISSHOP_B, VOID, PAWN_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_W, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, BISSHOP_W, ROOK_B, VOID, ROOK_W, VOID, KING_W, VOID); trace("#34"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 29) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, BISSHOP_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, BISSHOP_B, VOID, VOID, QUEEN_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); trace("#59"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 30) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, ROOK_W); trace("#2174"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 31) { chessBoard[0] = new Array(VOID, VOID, ROOK_W, BISSHOP_B, KING_B, VOID, QUEEN_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, PAWN_B, VOID, PAWN_B, PAWN_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, PAWN_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, BISSHOP_W, KING_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#2451"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 32) { chessBoard[0] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(BISSHOP_B, VOID, VOID, QUEEN_B, VOID, ROOK_B, VOID, VOID); chessBoard[2] = new Array(PAWN_B, VOID, VOID, PAWN_W, QUEEN_W, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, PAWN_B, VOID, PAWN_B); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, PAWN_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, KING_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#175"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 33) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, ROOK_B, VOID, KING_B, VOID); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, VOID, QUEEN_B, PAWN_B, BISSHOP_B, VOID); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, PAWN_W, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, ROOK_W); trace("#657"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 34) { chessBoard[0] = new Array(VOID, VOID, VOID, ROOK_B, VOID, KNIGHT_B, VOID, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, PAWN_B); chessBoard[2] = new Array(PAWN_B, PAWN_B, VOID, VOID, VOID, QUEEN_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_B, QUEEN_W, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_W, VOID, PAWN_W, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, BISSHOP_B, VOID, VOID, ROOK_W, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#195"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 35) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[3] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, VOID, KING_B, VOID, PAWN_B, KNIGHT_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); trace("#1761"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 36) { chessBoard[0] = new Array(ROOK_B, VOID, ROOK_B, VOID, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, VOID, VOID, PAWN_B, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KNIGHT_B, BISSHOP_W, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, PAWN_W, ROOK_W); chessBoard[7] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1266"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 37) { chessBoard[0] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, ROOK_B, VOID, VOID, VOID, ROOK_B, KING_B); chessBoard[2] = new Array(VOID, QUEEN_B, VOID, VOID, PAWN_W, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, PAWN_B); chessBoard[4] = new Array(VOID, KNIGHT_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[6] = new Array(PAWN_W, VOID, VOID, QUEEN_W, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, KING_W); trace("#180"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 38) { chessBoard[0] = new Array(KING_B, ROOK_B, VOID, VOID, VOID, VOID, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, QUEEN_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, ROOK_W, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[7] = new Array(KING_W, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#883"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 39) { chessBoard[0] = new Array(ROOK_B, KNIGHT_B, BISSHOP_B, VOID, KING_B, BISSHOP_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, QUEEN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KNIGHT_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, BISSHOP_W, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, KING_W, ROOK_W, VOID, BISSHOP_W, KNIGHT_W, ROOK_W); trace("#174"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 40) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_B, VOID, ROOK_B); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[7] = new Array(VOID, ROOK_W, VOID, VOID, VOID, KNIGHT_W, VOID, KING_B); trace("#29"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 41) { chessBoard[0] = new Array(VOID, VOID, ROOK_B, VOID, ROOK_W, KNIGHT_B, VOID, KING_B); chessBoard[1] = new Array(VOID, PAWN_B, VOID, QUEEN_B, VOID, VOID, PAWN_B, PAWN_B); chessBoard[2] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[6] = new Array(PAWN_W, VOID, PAWN_W, VOID, QUEEN_W, PAWN_W, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#1682"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 42) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_B, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); trace("#2781"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 43) { chessBoard[0] = new Array(ROOK_B, KNIGHT_B, VOID, QUEEN_B, KING_B, BISSHOP_B, KNIGHT_B, ROOK_B); chessBoard[1] = new Array(PAWN_B, PAWN_B, PAWN_B, VOID, VOID, PAWN_B, PAWN_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, PAWN_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, VOID, PAWN_W, VOID, BISSHOP_B, VOID); chessBoard[5] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, PAWN_W, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(ROOK_W, VOID, BISSHOP_W, QUEEN_W, KING_W, VOID, VOID, ROOK_W); trace("#4099"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 44) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, QUEEN_B, KING_B, VOID, ROOK_B, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[2] = new Array(BISSHOP_B, PAWN_B, VOID, VOID, PAWN_B, QUEEN_W, PAWN_B, VOID); chessBoard[3] = new Array(VOID, KNIGHT_B, VOID, PAWN_B, PAWN_W, VOID, BISSHOP_W, PAWN_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, KNIGHT_W, VOID); chessBoard[6] = new Array(PAWN_W, VOID, ROOK_W, VOID, VOID, PAWN_W, BISSHOP_W, VOID); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, KING_W, VOID); trace("#4147"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 45) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID, PAWN_W); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_W, PAWN_B, KING_B, VOID, KING_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, KNIGHT_W, VOID); chessBoard[6] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#1271"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 46) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, PAWN_B, VOID, VOID, PAWN_B, VOID, KING_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, ROOK_B, ROOK_W, BISSHOP_W, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_B, QUEEN_B, VOID, VOID, KNIGHT_B, VOID, PAWN_W, PAWN_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); trace("#205"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 47) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, KING_B, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#4211"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 48) { chessBoard[0] = new Array(QUEEN_B, VOID, VOID, QUEEN_B, VOID, VOID, KNIGHT_B, KNIGHT_B); chessBoard[1] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, PAWN_W, PAWN_B, KING_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, PAWN_B, PAWN_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#1910"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 49) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, BISSHOP_B, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, BISSHOP_B); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_B); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, VOID, KING_W, VOID, VOID); trace("#3332"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 50) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, VOID, KING_B, VOID, ROOK_B); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, ROOK_W, PAWN_B, PAWN_B, PAWN_B); chessBoard[2] = new Array(KNIGHT_B, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, QUEEN_B, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, VOID, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, KING_W); trace("#32"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } } function initPuzzleEasy100() { if (initPuzzleNum == 51) { chessBoard[0] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[1] = new Array(VOID, VOID, KNIGHT_W, PAWN_B, KING_B, PAWN_B, ROOK_W, VOID); chessBoard[2] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_W, KING_W, PAWN_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#2081"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 52) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, QUEEN_B, KING_B, BISSHOP_B, QUEEN_W, VOID); chessBoard[1] = new Array(PAWN_B, BISSHOP_B, VOID, KNIGHT_B, VOID, VOID, PAWN_B, VOID); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, VOID, ROOK_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, PAWN_B); chessBoard[4] = new Array(PAWN_W, PAWN_B, VOID, PAWN_W, VOID, VOID, VOID, KNIGHT_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, PAWN_W, PAWN_W, PAWN_W); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, VOID, ROOK_W, KING_W, VOID); trace("#197"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 53) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, KNIGHT_B, VOID, VOID, VOID, PAWN_W, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, PAWN_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[6] = new Array(KING_W, VOID, VOID, VOID, KNIGHT_W, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); trace("#2967"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 54) { chessBoard[0] = new Array(KING_B, VOID, ROOK_B, VOID, VOID, BISSHOP_B, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, PAWN_B, VOID, VOID, ROOK_B, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, ROOK_W, KNIGHT_W, PAWN_B, VOID, PAWN_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[5] = new Array(BISSHOP_W, VOID, PAWN_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, ROOK_W, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#2239"); mateIn = 3; board_mc.mateIn_txt.text = "Mate in " + mateIn; } if (initPuzzleNum == 55) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_B, VOID); chessBoard[2] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B); trace("#"); } if (initPuzzleNum == 56) { chessBoard[0] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[2] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, ROOK_B, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 57) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, VOID, PAWN_W, VOID, VOID, KNIGHT_B, KNIGHT_B, VOID); chessBoard[7] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); trace("#"); } if (initPuzzleNum == 58) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_W, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); chessBoard[5] = new Array(KNIGHT_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 59) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[2] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 60) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, BISSHOP_B, PAWN_W, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 61) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, QUEEN_W, ROOK_W, VOID, KING_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, QUEEN_B, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 62) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_B, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 63) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KING_W, PAWN_B, BISSHOP_W, BISSHOP_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 64) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_B, VOID, PAWN_W, VOID, BISSHOP_W, VOID); chessBoard[7] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 65) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KNIGHT_W, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 66) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_W, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 67) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KNIGHT_W, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 68) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 69) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, PAWN_B, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 70) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(QUEEN_W, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[7] = new Array(QUEEN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 71) { chessBoard[0] = new Array(ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KNIGHT_W, PAWN_B, ROOK_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 72) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_B, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 73) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, KNIGHT_W, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 74) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[4] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, ROOK_W, PAWN_B, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 75) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, PAWN_B, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 76) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_B, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[5] = new Array(VOID, PAWN_B, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 77) { chessBoard[0] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KNIGHT_W, BISSHOP_W, KING_B, VOID, VOID, KING_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 78) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, VOID, VOID, BISSHOP_W, VOID, BISSHOP_B, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, ROOK_W); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 79) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_W, PAWN_B, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(BISSHOP_B, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 80) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, BISSHOP_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, VOID, ROOK_W, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 81) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, PAWN_B, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 82) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[7] = new Array(VOID, VOID, KING_B, QUEEN_B, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 83) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, VOID, ROOK_W, KING_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, ROOK_W, KNIGHT_W, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 84) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_W, VOID, QUEEN_W, VOID, VOID); chessBoard[5] = new Array(VOID, KNIGHT_W, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 85) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[1] = new Array(VOID, BISSHOP_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); trace("#"); } if (initPuzzleNum == 86) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KING_W, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID); chessBoard[6] = new Array(BISSHOP_W, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 87) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[6] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, BISSHOP_W, KING_W, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 88) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, BISSHOP_W, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_W, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, BISSHOP_W, VOID); trace("#"); } if (initPuzzleNum == 89) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, PAWN_B); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, KNIGHT_W, KING_W, VOID, VOID, ROOK_W, VOID); trace("#"); } if (initPuzzleNum == 90) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, BISSHOP_W, KING_B, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 91) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_B, KING_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_B, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 92) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_W, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KNIGHT_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 93) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KNIGHT_W, VOID, KING_B, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[7] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); trace("#"); } if (initPuzzleNum == 94) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_B, PAWN_B, PAWN_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 95) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(KING_W, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); trace("#"); } if (initPuzzleNum == 96) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(KING_W, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); trace("#"); } if (initPuzzleNum == 97) { chessBoard[0] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_W, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, BISSHOP_W, VOID); trace("#"); } if (initPuzzleNum == 98) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KNIGHT_W, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, KNIGHT_W, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 99) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, ROOK_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, KING_W, VOID, VOID, BISSHOP_B, VOID, VOID); trace("#"); } if (initPuzzleNum == 100) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[2] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(QUEEN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } } function initPuzzleEasy150() { if (initPuzzleNum == 101) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, KING_W, VOID); chessBoard[6] = new Array(VOID, QUEEN_W, VOID, VOID, PAWN_W, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 102) { chessBoard[0] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, PAWN_W, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, KING_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 103) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_B, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 104) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, KNIGHT_W, VOID, VOID, BISSHOP_W); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 105) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_B, VOID, VOID); chessBoard[4] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[7] = new Array(KING_B, VOID, KING_W, VOID, ROOK_W, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 106) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KING_W, VOID, VOID, ROOK_W, VOID, BISSHOP_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KING_B, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 107) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, QUEEN_W); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, PAWN_W); chessBoard[6] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 108) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KNIGHT_W, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, BISSHOP_W, KING_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 109) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_W, KNIGHT_W, VOID, VOID, QUEEN_B, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 110) { chessBoard[0] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, KNIGHT_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[7] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 111) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KNIGHT_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_W, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 112) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_W, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, KNIGHT_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 113) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_B, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 114) { chessBoard[0] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 115) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, BISSHOP_W, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 116) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_W, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, BISSHOP_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 117) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, KING_B); chessBoard[4] = new Array(VOID, VOID, QUEEN_W, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, PAWN_B); chessBoard[6] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 118) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[5] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_B); chessBoard[6] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, ROOK_B, QUEEN_W); trace("#"); } if (initPuzzleNum == 119) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, QUEEN_B); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 120) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, BISSHOP_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, KNIGHT_W); chessBoard[3] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, BISSHOP_W, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 121) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, PAWN_B); chessBoard[6] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 122) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KING_B, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, QUEEN_W, VOID); trace("#"); } if (initPuzzleNum == 123) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KING_B, BISSHOP_B, VOID, VOID, VOID, QUEEN_W); chessBoard[7] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 124) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_W, KNIGHT_W, VOID, KING_B); chessBoard[4] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); trace("#"); } if (initPuzzleNum == 125) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 126) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, PAWN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 127) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, BISSHOP_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 128) { chessBoard[0] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_B, ROOK_W, PAWN_B, VOID, VOID); chessBoard[5] = new Array(VOID, KING_W, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 129) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, PAWN_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, BISSHOP_B); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 130) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, QUEEN_W, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KNIGHT_W, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 131) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[4] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KING_W, KNIGHT_W, KING_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } } function initPuzzleModerate() { mateIn = 4; board_mc.mateIn_txt.text = "Mate in " + mateIn; initPuzzleNum = Number(menuha_mc.numProbl_txt.text); if ((initPuzzleNum > 0) && (initPuzzleNum <= 50)) { initPuzzleModerate50(); } if ((initPuzzleNum > 50) && (initPuzzleNum <= 100)) { initPuzzleModerate100(); } if ((initPuzzleNum > 100) && (initPuzzleNum <= 150)) { initPuzzleModerate150(); } } function initPuzzleModerate50() { if (initPuzzleNum == 1) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 2) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[3] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 3) { chessBoard[0] = new Array(BISSHOP_W, VOID, VOID, VOID, KING_W, QUEEN_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 4) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[3] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 5) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_B, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, KING_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 6) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); chessBoard[1] = new Array(VOID, KING_B, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); } if (initPuzzleNum == 7) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_W, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(ROOK_W, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[6] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 8) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 9) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, ROOK_W, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); } if (initPuzzleNum == 10) { chessBoard[0] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 11) { chessBoard[0] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 12) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[1] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 13) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 14) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_B, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 15) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); } if (initPuzzleNum == 16) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_W, VOID, KING_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 17) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 18) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 19) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); } if (initPuzzleNum == 20) { chessBoard[0] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_W, PAWN_W, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[3] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 21) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 22) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KNIGHT_W, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); } if (initPuzzleNum == 23) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[2] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); } if (initPuzzleNum == 24) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, KING_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 25) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_W, VOID, KING_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); } if (initPuzzleNum == 26) { chessBoard[0] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, KNIGHT_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 27) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, KNIGHT_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); } if (initPuzzleNum == 28) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KNIGHT_W, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 29) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, BISSHOP_W, VOID, KING_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 30) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 31) { chessBoard[0] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, KING_B, PAWN_B, VOID, VOID); chessBoard[2] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 32) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, BISSHOP_W, KING_W, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 33) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, KING_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 34) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_B, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[3] = new Array(KING_B, PAWN_W, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#3002"); } if (initPuzzleNum == 35) { chessBoard[0] = new Array(VOID, VOID, KING_B, VOID, VOID, KING_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, BISSHOP_W, KNIGHT_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 36) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, VOID, KING_W, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 37) { chessBoard[0] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 38) { chessBoard[0] = new Array(VOID, VOID, KING_B, BISSHOP_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, BISSHOP_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 39) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(BISSHOP_W, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, BISSHOP_B, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 40) { chessBoard[0] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); } if (initPuzzleNum == 41) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, ROOK_W, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KNIGHT_B, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 42) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, BISSHOP_W, KING_B, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 43) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(BISSHOP_W, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_B, VOID, KING_W, VOID, VOID, VOID); } if (initPuzzleNum == 44) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, VOID, BISSHOP_W, BISSHOP_W, BISSHOP_W, BISSHOP_W, KING_W); } if (initPuzzleNum == 45) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, KNIGHT_W, KNIGHT_W, KNIGHT_W, KNIGHT_W, VOID, KING_W); } if (initPuzzleNum == 46) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, KNIGHT_W, KNIGHT_W, KNIGHT_W, VOID, BISSHOP_W, KING_W); } if (initPuzzleNum == 47) { chessBoard[0] = new Array(ROOK_W, BISSHOP_W, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, KING_B, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 48) { chessBoard[0] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, KING_B, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, PAWN_W, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 49) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KING_W, KNIGHT_W, KING_B, BISSHOP_B, VOID, QUEEN_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 50) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(BISSHOP_W, VOID, KING_W, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[6] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } } function initPuzzleModerate100() { if (initPuzzleNum == 51) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[5] = new Array(KING_W, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 52) { chessBoard[0] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_W, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[4] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 53) { chessBoard[0] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KING_B, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 54) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, ROOK_W, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KING_B, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 55) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 56) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[5] = new Array(KING_B, VOID, VOID, VOID, KING_W, VOID, PAWN_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); } if (initPuzzleNum == 57) { chessBoard[0] = new Array(VOID, VOID, KNIGHT_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 58) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); } if (initPuzzleNum == 59) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_B, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 60) { chessBoard[0] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(ROOK_W, VOID, PAWN_W, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 61) { chessBoard[0] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, BISSHOP_W, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 62) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[4] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 63) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KNIGHT_W, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[4] = new Array(KING_W, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 64) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 65) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(ROOK_W, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 66) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[4] = new Array(VOID, VOID, KING_B, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 67) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, KNIGHT_W, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 68) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, KING_W, ROOK_W, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_W, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 69) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[3] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 70) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[2] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, ROOK_W, VOID, VOID, VOID); } if (initPuzzleNum == 71) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KING_W, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, PAWN_B, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 72) { chessBoard[0] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, KNIGHT_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 73) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, QUEEN_W, VOID, KING_W, VOID, VOID, VOID, KNIGHT_B); chessBoard[2] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 74) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KING_B, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 75) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[4] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 76) { chessBoard[0] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[2] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, BISSHOP_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 77) { chessBoard[0] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KING_B, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, PAWN_W, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 78) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KNIGHT_W, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KING_W, KNIGHT_W, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 79) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KNIGHT_W, KNIGHT_W, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, KNIGHT_W, KING_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 80) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(ROOK_W, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_B, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, VOID, KING_W, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 81) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, VOID, PAWN_B, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); } if (initPuzzleNum == 82) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KNIGHT_W, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, KING_B, VOID, VOID, VOID, PAWN_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); } if (initPuzzleNum == 83) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KNIGHT_W, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, KING_B, VOID, VOID, VOID, PAWN_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); } if (initPuzzleNum == 84) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, ROOK_W, KNIGHT_B, VOID, VOID); chessBoard[2] = new Array(BISSHOP_W, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 85) { chessBoard[0] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KNIGHT_W, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, BISSHOP_W, PAWN_W, VOID, KING_W, VOID, VOID, VOID); chessBoard[5] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 86) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_B, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, VOID, VOID, KING_W, VOID, VOID, BISSHOP_B); } if (initPuzzleNum == 87) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KING_W, VOID, VOID, KNIGHT_W, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 88) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, BISSHOP_B, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 89) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, QUEEN_W, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, BISSHOP_B, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 90) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, BISSHOP_B); chessBoard[6] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 91) { chessBoard[0] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_B, KNIGHT_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 92) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, ROOK_W, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(ROOK_W, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 93) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(BISSHOP_W, VOID, KING_B, VOID, KING_W, VOID, VOID, VOID); } if (initPuzzleNum == 94) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, KING_B, PAWN_B, KING_W, VOID, VOID, VOID); chessBoard[2] = new Array(BISSHOP_W, VOID, VOID, KNIGHT_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 95) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_B, KING_W, ROOK_W, VOID, VOID, BISSHOP_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 96) { chessBoard[0] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KNIGHT_B, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); } if (initPuzzleNum == 97) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KING_W, VOID, ROOK_W, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 98) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, BISSHOP_W, KING_B, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); } if (initPuzzleNum == 99) { chessBoard[0] = new Array(QUEEN_W, BISSHOP_W, ROOK_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); } if (initPuzzleNum == 100) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[6] = new Array(VOID, VOID, ROOK_W, ROOK_W, VOID, VOID, KING_W, VOID); chessBoard[7] = new Array(ROOK_B, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); } } function initPuzzleModerate150() { if (initPuzzleNum == 101) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 102) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_W, VOID, VOID, ROOK_W, VOID, ROOK_W); chessBoard[2] = new Array(VOID, PAWN_W, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_B, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 103) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, BISSHOP_W, PAWN_W, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[6] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 104) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KNIGHT_W, VOID, VOID, KNIGHT_W, PAWN_W, VOID, KNIGHT_B, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 105) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, KNIGHT_W, BISSHOP_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, VOID, KNIGHT_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 106) { chessBoard[0] = new Array(VOID, VOID, BISSHOP_B, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[1] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 107) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, KING_B, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, ROOK_W, VOID, BISSHOP_W, VOID, VOID, VOID); } if (initPuzzleNum == 108) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, VOID, VOID, KING_W, VOID, VOID, VOID); } if (initPuzzleNum == 109) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_B, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(BISSHOP_W, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 110) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, ROOK_W, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KNIGHT_B, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[5] = new Array(KING_B, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 111) { chessBoard[0] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 112) { chessBoard[0] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_B, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, PAWN_W, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 113) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KING_W, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 114) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, KNIGHT_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KING_W, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } if (initPuzzleNum == 115) { chessBoard[0] = new Array(VOID, ROOK_W, BISSHOP_W, KING_B, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_B, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); } } function initPuzzleDifficult() { mateIn = 5; board_mc.mateIn_txt.text = "Mate in " + mateIn; initPuzzleNum = Number(menuha_mc.numProbl_txt.text); if ((initPuzzleNum > 0) && (initPuzzleNum <= 50)) { initPuzzleDifficult50(); } if ((initPuzzleNum > 50) && (initPuzzleNum <= 100)) { initPuzzleDifficult100(); } if ((initPuzzleNum > 100) && (initPuzzleNum <= 150)) { initPuzzleDifficult150(); } } function initPuzzleDifficult50() { if (initPuzzleNum == 1) { chessBoard[0] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(QUEEN_W, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 2) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KNIGHT_W, KING_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 3) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KNIGHT_W, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 4) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 5) { chessBoard[0] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, KING_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 6) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 7) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, QUEEN_W, VOID, VOID, PAWN_W, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 8) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 9) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_B, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 10) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, KNIGHT_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 11) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, BISSHOP_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); trace("#"); } if (initPuzzleNum == 12) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_W, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 13) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[2] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 14) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, KING_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 15) { chessBoard[0] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, KING_B); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 16) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, QUEEN_W, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 17) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, BISSHOP_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#"); } if (initPuzzleNum == 18) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_W, KNIGHT_W, BISSHOP_W, VOID, ROOK_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 19) { chessBoard[0] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 20) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[4] = new Array(ROOK_W, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 21) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 22) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, KNIGHT_W, VOID, VOID); chessBoard[2] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 23) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 24) { chessBoard[0] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 25) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, ROOK_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, BISSHOP_B); trace("#"); } if (initPuzzleNum == 26) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(KING_B, ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 27) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, PAWN_B); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, BISSHOP_W); trace("#"); } if (initPuzzleNum == 28) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, KNIGHT_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 29) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KNIGHT_B, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, KING_W, VOID, VOID, ROOK_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 30) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, BISSHOP_W, KNIGHT_W, VOID); trace("#"); } if (initPuzzleNum == 31) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, PAWN_B, KING_B, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, KNIGHT_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 32) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, ROOK_W); chessBoard[1] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[3] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 33) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, ROOK_W, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 34) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, PAWN_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, PAWN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 35) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, PAWN_W, BISSHOP_W, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 36) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[4] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); trace("#"); } if (initPuzzleNum == 37) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, PAWN_B, PAWN_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KING_W, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 38) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, KING_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 39) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KING_W, VOID, KING_B, PAWN_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, ROOK_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 40) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, ROOK_W, KING_W, ROOK_W, VOID); chessBoard[7] = new Array(KING_B, BISSHOP_B, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 41) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, ROOK_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, PAWN_B, ROOK_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_W, VOID, KING_B, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 42) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 43) { chessBoard[0] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, BISSHOP_W); trace("#"); } if (initPuzzleNum == 44) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_W, KNIGHT_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 45) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 46) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, KING_W, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 47) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(ROOK_W, VOID, VOID, BISSHOP_W, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 48) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, KNIGHT_W, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 49) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, KNIGHT_W, KNIGHT_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, BISSHOP_W, BISSHOP_W, VOID, VOID, KING_W, VOID); trace("#"); } if (initPuzzleNum == 50) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KING_W, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } } function initPuzzleDifficult100() { if (initPuzzleNum == 51) { chessBoard[0] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, PAWN_W, KING_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 52) { chessBoard[0] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[4] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); trace("#"); } if (initPuzzleNum == 53) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(BISSHOP_W, VOID, KING_B, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 54) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KING_W, PAWN_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 55) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, QUEEN_B); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, KING_B); trace("#"); } if (initPuzzleNum == 56) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_W, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 57) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 58) { chessBoard[0] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, KING_B); trace("#"); } if (initPuzzleNum == 59) { chessBoard[0] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 60) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, ROOK_W, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 61) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); trace("#"); } if (initPuzzleNum == 62) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); trace("#"); } if (initPuzzleNum == 63) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[2] = new Array(KNIGHT_W, VOID, KING_B, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); trace("#"); } if (initPuzzleNum == 64) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, BISSHOP_W, KING_B, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KNIGHT_W, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 65) { chessBoard[0] = new Array(KING_W, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 66) { chessBoard[0] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(BISSHOP_B, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 67) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[5] = new Array(VOID, BISSHOP_W, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 68) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, BISSHOP_W); chessBoard[5] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, KING_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); trace("#"); } if (initPuzzleNum == 69) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_B, VOID, BISSHOP_W, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 70) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KNIGHT_W, VOID, KNIGHT_W, VOID, VOID, KING_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, ROOK_B, KING_B, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 71) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(ROOK_W, KNIGHT_W, VOID, VOID, KING_W, BISSHOP_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 72) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[5] = new Array(VOID, QUEEN_B, VOID, VOID, VOID, VOID, ROOK_W, KING_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); trace("#"); } if (initPuzzleNum == 73) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_W, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 74) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, PAWN_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 75) { chessBoard[0] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); trace("#"); } if (initPuzzleNum == 76) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(ROOK_B, VOID, VOID, VOID, VOID, VOID, ROOK_W, KING_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, BISSHOP_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); trace("#"); } if (initPuzzleNum == 77) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(KING_B, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 78) { chessBoard[0] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_B, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 79) { chessBoard[0] = new Array(KING_B, ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(ROOK_B, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, QUEEN_W, VOID, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 80) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_W, KNIGHT_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KNIGHT_W, KING_B, VOID, VOID, KNIGHT_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 81) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, PAWN_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KING_W, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 82) { chessBoard[0] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, ROOK_W, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 83) { chessBoard[0] = new Array(KING_B, BISSHOP_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); trace("#"); } if (initPuzzleNum == 84) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, BISSHOP_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, KING_B); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 85) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, PAWN_W, KING_W, VOID, KING_B); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 86) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KING_W, PAWN_W, KING_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, ROOK_W, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 87) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, PAWN_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[5] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, BISSHOP_B, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 88) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, ROOK_W, VOID, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 89) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 90) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, KING_W, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 91) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, KNIGHT_W, VOID, KING_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 92) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); chessBoard[3] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 93) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, BISSHOP_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[5] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 94) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[5] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 95) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, KNIGHT_W, KING_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_W, KING_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 96) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[6] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 97) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, PAWN_W, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 98) { chessBoard[0] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[7] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 99) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, ROOK_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_W, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 100) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } } function initPuzzleDifficult150() { if (initPuzzleNum == 101) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, KNIGHT_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, KNIGHT_W, VOID, ROOK_W); trace("#"); } if (initPuzzleNum == 102) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KNIGHT_W, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 103) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KING_W, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KNIGHT_W, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 104) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KNIGHT_W, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 105) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_B, KNIGHT_W, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 106) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 107) { chessBoard[0] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 108) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_B, PAWN_B, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[5] = new Array(VOID, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 109) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_W, BISSHOP_W, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_B, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); trace("#"); } if (initPuzzleNum == 110) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 111) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_W, KING_B, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 112) { chessBoard[0] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 113) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[3] = new Array(VOID, KING_B, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 114) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(ROOK_W, VOID, VOID, VOID, KING_W, VOID, KNIGHT_W, VOID); trace("#"); } if (initPuzzleNum == 115) { chessBoard[0] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 116) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, PAWN_B, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_B, BISSHOP_W, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 117) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_B, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 118) { chessBoard[0] = new Array(KING_B, ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(ROOK_B, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, QUEEN_W, VOID, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 119) { chessBoard[0] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_W, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 120) { chessBoard[0] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 121) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, KNIGHT_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, KING_B); trace("#"); } if (initPuzzleNum == 122) { chessBoard[0] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 123) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[1] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KNIGHT_W, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } } function initPuzzleFiendish() { mateIn = 6; board_mc.mateIn_txt.text = "Mate in " + mateIn; initPuzzleNum = Number(menuha_mc.numProbl_txt.text); if ((initPuzzleNum > 0) && (initPuzzleNum <= 50)) { initPuzzleFiendish50(); } if ((initPuzzleNum > 50) && (initPuzzleNum <= 100)) { initPuzzleFiendish100(); } } function initPuzzleFiendish50() { if (initPuzzleNum == 1) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(BISSHOP_W, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 2) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 3) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID); chessBoard[5] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 4) { chessBoard[0] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 5) { chessBoard[0] = new Array(VOID, KING_B, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_W, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 6) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_B, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, KNIGHT_W, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 7) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KING_B, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); trace("#"); } if (initPuzzleNum == 8) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(QUEEN_W, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, BISSHOP_B, VOID, KING_B, VOID, VOID); trace("#"); } if (initPuzzleNum == 9) { chessBoard[0] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_W, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(BISSHOP_W, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 10) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 11) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, ROOK_W, VOID, ROOK_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 12) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_B, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(BISSHOP_B, KING_B, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 13) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KNIGHT_W, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_B, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 14) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 15) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, PAWN_W); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 16) { chessBoard[0] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_B, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_W, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 17) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_W, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 18) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[4] = new Array(VOID, KING_B, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 19) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_B, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 20) { chessBoard[0] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 21) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[3] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 22) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_W, VOID, VOID, BISSHOP_W, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, PAWN_W, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 23) { chessBoard[0] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(KING_B, PAWN_W, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 24) { chessBoard[0] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, KING_B, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 25) { chessBoard[0] = new Array(KING_B, VOID, KING_W, VOID, KNIGHT_B, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_W, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 26) { chessBoard[0] = new Array(KING_B, BISSHOP_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(PAWN_W, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 27) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[4] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 28) { chessBoard[0] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, BISSHOP_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, BISSHOP_B, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 29) { chessBoard[0] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(KING_W, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 30) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[6] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 31) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_B, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 32) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, KNIGHT_W, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 33) { chessBoard[0] = new Array(VOID, ROOK_W, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 34) { chessBoard[0] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[3] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 35) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, BISSHOP_W, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 36) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, BISSHOP_W, KING_B); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, KNIGHT_B, VOID, VOID, VOID, KNIGHT_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 37) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(PAWN_B, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(KING_B, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 38) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_W, VOID, KING_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, KNIGHT_W, BISSHOP_W, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 39) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[4] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 40) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_B, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 41) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[5] = new Array(KNIGHT_W, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 42) { chessBoard[0] = new Array(VOID, VOID, VOID, KING_W, KNIGHT_W, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, KNIGHT_W, VOID, VOID, KNIGHT_W, KING_B, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 43) { chessBoard[0] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID, KING_W); trace("#"); } if (initPuzzleNum == 44) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_B, KING_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 45) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, KNIGHT_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, BISSHOP_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 46) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KING_W, VOID, KING_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, KNIGHT_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 47) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[3] = new Array(VOID, VOID, KING_B, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 48) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, ROOK_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_B, VOID, VOID); trace("#"); } if (initPuzzleNum == 49) { chessBoard[0] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); chessBoard[3] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 50) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, PAWN_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } } function initPuzzleFiendish100() { if (initPuzzleNum == 51) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(BISSHOP_W, VOID, VOID, KING_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 52) { chessBoard[0] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, QUEEN_B, KING_B, BISSHOP_B); chessBoard[1] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 53) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_B, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KNIGHT_B, KING_W, VOID, KING_B); trace("#"); } if (initPuzzleNum == 54) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, KNIGHT_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 55) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID, KNIGHT_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, PAWN_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 56) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, KING_B, VOID, KING_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 57) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, KING_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, KNIGHT_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); trace("#"); } if (initPuzzleNum == 58) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, KING_B, VOID); trace("#"); } if (initPuzzleNum == 59) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, PAWN_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, PAWN_W, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 60) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_B, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, PAWN_W, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 61) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(BISSHOP_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, BISSHOP_W, VOID, KING_B, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 62) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(PAWN_B, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, VOID, VOID, VOID, VOID, QUEEN_W, VOID, VOID); chessBoard[7] = new Array(VOID, KING_W, VOID, KING_B, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 63) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, KING_W, VOID, VOID); chessBoard[6] = new Array(KNIGHT_W, VOID, PAWN_W, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 64) { chessBoard[0] = new Array(VOID, VOID, QUEEN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, ROOK_W); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, KING_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); trace("#"); } if (initPuzzleNum == 65) { chessBoard[0] = new Array(KNIGHT_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, BISSHOP_W, VOID, VOID, KING_B, VOID, BISSHOP_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 66) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(QUEEN_B, VOID, VOID, VOID, VOID, VOID, ROOK_W, KING_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); trace("#"); } if (initPuzzleNum == 67) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, BISSHOP_B, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, ROOK_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); trace("#"); } if (initPuzzleNum == 68) { chessBoard[0] = new Array(BISSHOP_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID); chessBoard[3] = new Array(VOID, KING_W, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, PAWN_W, PAWN_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 69) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, KNIGHT_W, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 70) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, QUEEN_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, ROOK_B, BISSHOP_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_B); trace("#"); } if (initPuzzleNum == 71) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, BISSHOP_W, PAWN_W, KING_B, VOID, KING_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 72) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, PAWN_W, KING_B, VOID, KNIGHT_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 73) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KING_W, PAWN_W, KING_B, VOID, VOID, BISSHOP_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 74) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, BISSHOP_W, KNIGHT_W); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, KING_W, VOID, KNIGHT_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_W, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 75) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, ROOK_W, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID); trace("#"); } if (initPuzzleNum == 76) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, PAWN_B); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KING_W); trace("#"); } if (initPuzzleNum == 77) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, KNIGHT_W, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, KNIGHT_W, KING_B, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 78) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[5] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 79) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, KING_W, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, ROOK_W, VOID, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, KNIGHT_W, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 80) { chessBoard[0] = new Array(BISSHOP_W, VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, KNIGHT_W); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, KING_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 81) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, PAWN_B, VOID, VOID, PAWN_B, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, PAWN_W, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_W, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 82) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, KNIGHT_W, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, VOID, PAWN_W); chessBoard[6] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[7] = new Array(VOID, VOID, VOID, KING_W, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 83) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, PAWN_B, VOID, VOID, PAWN_B); chessBoard[6] = new Array(VOID, VOID, QUEEN_W, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, KING_B, VOID, KING_W, VOID); trace("#"); } if (initPuzzleNum == 84) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, BISSHOP_W); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, KING_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, ROOK_W, VOID, VOID, VOID, VOID, PAWN_W); chessBoard[7] = new Array(VOID, KING_B, VOID, VOID, VOID, VOID, ROOK_B, VOID); trace("#"); } if (initPuzzleNum == 85) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_B, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, PAWN_W, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_W, PAWN_W, VOID, VOID, VOID, VOID, KING_W, VOID); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 86) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(PAWN_B, PAWN_B, BISSHOP_B, KING_W, VOID, VOID, VOID, KNIGHT_W); chessBoard[7] = new Array(BISSHOP_B, KING_B, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 87) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(KING_B, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, VOID, KING_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, VOID, PAWN_W, VOID, VOID, VOID, VOID, ROOK_W); chessBoard[7] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 88) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, QUEEN_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, PAWN_B, BISSHOP_B); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, ROOK_B, VOID, VOID, VOID, VOID, VOID, VOID); trace("#"); } if (initPuzzleNum == 89) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(QUEEN_W, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(VOID, PAWN_B, VOID, PAWN_W, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(VOID, KING_B, VOID, VOID, VOID, KING_W, VOID, VOID); trace("#"); } if (initPuzzleNum == 90) { chessBoard[0] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[1] = new Array(VOID, VOID, PAWN_B, VOID, VOID, VOID, VOID, VOID); chessBoard[2] = new Array(VOID, VOID, VOID, VOID, BISSHOP_W, VOID, VOID, VOID); chessBoard[3] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[4] = new Array(VOID, VOID, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[5] = new Array(KING_W, VOID, BISSHOP_W, VOID, VOID, VOID, VOID, VOID); chessBoard[6] = new Array(VOID, ROOK_W, VOID, VOID, VOID, VOID, VOID, VOID); chessBoard[7] = new Array(KING_B, VOID, QUEEN_B, VOID, VOID, VOID, VOID, VOID); trace("#"); } } function initMemoryBoard() { if (memory == 1) { chessBoard[0] = chessBoard_M_1[0].concat(); chessBoard[1] = chessBoard_M_1[1].concat(); chessBoard[2] = chessBoard_M_1[2].concat(); chessBoard[3] = chessBoard_M_1[3].concat(); chessBoard[4] = chessBoard_M_1[4].concat(); chessBoard[5] = chessBoard_M_1[5].concat(); chessBoard[6] = chessBoard_M_1[6].concat(); chessBoard[7] = chessBoard_M_1[7].concat(); trace("! initMemoryBoard() = " + chessBoard_M_1[6]); } else if (memory == 2) { chessBoard[0] = chessBoard_M_2[0].concat(); chessBoard[1] = chessBoard_M_2[1].concat(); chessBoard[2] = chessBoard_M_2[2].concat(); chessBoard[3] = chessBoard_M_2[3].concat(); chessBoard[4] = chessBoard_M_2[4].concat(); chessBoard[5] = chessBoard_M_2[5].concat(); chessBoard[6] = chessBoard_M_2[6].concat(); chessBoard[7] = chessBoard_M_2[7].concat(); trace("!! initMemoryBoard() = " + chessBoard_M_2[6]); } else if (memory == 3) { chessBoard[0] = chessBoard_M_3[0].concat(); chessBoard[1] = chessBoard_M_3[1].concat(); chessBoard[2] = chessBoard_M_3[2].concat(); chessBoard[3] = chessBoard_M_3[3].concat(); chessBoard[4] = chessBoard_M_3[4].concat(); chessBoard[5] = chessBoard_M_3[5].concat(); chessBoard[6] = chessBoard_M_3[6].concat(); chessBoard[7] = chessBoard_M_3[7].concat(); } else if (memory == 4) { chessBoard[0] = chessBoard_M_4[0].concat(); chessBoard[1] = chessBoard_M_4[1].concat(); chessBoard[2] = chessBoard_M_4[2].concat(); chessBoard[3] = chessBoard_M_4[3].concat(); chessBoard[4] = chessBoard_M_4[4].concat(); chessBoard[5] = chessBoard_M_4[5].concat(); chessBoard[6] = chessBoard_M_4[6].concat(); chessBoard[7] = chessBoard_M_4[7].concat(); } else if (memory == 5) { chessBoard[0] = chessBoard_M_5[0].concat(); chessBoard[1] = chessBoard_M_5[1].concat(); chessBoard[2] = chessBoard_M_5[2].concat(); chessBoard[3] = chessBoard_M_5[3].concat(); chessBoard[4] = chessBoard_M_5[4].concat(); chessBoard[5] = chessBoard_M_5[5].concat(); chessBoard[6] = chessBoard_M_5[6].concat(); chessBoard[7] = chessBoard_M_5[7].concat(); } else if (memory == 6) { chessBoard[0] = chessBoard_M_6[0].concat(); chessBoard[1] = chessBoard_M_6[1].concat(); chessBoard[2] = chessBoard_M_6[2].concat(); chessBoard[3] = chessBoard_M_6[3].concat(); chessBoard[4] = chessBoard_M_6[4].concat(); chessBoard[5] = chessBoard_M_6[5].concat(); chessBoard[6] = chessBoard_M_6[6].concat(); chessBoard[7] = chessBoard_M_6[7].concat(); } } function initMemory() { if (memory == 1) { chessBoard_M_1[0] = chessBoard[0].concat(); chessBoard_M_1[1] = chessBoard[1].concat(); chessBoard_M_1[2] = chessBoard[2].concat(); chessBoard_M_1[3] = chessBoard[3].concat(); chessBoard_M_1[4] = chessBoard[4].concat(); chessBoard_M_1[5] = chessBoard[5].concat(); chessBoard_M_1[6] = chessBoard[6].concat(); chessBoard_M_1[7] = chessBoard[7].concat(); trace("! initMemory() = " + chessBoard_M_1[6]); } else if (memory == 2) { chessBoard_M_2[0] = chessBoard[0].concat(); chessBoard_M_2[1] = chessBoard[1].concat(); chessBoard_M_2[2] = chessBoard[2].concat(); chessBoard_M_2[3] = chessBoard[3].concat(); chessBoard_M_2[4] = chessBoard[4].concat(); chessBoard_M_2[5] = chessBoard[5].concat(); chessBoard_M_2[6] = chessBoard[6].concat(); chessBoard_M_2[7] = chessBoard[7].concat(); trace("!! initMemory() = " + chessBoard_M_2[6]); } else if (memory == 3) { chessBoard_M_3[0] = chessBoard[0].concat(); chessBoard_M_3[1] = chessBoard[1].concat(); chessBoard_M_3[2] = chessBoard[2].concat(); chessBoard_M_3[3] = chessBoard[3].concat(); chessBoard_M_3[4] = chessBoard[4].concat(); chessBoard_M_3[5] = chessBoard[5].concat(); chessBoard_M_3[6] = chessBoard[6].concat(); chessBoard_M_3[7] = chessBoard[7].concat(); } else if (memory == 4) { chessBoard_M_4[0] = chessBoard[0].concat(); chessBoard_M_4[1] = chessBoard[1].concat(); chessBoard_M_4[2] = chessBoard[2].concat(); chessBoard_M_4[3] = chessBoard[3].concat(); chessBoard_M_4[4] = chessBoard[4].concat(); chessBoard_M_4[5] = chessBoard[5].concat(); chessBoard_M_4[6] = chessBoard[6].concat(); chessBoard_M_4[7] = chessBoard[7].concat(); } else if (memory == 5) { chessBoard_M_5[0] = chessBoard[0].concat(); chessBoard_M_5[1] = chessBoard[1].concat(); chessBoard_M_5[2] = chessBoard[2].concat(); chessBoard_M_5[3] = chessBoard[3].concat(); chessBoard_M_5[4] = chessBoard[4].concat(); chessBoard_M_5[5] = chessBoard[5].concat(); chessBoard_M_5[6] = chessBoard[6].concat(); chessBoard_M_5[7] = chessBoard[7].concat(); } else if (memory == 6) { chessBoard_M_6[0] = chessBoard[0].concat(); chessBoard_M_6[1] = chessBoard[1].concat(); chessBoard_M_6[2] = chessBoard[2].concat(); chessBoard_M_6[3] = chessBoard[3].concat(); chessBoard_M_6[4] = chessBoard[4].concat(); chessBoard_M_6[5] = chessBoard[5].concat(); chessBoard_M_6[6] = chessBoard[6].concat(); chessBoard_M_6[7] = chessBoard[7].concat(); } } function nextMemory() { chessBoard_M_1[0] = chessBoard_M_2[0].concat(); chessBoard_M_1[1] = chessBoard_M_2[1].concat(); chessBoard_M_1[2] = chessBoard_M_2[2].concat(); chessBoard_M_1[3] = chessBoard_M_2[3].concat(); chessBoard_M_1[4] = chessBoard_M_2[4].concat(); chessBoard_M_1[5] = chessBoard_M_2[5].concat(); chessBoard_M_1[6] = chessBoard_M_2[6].concat(); chessBoard_M_1[7] = chessBoard_M_2[7].concat(); chessBoard_M_2[0] = chessBoard_M_3[0].concat(); chessBoard_M_2[1] = chessBoard_M_3[1].concat(); chessBoard_M_2[2] = chessBoard_M_3[2].concat(); chessBoard_M_2[3] = chessBoard_M_3[3].concat(); chessBoard_M_2[4] = chessBoard_M_3[4].concat(); chessBoard_M_2[5] = chessBoard_M_3[5].concat(); chessBoard_M_2[6] = chessBoard_M_3[6].concat(); chessBoard_M_2[7] = chessBoard_M_3[7].concat(); chessBoard_M_3[0] = chessBoard_M_4[0].concat(); chessBoard_M_3[1] = chessBoard_M_4[1].concat(); chessBoard_M_3[2] = chessBoard_M_4[2].concat(); chessBoard_M_3[3] = chessBoard_M_4[3].concat(); chessBoard_M_3[4] = chessBoard_M_4[4].concat(); chessBoard_M_3[5] = chessBoard_M_4[5].concat(); chessBoard_M_3[6] = chessBoard_M_4[6].concat(); chessBoard_M_3[7] = chessBoard_M_4[7].concat(); chessBoard_M_4[0] = chessBoard_M_5[0].concat(); chessBoard_M_4[1] = chessBoard_M_5[1].concat(); chessBoard_M_4[2] = chessBoard_M_5[2].concat(); chessBoard_M_4[3] = chessBoard_M_5[3].concat(); chessBoard_M_4[4] = chessBoard_M_5[4].concat(); chessBoard_M_4[5] = chessBoard_M_5[5].concat(); chessBoard_M_4[6] = chessBoard_M_5[6].concat(); chessBoard_M_4[7] = chessBoard_M_5[7].concat(); chessBoard_M_5[0] = chessBoard_M_6[0].concat(); chessBoard_M_5[1] = chessBoard_M_6[1].concat(); chessBoard_M_5[2] = chessBoard_M_6[2].concat(); chessBoard_M_5[3] = chessBoard_M_6[3].concat(); chessBoard_M_5[4] = chessBoard_M_6[4].concat(); chessBoard_M_5[5] = chessBoard_M_6[5].concat(); chessBoard_M_5[6] = chessBoard_M_6[6].concat(); chessBoard_M_5[7] = chessBoard_M_6[7].concat(); chessBoard_M_6[0] = chessBoard[0].concat(); chessBoard_M_6[1] = chessBoard[1].concat(); chessBoard_M_6[2] = chessBoard[2].concat(); chessBoard_M_6[3] = chessBoard[3].concat(); chessBoard_M_6[4] = chessBoard[4].concat(); chessBoard_M_6[5] = chessBoard[5].concat(); chessBoard_M_6[6] = chessBoard[6].concat(); chessBoard_M_6[7] = chessBoard[7].concat(); } MAXDEPTH = 0; chessBoard_M_1 = new Array(8); chessBoard_M_2 = new Array(8); chessBoard_M_3 = new Array(8); chessBoard_M_4 = new Array(8); chessBoard_M_5 = new Array(8); chessBoard_M_6 = new Array(8); startChess(); stop();
Frame 7
signal.gotoAndStop("comp"); messages.gotoAndStop(1); computerScore = 0; playerScore = 0; var i = 0; while (i < 8) { j = 0; while (j < 8) { if (chessBoard[i][j] != VOID) { if ((chessBoard[i][j] & 1) == SIDE_COMPUTER) { computerScore = computerScore + (chessBoard[i][j] >> 1); playerScore = playerScore - (chessBoard[i][j] >> 1); } else if ((chessBoard[i][j] & 1) == SIDE_PLAYER) { computerScore = computerScore - (chessBoard[i][j] >> 1); playerScore = playerScore + (chessBoard[i][j] >> 1); } } j++; } i++; }
Frame 8
computerScore = 0; INFINITY = 10000000 /* 0x989680 */; s = getTimer(); trace("my turn"); thin = true; onEnterFrame = function () { if (thin) { thi_mc._x = _root._xmouse + 11; thi_mc._y = _root._ymouse - 11; } else { thi_mc._x = 2000; thi_mc._y = 2000; } }; alpha = -INFINITY; beta = INFINITY; bestMove = null; bestScore = -INFINITY; allPossibleMoves = new Array(); capturedPiece = null; side = SIDE_COMPUTER; depth = MAXDEPTH; var i = 0; while (i < 8) { var j = 0; while (j < 8) { if (((chessBoard[i][j] & 1) == side) && (chessBoard[i][j] != VOID)) { compMoves = calculateMoves(i, j, side); allPossibleMoves = allPossibleMoves.concat(compMoves); } j++; } i++; } allPossibleMoves = shuffle(allPossibleMoves); index = 0;
Frame 9
if (index < allPossibleMoves.length) { progressBar.show(index, allPossibleMoves.length - 1); capturedPiece = do_move(allPossibleMoves[index], side); moveScore = -search(getOpponent(side), depth, -1 * beta, -1 * alpha); } else { gotoAndPlay (11); }
Frame 10
undo_move(allPossibleMoves[index], side, capturedPiece); if (bestScore < moveScore) { bestScore = moveScore; bestMove = allPossibleMoves[index]; } if (alpha < bestScore) { alpha = bestScore; } if (alpha >= beta) { gotoAndPlay (11); } index++; gotoAndPlay(_currentframe - 1);
Frame 11
trace("best: " + bestMove); thin = false; delete allPossibleMoves; trace("time " + (getTimer() - s)); if (bestMove == null) { messages.gotoAndStop("Pat"); } isPat = checkChessState(SIDE_COMPUTER); tempP = do_move(bestMove, SIDE_COMPUTER); isNotMat = checkChessState(SIDE_COMPUTER); undo_move(bestMove, SIDE_COMPUTER, tempP); if (isNotMat) { moveRealComputer(bestMove); } else if (isPat) { trace("Pat!"); board_mc.mateIn_txt.text = "Pat"; } else { computerLoose(); } if (memory < 6) { memory++; } else { nextMemory(); } initMemory(); if (memory > 1) { bc_btn_in(); memo_bl = true; } if (plpuzzl_bl) { mateIn--; if ((board_mc.mateIn_txt.text == "Pat") || (board_mc.mateIn_txt.text == "Player Loose")) { rez_mc.gotoAndPlay("wrong"); } else { if (mateIn >= 0) { if (board_mc.mateIn_txt.text != "Checkmate") { board_mc.mateIn_txt.text = "Mate in " + mateIn; } else { rez_mc.gotoAndPlay("win"); } } if ((mateIn == 0) && (board_mc.mateIn_txt.text != "Checkmate")) { rez_mc.gotoAndPlay("wrong"); computerLoose(); board_mc.mateIn_txt.text = "Mate in " + mateIn; } } } rest_btn_in(); stop();
Symbol 3 MovieClip [energyBar] Frame 1
function show(value, maxValue) { _visible = true; var _local1 = Math.round((value * 20) / maxValue); if (_local1 == 0) { _local1 = 1; } gotoAndStop(_local1); } function hide() { _visible = false; } stop();
Symbol 7 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 1
var CPMStarContentSpotID = "0"; System.security.allowDomain("server.cpmstar.com"); adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=531QAF25D117");
Symbol 274 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon { function OnEnterFrameBeacon () { } static function init() { var _local4 = _global.MovieClip; if (!_root.__OnEnterFrameBeacon) { mx.transitions.BroadcasterMX.initialize(_local4); var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876); _local3.onEnterFrame = function () { _global.MovieClip.broadcastMessage("onEnterFrame"); }; } } static var version = "1.1.0.52"; }
Symbol 275 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX { var _listeners; function BroadcasterMX () { } static function initialize(o, dontCreateArray) { if (o.broadcastMessage != undefined) { delete o.broadcastMessage; } o.addListener = mx.transitions.BroadcasterMX.prototype.addListener; o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener; if (!dontCreateArray) { o._listeners = new Array(); } } function addListener(o) { removeListener(o); if (broadcastMessage == undefined) { broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage; } return(_listeners.push(o)); } function removeListener(o) { var _local2 = _listeners; var _local3 = _local2.length; while (_local3--) { if (_local2[_local3] == o) { _local2.splice(_local3, 1); if (!_local2.length) { broadcastMessage = undefined; } return(true); } } return(false); } function broadcastMessage() { var _local5 = String(arguments.shift()); var _local4 = _listeners.concat(); var _local6 = _local4.length; var _local3 = 0; while (_local3 < _local6) { _local4[_local3][_local5].apply(_local4[_local3], arguments); _local3++; } } static var version = "1.1.0.52"; }
Symbol 276 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween { var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime; function Tween (obj, prop, func, begin, finish, duration, useSeconds) { mx.transitions.OnEnterFrameBeacon.init(); if (!arguments.length) { return; } this.obj = obj; this.prop = prop; this.begin = begin; position = (begin); this.duration = (duration); this.useSeconds = useSeconds; if (func) { this.func = func; } this.finish = (finish); _listeners = []; addListener(this); start(); } function set time(t) { prevTime = _time; if (t > duration) { if (looping) { rewind(t - _duration); update(); broadcastMessage("onMotionLooped", this); } else { if (useSeconds) { _time = _duration; update(); } stop(); broadcastMessage("onMotionFinished", this); } } else if (t < 0) { rewind(); update(); } else { _time = t; update(); } //return(time); } function get time() { return(_time); } function set duration(d) { _duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d)); //return(duration); } function get duration() { return(_duration); } function set FPS(fps) { var _local2 = isPlaying; stopEnterFrame(); _fps = fps; if (_local2) { startEnterFrame(); } //return(FPS); } function get FPS() { return(_fps); } function set position(p) { setPosition(p); //return(position); } function setPosition(p) { prevPos = _pos; obj[prop] = (_pos = p); broadcastMessage("onMotionChanged", this, _pos); updateAfterEvent(); } function get position() { return(getPosition()); } function getPosition(t) { if (t == undefined) { t = _time; } return(func(t, begin, change, _duration)); } function set finish(f) { change = f - begin; //return(finish); } function get finish() { return(begin + change); } function continueTo(finish, duration) { begin = position; this.finish = (finish); if (duration != undefined) { this.duration = (duration); } start(); } function yoyo() { continueTo(begin, time); } function startEnterFrame() { if (_fps == undefined) { _global.MovieClip.addListener(this); } else { _intervalID = setInterval(this, "onEnterFrame", 1000 / _fps); } isPlaying = true; } function stopEnterFrame() { if (_fps == undefined) { _global.MovieClip.removeListener(this); } else { clearInterval(_intervalID); } isPlaying = false; } function start() { rewind(); startEnterFrame(); broadcastMessage("onMotionStarted", this); } function stop() { stopEnterFrame(); broadcastMessage("onMotionStopped", this); } function resume() { fixTime(); startEnterFrame(); broadcastMessage("onMotionResumed", this); } function rewind(t) { _time = ((t == undefined) ? 0 : (t)); fixTime(); update(); } function fforward() { time = (_duration); fixTime(); } function nextFrame() { if (useSeconds) { time = ((getTimer() - _startTime) / 1000); } else { time = (_time + 1); } } function onEnterFrame() { nextFrame(); } function prevFrame() { if (!useSeconds) { time = (_time - 1); } } function toString() { return("[Tween]"); } function fixTime() { if (useSeconds) { _startTime = getTimer() - (_time * 1000); } } function update() { position = (getPosition(_time)); } static var version = "1.1.0.52"; static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init(); static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true); function func(t, b, c, d) { return(((c * t) / d) + b); } }
Symbol 277 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong { function Strong () { } static function easeIn(t, b, c, d) { t = t / d; return((((((c * t) * t) * t) * t) * t) + b); } static function easeOut(t, b, c, d) { t = (t / d) - 1; return((c * (((((t * t) * t) * t) * t) + 1)) + b); } static function easeInOut(t, b, c, d) { t = t / (d / 2); if (t < 1) { return(((((((c / 2) * t) * t) * t) * t) * t) + b); } t = t - 2; return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b); } static var version = "1.1.0.52"; }
Symbol 278 MovieClip [__Packages.mx.transitions.easing.Back] Frame 0
class mx.transitions.easing.Back { function Back () { } static function easeIn(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = t / d; return((((c * t) * t) * (((s + 1) * t) - s)) + b); } static function easeOut(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = (t / d) - 1; return((c * (((t * t) * (((s + 1) * t) + s)) + 1)) + b); } static function easeInOut(t, b, c, d, s) { if (s == undefined) { s = 1.70158; } t = t / (d / 2); if (t < 1) { s = s * 1.525; return(((c / 2) * ((t * t) * (((s + 1) * t) - s))) + b); } t = t - 2; s = s * 1.525; return(((c / 2) * (((t * t) * (((s + 1) * t) + s)) + 2)) + b); } static var version = "1.1.0.52"; }
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 2
stop();
Symbol 59 Button
on (release) { getURL ("http://www.minijuegos.com/", "BLANK"); }
Symbol 132 MovieClip Frame 1
function markdel() { mark_1_mc._alpha = 0; mark_2_mc._alpha = 0; mark_3_mc._alpha = 0; mark_4_mc._alpha = 0; mark_5_mc._alpha = 0; mark_6_mc._alpha = 0; } function markstart() { mark_1_mc._alpha = 100; mark_2_mc._alpha = 0; mark_3_mc._alpha = 0; mark_4_mc._alpha = 0; mark_5_mc._alpha = 0; mark_6_mc._alpha = 0; _parent.getPuzzle = "Novice"; } markstart(); Selection.setFocus("numProbl_txt"); Selection.setSelection(0, 0); var counter = Number(counter_txt.text); trace(Number(counter)); onEnterFrame = function () { var _local1 = Number(numProbl_txt.text); if (_local1 > allPuz_txt.text) { numProbl_txt.text = allPuz_txt.text; Selection.setFocus(null); } if (_local1 < 1) { numProbl_txt.text = 1; Selection.setFocus(null); } }; lev_1_btn.onPress = function () { markdel(); mark_1_mc._alpha = 100; _parent.getPuzzle = "Novice"; allPuz_txt.text = 88; }; lev_2_btn.onPress = function () { markdel(); mark_2_mc._alpha = 100; _parent.getPuzzle = "Beginner"; allPuz_txt.text = 112; }; lev_3_btn.onPress = function () { markdel(); mark_3_mc._alpha = 100; _parent.getPuzzle = "Easy"; allPuz_txt.text = 131; }; lev_4_btn.onPress = function () { markdel(); mark_4_mc._alpha = 100; _parent.getPuzzle = "Moderate"; allPuz_txt.text = 115; }; lev_5_btn.onPress = function () { markdel(); mark_5_mc._alpha = 100; _parent.getPuzzle = "Difficult"; allPuz_txt.text = 123; }; lev_6_btn.onPress = function () { markdel(); mark_6_mc._alpha = 100; _parent.getPuzzle = "Fiendish"; allPuz_txt.text = 90; };
Symbol 150 MovieClip Frame 48
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 54
var nun1 = Number(_parent.menuha_mc.numProbl_txt.text); var nun2 = Number(_parent.menuha_mc.allPuz_txt.text); if (nun1 == nun2) { _parent.menuha_mc.mark_1_mc._alpha = 0; _parent.menuha_mc.mark_2_mc._alpha = 0; _parent.menuha_mc.mark_3_mc._alpha = 0; _parent.menuha_mc.mark_4_mc._alpha = 0; _parent.menuha_mc.mark_5_mc._alpha = 0; _parent.menuha_mc.mark_6_mc._alpha = 0; if (_parent.getPuzzle == "Novice") { _parent.menuha_mc.mark_2_mc._alpha = 100; _parent.getPuzzle = "Beginner"; _parent.menuha_mc.allPuz_txt.text = 112; } else if (_parent.getPuzzle == "Beginner") { _parent.menuha_mc.mark_3_mc._alpha = 100; _parent.getPuzzle = "Easy"; _parent.menuha_mc.allPuz_txt.text = 131; } else if (_parent.getPuzzle == "Easy") { _parent.menuha_mc.mark_4_mc._alpha = 100; _parent.getPuzzle = "Moderate"; _parent.menuha_mc.allPuz_txt.text = 115; } else if (_parent.getPuzzle == "Moderate") { _parent.menuha_mc.mark_5_mc._alpha = 100; _parent.getPuzzle = "Difficult"; _parent.menuha_mc.allPuz_txt.text = 123; } else if (_parent.getPuzzle == "Difficult") { _parent.menuha_mc.mark_6_mc._alpha = 100; _parent.getPuzzle = "Fiendish"; _parent.menuha_mc.allPuz_txt.text = 90; } _parent.menuha_mc.numProbl_txt.text = 0; nun1 = Number(_parent.menuha_mc.numProbl_txt.text); } _parent.menuha_mc.numProbl_txt.text++; _parent.board_mc.numPuz_txt.text = (_parent.menuha_mc.numProbl_txt.text + "/") + _parent.menuha_mc.allPuz_txt.text; nun1++; if (nun1 == _parent.menuha_mc.allPuz_txt.text) { _parent.tween8 = new mx.transitions.Tween(_parent.board_mc.nxt_btn, "_y", mx.transitions.easing.Back.easeOut, -292, -296.6, 10, false); _parent.all_btn_off(); _parent.prev_btn_in(); _parent.ran_btn_in(); } if (nun1 > 1) { _parent.prev_btn_in(); } if (nun1 == 1) { _parent.all_btn_off(); _parent.nxt_btn_in(); _parent.ran_btn_in(); } else if (nun1 == _parent.menuha_mc.allPuz_txt.text) { _parent.all_btn_off(); _parent.prev_btn_in(); _parent.ran_btn_in(); } else { _parent.all_btn_off(); _parent.prev_btn_in(); _parent.ran_btn_in(); _parent.nxt_btn_in(); } _parent.plchess_bl = false; _parent.plpuzzl_bl = true; _parent.memo_bl = false; _parent.memory = 1; _parent.startChess();
Symbol 154 MovieClip Frame 93
gotoAndStop (1);
Symbol 154 MovieClip Frame 165
_parent.bc_btn_off(); _parent.rest_btn_off(); _parent.memory = 1; _parent.memo_bl = false; if (_parent.plchess_bl) { _parent.board_mc.mateIn_txt.text = "Chess"; } _parent.tween8 = new mx.transitions.Tween(_parent.board_mc.rest_btn, "_y", mx.transitions.easing.Back.easeOut, 274, 277.9, 10, false); _parent.startChess(); gotoAndStop (1);
Symbol 230 MovieClip Frame 168
intervalVision = setInterval(function () { _root.minijuegos_mc._alpha = _root.minijuegos_mc._alpha - 5; if (_root.minijuegos_mc._alpha <= 0) { clearInterval(_root.minijuegos_mc.intervalVision); nextFrame(); } }, 33); stop();
Symbol 230 MovieClip Frame 169
stop();
Symbol 258 Button
on (release) { _root.select(this._parent.row, this._parent.col); gotoAndStop (3); }
Symbol 260 Button
on (release) { _root.moveRealPlayer((((_root.pieceSelected.row << 9) | (_root.pieceSelected.col << 6)) | (this._parent.row << 3)) | this._parent.col, _root.SIDE_PLAYER); }
Symbol 262 Button
on (release) { _root.deselect(this._parent); _root.gotoAndStop("normal"); }
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 2
stop();
Symbol 263 MovieClip Frame 3
stop();
Symbol 263 MovieClip Frame 4
stop();
Symbol 271 MovieClip Frame 1
function showPiece(piece) { if (piece == _root.VOID) { gotoAndStop (1); return(undefined); } if (piece == _root.PAWN_W) { gotoAndStop (2); return(undefined); } if (piece == _root.KNIGHT_W) { gotoAndStop (3); return(undefined); } if (piece == _root.ROOK_W) { gotoAndStop (4); return(undefined); } if (piece == _root.BISSHOP_W) { gotoAndStop (5); return(undefined); } if (piece == _root.QUEEN_W) { gotoAndStop (6); return(undefined); } if (piece == _root.KING_W) { gotoAndStop (7); return(undefined); } if (piece == _root.PAWN_B) { gotoAndStop (9); return(undefined); } if (piece == _root.KNIGHT_B) { gotoAndStop (10); return(undefined); } if (piece == _root.ROOK_B) { gotoAndStop (11); return(undefined); } if (piece == _root.BISSHOP_B) { gotoAndStop (12); return(undefined); } if (piece == _root.QUEEN_B) { gotoAndStop (13); return(undefined); } if (piece == _root.KING_B) { gotoAndStop (14); } } piece = "void"; stop();
Symbol 271 MovieClip Frame 2
piece = "pawn_w"; stop();
Symbol 271 MovieClip Frame 3
piece = "knight_w"; stop();
Symbol 271 MovieClip Frame 4
piece = "rook_w"; stop();
Symbol 271 MovieClip Frame 5
piece = "bisshop_w"; stop();
Symbol 271 MovieClip Frame 6
piece = "queen_w"; stop();
Symbol 271 MovieClip Frame 7
piece = "king_w"; stop();
Symbol 271 MovieClip Frame 9
piece = "pawn_b"; stop();
Symbol 271 MovieClip Frame 10
piece = "knight_b"; stop();
Symbol 271 MovieClip Frame 11
piece = "rook_b"; stop();
Symbol 271 MovieClip Frame 12
piece = "bisshop_b"; stop();
Symbol 271 MovieClip Frame 13
piece = "queen_b"; stop();
Symbol 271 MovieClip Frame 14
piece = "king_b"; stop();
Symbol 272 MovieClip Frame 1
function showPiece(piece) { if (piece == _root.VOID) { gotoAndStop (1); return(undefined); } if (piece == _root.PAWN_W) { gotoAndStop (2); return(undefined); } if (piece == _root.KNIGHT_W) { gotoAndStop (3); return(undefined); } if (piece == _root.ROOK_W) { gotoAndStop (4); return(undefined); } if (piece == _root.BISSHOP_W) { gotoAndStop (5); return(undefined); } if (piece == _root.QUEEN_W) { gotoAndStop (6); return(undefined); } if (piece == _root.KING_W) { gotoAndStop (7); return(undefined); } if (piece == _root.PAWN_B) { gotoAndStop (9); return(undefined); } if (piece == _root.KNIGHT_B) { gotoAndStop (10); return(undefined); } if (piece == _root.ROOK_B) { gotoAndStop (11); return(undefined); } if (piece == _root.BISSHOP_B) { gotoAndStop (12); return(undefined); } if (piece == _root.QUEEN_B) { gotoAndStop (13); return(undefined); } if (piece == _root.KING_B) { gotoAndStop (14); } } piece = "void"; stop();
Symbol 272 MovieClip Frame 2
piece = "pawn_w"; stop();
Symbol 272 MovieClip Frame 3
piece = "knight_w"; stop();
Symbol 272 MovieClip Frame 4
piece = "rook_w"; stop();
Symbol 272 MovieClip Frame 5
piece = "bisshop_w"; stop();
Symbol 272 MovieClip Frame 6
piece = "queen_w"; stop();
Symbol 272 MovieClip Frame 7
piece = "king_w"; stop();
Symbol 272 MovieClip Frame 9
piece = "pawn_b"; stop();
Symbol 272 MovieClip Frame 10
piece = "knight_b"; stop();
Symbol 272 MovieClip Frame 11
piece = "rook_b"; stop();
Symbol 272 MovieClip Frame 12
piece = "bisshop_b"; stop();
Symbol 272 MovieClip Frame 13
piece = "queen_b"; stop();
Symbol 272 MovieClip Frame 14
piece = "king_b"; stop();
Symbol 273 MovieClip Frame 1
function showPiece(piece) { if (piece == _root.VOID) { gotoAndStop (1); return(undefined); } if (piece == _root.PAWN_W) { gotoAndStop (2); return(undefined); } if (piece == _root.KNIGHT_W) { gotoAndStop (3); return(undefined); } if (piece == _root.ROOK_W) { gotoAndStop (4); return(undefined); } if (piece == _root.BISSHOP_W) { gotoAndStop (5); return(undefined); } if (piece == _root.QUEEN_W) { gotoAndStop (6); return(undefined); } if (piece == _root.KING_W) { gotoAndStop (7); return(undefined); } if (piece == _root.PAWN_B) { gotoAndStop (9); return(undefined); } if (piece == _root.KNIGHT_B) { gotoAndStop (10); return(undefined); } if (piece == _root.ROOK_B) { gotoAndStop (11); return(undefined); } if (piece == _root.BISSHOP_B) { gotoAndStop (12); return(undefined); } if (piece == _root.QUEEN_B) { gotoAndStop (13); return(undefined); } if (piece == _root.KING_B) { gotoAndStop (14); } } piece = "void"; stop();
Symbol 273 MovieClip Frame 2
piece = "pawn_w"; stop();
Symbol 273 MovieClip Frame 3
piece = "knight_w"; stop();
Symbol 273 MovieClip Frame 4
piece = "rook_w"; stop();
Symbol 273 MovieClip Frame 5
piece = "bisshop_w"; stop();
Symbol 273 MovieClip Frame 6
piece = "queen_w"; stop();
Symbol 273 MovieClip Frame 7
piece = "king_w"; stop();
Symbol 273 MovieClip Frame 9
piece = "pawn_b"; stop();
Symbol 273 MovieClip Frame 10
piece = "knight_b"; stop();
Symbol 273 MovieClip Frame 11
piece = "rook_b"; stop();
Symbol 273 MovieClip Frame 12
piece = "bisshop_b"; stop();
Symbol 273 MovieClip Frame 13
piece = "queen_b"; stop();
Symbol 273 MovieClip Frame 14
piece = "king_b"; stop();

Library Items

Symbol 1 ShapeTweeningUsed by:3
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClip [energyBar]Uses:1 2Used by:Timeline
Symbol 4 GraphicUsed by:Timeline
Symbol 5 ShapeTweeningUsed by:7
Symbol 6 GraphicUsed by:7
Symbol 7 MovieClipUses:5 6Used by:Timeline
Symbol 8 FontUsed by:9 14 32 35 41 42 45 46 51 52 55 56 93 94 95 96 97 102 103 106 107 110 111 114 115 118 119 144 145 152 235 236 237 238 240 242 245 250 253
Symbol 9 TextUses:8Used by:Timeline
Symbol 10 GraphicUsed by:11
Symbol 11 MovieClipUses:10Used by:12
Symbol 12 MovieClipUses:11Used by:58  Timeline
Symbol 13 FontUsed by:14 32 93 95 152
Symbol 14 TextUses:13 8Used by:Timeline
Symbol 15 GraphicUsed by:18
Symbol 16 FontUsed by:17
Symbol 17 TextUses:16Used by:18
Symbol 18 MovieClipUses:15 17Used by:Timeline
Symbol 274 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon]
Symbol 275 MovieClip [__Packages.mx.transitions.BroadcasterMX]
Symbol 276 MovieClip [__Packages.mx.transitions.Tween]
Symbol 277 MovieClip [__Packages.mx.transitions.easing.Strong]
Symbol 278 MovieClip [__Packages.mx.transitions.easing.Back]
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:19Used by:21
Symbol 21 MovieClipUses:20Used by:Timeline
Symbol 22 GraphicUsed by:132
Symbol 23 GraphicUsed by:25
Symbol 24 GraphicUsed by:25
Symbol 25 MovieClipUses:23 24Used by:132
Symbol 26 FontUsed by:27 28 265
Symbol 27 TextUses:26Used by:29
Symbol 28 TextUses:26Used by:29
Symbol 29 MovieClipUses:27 28Used by:31
Symbol 30 GraphicUsed by:31
Symbol 31 MovieClipUses:29 30Used by:132
Symbol 32 TextUses:13 8Used by:132
Symbol 33 GraphicUsed by:34 59
Symbol 34 MovieClipUses:33Used by:36 37 38 39 40
Symbol 35 TextUses:8Used by:36
Symbol 36 MovieClipUses:34 35Used by:132
Symbol 37 MovieClipUses:34Used by:132
Symbol 38 MovieClipUses:34Used by:132
Symbol 39 MovieClipUses:34Used by:59 132
Symbol 40 MovieClipUses:34Used by:132
Symbol 41 TextUses:8Used by:44
Symbol 42 TextUses:8Used by:44
Symbol 43 GraphicUsed by:44
Symbol 44 ButtonUses:41 42 43Used by:132
Symbol 45 TextUses:8Used by:48
Symbol 46 TextUses:8Used by:48
Symbol 47 GraphicUsed by:48
Symbol 48 ButtonUses:45 46 47Used by:132
Symbol 49 GraphicUsed by:50
Symbol 50 MovieClipUses:49Used by:132
Symbol 51 TextUses:8Used by:54
Symbol 52 TextUses:8Used by:54
Symbol 53 GraphicUsed by:54 57
Symbol 54 ButtonUses:51 52 53Used by:132
Symbol 55 TextUses:8Used by:57
Symbol 56 TextUses:8Used by:57
Symbol 57 ButtonUses:55 56 53Used by:132
Symbol 58 MovieClipUses:12Used by:132
Symbol 59 ButtonUses:39 33Used by:132
Symbol 60 GraphicUsed by:61
Symbol 61 MovieClipUses:60Used by:132
Symbol 62 GraphicUsed by:65 199
Symbol 63 GraphicUsed by:65 68 71 74 77 80 83 86 89 199 201 204 207 210 213 216 221 224
Symbol 64 GraphicUsed by:65 199
Symbol 65 MovieClipUses:62 63 64Used by:90
Symbol 66 GraphicUsed by:68 201
Symbol 67 GraphicUsed by:68 201
Symbol 68 MovieClipUses:66 63 67Used by:90
Symbol 69 GraphicUsed by:71 204
Symbol 70 GraphicUsed by:71 204
Symbol 71 MovieClipUses:69 63 70Used by:90
Symbol 72 GraphicUsed by:74 207
Symbol 73 GraphicUsed by:74 207
Symbol 74 MovieClipUses:72 63 73Used by:90
Symbol 75 GraphicUsed by:77 210
Symbol 76 GraphicUsed by:77 210
Symbol 77 MovieClipUses:75 63 76Used by:90
Symbol 78 GraphicUsed by:80 213
Symbol 79 GraphicUsed by:80 213
Symbol 80 MovieClipUses:78 63 79Used by:90
Symbol 81 GraphicUsed by:83 86 216 221
Symbol 82 GraphicUsed by:83 86 216 221
Symbol 83 MovieClipUses:81 63 82Used by:90
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:84Used by:90
Symbol 86 MovieClipUses:81 63 82Used by:90
Symbol 87 GraphicUsed by:89 224
Symbol 88 GraphicUsed by:89 224
Symbol 89 MovieClipUses:87 63 88Used by:90
Symbol 90 MovieClipUses:65 68 71 74 77 80 83 85 86 89Used by:132
Symbol 91 GraphicUsed by:92 230
Symbol 92 MovieClipUses:91Used by:132
Symbol 93 EditableTextUses:8 13Used by:132
Symbol 94 EditableTextUses:8Used by:132
Symbol 95 EditableTextUses:8 13Used by:132
Symbol 96 TextUses:8Used by:101
Symbol 97 TextUses:8Used by:101
Symbol 98 GraphicUsed by:99 101 105 109 113 117 121
Symbol 99 MovieClipUses:98Used by:101 105 109 113 117 121
Symbol 100 GraphicUsed by:101
Symbol 101 ButtonUses:96 97 99 100 98Used by:132
Symbol 102 TextUses:8Used by:105
Symbol 103 TextUses:8Used by:105
Symbol 104 GraphicUsed by:105
Symbol 105 ButtonUses:102 103 99 104 98Used by:132
Symbol 106 TextUses:8Used by:109
Symbol 107 TextUses:8Used by:109
Symbol 108 GraphicUsed by:109
Symbol 109 ButtonUses:106 107 99 108 98Used by:132
Symbol 110 TextUses:8Used by:113
Symbol 111 TextUses:8Used by:113
Symbol 112 GraphicUsed by:113
Symbol 113 ButtonUses:110 111 99 112 98Used by:132
Symbol 114 TextUses:8Used by:117
Symbol 115 TextUses:8Used by:117
Symbol 116 GraphicUsed by:117
Symbol 117 ButtonUses:114 115 99 116 98Used by:132
Symbol 118 TextUses:8Used by:121
Symbol 119 TextUses:8Used by:121
Symbol 120 GraphicUsed by:121
Symbol 121 ButtonUses:118 119 99 120 98Used by:132
Symbol 122 GraphicUsed by:132
Symbol 123 FontUsed by:124 126 127
Symbol 124 TextUses:123Used by:126
Symbol 125 TextUsed by:126
Symbol 126 MovieClipUses:123 124 125Used by:131
Symbol 127 TextUses:123Used by:129
Symbol 128 TextUsed by:129
Symbol 129 MovieClipUses:127 128Used by:131
Symbol 130 GraphicUsed by:131
Symbol 131 ButtonUses:126 129 130Used by:132
Symbol 132 MovieClipUses:22 25 31 32 36 37 38 39 40 44 48 50 54 57 58 59 61 90 92 93 94 95 101 105 109 113 117 121 122 131Used by:Timeline
Symbol 133 GraphicUsed by:146
Symbol 134 GraphicUsed by:139
Symbol 135 GraphicUsed by:139
Symbol 136 GraphicUsed by:139
Symbol 137 GraphicUsed by:139
Symbol 138 GraphicUsed by:139
Symbol 139 MovieClipUses:134 135 136 137 138Used by:146
Symbol 140 GraphicUsed by:143
Symbol 141 GraphicUsed by:143
Symbol 142 GraphicUsed by:143
Symbol 143 ButtonUses:140 141 142Used by:146
Symbol 144 TextUses:8Used by:146
Symbol 145 TextUses:8Used by:146
Symbol 146 MovieClipUses:133 139 143 144 145Used by:Timeline
Symbol 147 ShapeTweeningUsed by:150
Symbol 148 ShapeTweeningUsed by:150
Symbol 149 GraphicUsed by:150
Symbol 150 MovieClipUses:147 148 149Used by:151
Symbol 151 MovieClipUses:150Used by:154
Symbol 152 EditableTextUses:8 13Used by:153
Symbol 153 MovieClipUses:152Used by:154
Symbol 154 MovieClipUses:151 153Used by:Timeline
Symbol 155 ShapeTweeningUsed by:230
Symbol 156 GraphicUsed by:230
Symbol 157 BitmapUsed by:158 161
Symbol 158 GraphicUses:157Used by:230
Symbol 159 ShapeTweeningUsed by:230
Symbol 160 ShapeTweeningUsed by:230
Symbol 161 GraphicUses:157Used by:230
Symbol 162 BitmapUsed by:163 171
Symbol 163 GraphicUses:162Used by:230
Symbol 164 BitmapUsed by:165
Symbol 165 GraphicUses:164Used by:230
Symbol 166 BitmapUsed by:167
Symbol 167 GraphicUses:166Used by:230
Symbol 168 BitmapUsed by:169 170
Symbol 169 GraphicUses:168Used by:230
Symbol 170 GraphicUses:168Used by:230
Symbol 171 GraphicUses:162Used by:230
Symbol 172 GraphicUsed by:230
Symbol 173 BitmapUsed by:174
Symbol 174 GraphicUses:173Used by:230
Symbol 175 BitmapUsed by:176
Symbol 176 GraphicUses:175Used by:230
Symbol 177 GraphicUsed by:230
Symbol 178 GraphicUsed by:230
Symbol 179 BitmapUsed by:180
Symbol 180 GraphicUses:179Used by:230
Symbol 181 GraphicUsed by:230
Symbol 182 BitmapUsed by:183
Symbol 183 GraphicUses:182Used by:230
Symbol 184 GraphicUsed by:230
Symbol 185 BitmapUsed by:186 187 188
Symbol 186 GraphicUses:185Used by:230
Symbol 187 GraphicUses:185Used by:230
Symbol 188 GraphicUses:185Used by:230
Symbol 189 GraphicUsed by:230
Symbol 190 GraphicUsed by:230
Symbol 191 GraphicUsed by:230
Symbol 192 GraphicUsed by:230
Symbol 193 GraphicUsed by:230
Symbol 194 GraphicUsed by:195
Symbol 195 MovieClipUses:194Used by:230
Symbol 196 GraphicUsed by:230
Symbol 197 GraphicUsed by:199 221
Symbol 198 GraphicUsed by:199
Symbol 199 MovieClipUses:62 197 198 63 64Used by:225
Symbol 200 GraphicUsed by:201
Symbol 201 MovieClipUses:200 66 63 67Used by:225
Symbol 202 GraphicUsed by:204
Symbol 203 GraphicUsed by:204
Symbol 204 MovieClipUses:69 202 203 63 70Used by:225
Symbol 205 GraphicUsed by:207
Symbol 206 GraphicUsed by:207
Symbol 207 MovieClipUses:72 205 206 63 73Used by:225
Symbol 208 GraphicUsed by:210
Symbol 209 GraphicUsed by:210
Symbol 210 MovieClipUses:75 208 209 63 76Used by:225
Symbol 211 GraphicUsed by:213
Symbol 212 GraphicUsed by:213
Symbol 213 MovieClipUses:78 211 212 63 79Used by:225
Symbol 214 GraphicUsed by:216
Symbol 215 GraphicUsed by:216 221
Symbol 216 MovieClipUses:81 214 215 63 82Used by:225
Symbol 217 GraphicUsed by:220
Symbol 218 GraphicUsed by:220
Symbol 219 GraphicUsed by:220
Symbol 220 MovieClipUses:217 218 219Used by:225
Symbol 221 MovieClipUses:81 197 215 63 82Used by:225
Symbol 222 GraphicUsed by:224
Symbol 223 GraphicUsed by:224
Symbol 224 MovieClipUses:87 222 223 63 88Used by:225
Symbol 225 MovieClipUses:199 201 204 207 210 213 216 220 221 224Used by:230
Symbol 226 ShapeTweeningUsed by:230
Symbol 227 ShapeTweeningUsed by:230
Symbol 228 GraphicUsed by:230
Symbol 229 GraphicUsed by:230
Symbol 230 MovieClipUses:155 156 158 159 160 161 163 165 167 169 170 171 172 174 176 177 178 180 181 183 184 186 187 188 189 190 191 192 193 195 196 225 226 227 228 229 91Used by:Timeline
Symbol 231 GraphicUsed by:232
Symbol 232 MovieClipUses:231Used by:256
Symbol 233 GraphicUsed by:234
Symbol 234 MovieClipUses:233Used by:256
Symbol 235 TextUses:8Used by:256
Symbol 236 TextUses:8Used by:256
Symbol 237 EditableTextUses:8Used by:256
Symbol 238 EditableTextUses:8Used by:256
Symbol 239 GraphicUsed by:241 243
Symbol 240 TextUses:8Used by:241
Symbol 241 ButtonUses:239 240Used by:256
Symbol 242 TextUses:8Used by:243
Symbol 243 ButtonUses:239 242Used by:256
Symbol 244 GraphicUsed by:248
Symbol 245 TextUses:8Used by:248
Symbol 246 FontUsed by:247 254
Symbol 247 TextUses:246Used by:248
Symbol 248 ButtonUses:244 245 247Used by:256
Symbol 249 GraphicUsed by:251
Symbol 250 TextUses:8Used by:251
Symbol 251 ButtonUses:249 250Used by:256
Symbol 252 GraphicUsed by:255
Symbol 253 TextUses:8Used by:255
Symbol 254 TextUses:246Used by:255
Symbol 255 ButtonUses:252 253 254Used by:256
Symbol 256 MovieClipUses:232 234 235 236 237 238 241 243 248 251 255Used by:Timeline
Symbol 257 GraphicUsed by:258 260 262
Symbol 258 ButtonUses:257Used by:263
Symbol 259 GraphicUsed by:263
Symbol 260 ButtonUses:257Used by:263
Symbol 261 GraphicUsed by:263
Symbol 262 ButtonUses:257Used by:263
Symbol 263 MovieClipUses:258 259 260 261 262Used by:271 272 273
Symbol 264 GraphicUsed by:271 272 273
Symbol 265 EditableTextUses:26Used by:266
Symbol 266 MovieClipUses:265Used by:268 270
Symbol 267 GraphicUsed by:268
Symbol 268 MovieClipUses:266 267Used by:271 272 273
Symbol 269 GraphicUsed by:270
Symbol 270 MovieClipUses:266 269Used by:271 272 273
Symbol 271 MovieClipUses:263 264 268 270Used by:Timeline
Symbol 272 MovieClipUses:263 264 268 270Used by:Timeline
Symbol 273 MovieClipUses:263 264 268 270Used by:Timeline

Instance Names

"preloader_mc"Frame 1Symbol 7 MovieClip
"ads_mc"Frame 1Symbol 12 MovieClip
"by_mc"Frame 1Symbol 18 MovieClip
"thi_mc"Frame 2Symbol 21 MovieClip
"menuha_mc"Frame 2Symbol 132 MovieClip
"help_mc"Frame 2Symbol 146 MovieClip
"rez_mc"Frame 2Symbol 154 MovieClip
"minijuegos_mc"Frame 2Symbol 230 MovieClip
"board_mc"Frame 3Symbol 256 MovieClip
"piece_0_0"Frame 3Symbol 271 MovieClip
"piece_0_1"Frame 3Symbol 271 MovieClip
"piece_0_2"Frame 3Symbol 271 MovieClip
"piece_0_3"Frame 3Symbol 271 MovieClip
"piece_0_4"Frame 3Symbol 271 MovieClip
"piece_0_5"Frame 3Symbol 271 MovieClip
"piece_0_6"Frame 3Symbol 272 MovieClip
"piece_0_7"Frame 3Symbol 271 MovieClip
"piece_1_0"Frame 3Symbol 272 MovieClip
"piece_1_1"Frame 3Symbol 271 MovieClip
"piece_1_2"Frame 3Symbol 272 MovieClip
"piece_1_3"Frame 3Symbol 271 MovieClip
"piece_1_4"Frame 3Symbol 272 MovieClip
"piece_1_5"Frame 3Symbol 271 MovieClip
"piece_1_6"Frame 3Symbol 271 MovieClip
"piece_1_7"Frame 3Symbol 271 MovieClip
"piece_2_0"Frame 3Symbol 271 MovieClip
"piece_2_1"Frame 3Symbol 272 MovieClip
"piece_2_2"Frame 3Symbol 272 MovieClip
"piece_2_3"Frame 3Symbol 272 MovieClip
"piece_2_4"Frame 3Symbol 271 MovieClip
"piece_2_5"Frame 3Symbol 271 MovieClip
"piece_2_6"Frame 3Symbol 272 MovieClip
"piece_2_7"Frame 3Symbol 272 MovieClip
"piece_3_0"Frame 3Symbol 271 MovieClip
"piece_3_1"Frame 3Symbol 271 MovieClip
"piece_3_2"Frame 3Symbol 272 MovieClip
"piece_3_3"Frame 3Symbol 272 MovieClip
"piece_3_4"Frame 3Symbol 271 MovieClip
"piece_3_5"Frame 3Symbol 272 MovieClip
"piece_3_6"Frame 3Symbol 271 MovieClip
"piece_3_7"Frame 3Symbol 273 MovieClip
"piece_4_0"Frame 3Symbol 272 MovieClip
"piece_4_1"Frame 3Symbol 272 MovieClip
"piece_4_2"Frame 3Symbol 271 MovieClip
"piece_4_3"Frame 3Symbol 272 MovieClip
"piece_4_4"Frame 3Symbol 272 MovieClip
"piece_4_5"Frame 3Symbol 271 MovieClip
"piece_4_6"Frame 3Symbol 272 MovieClip
"piece_4_7"Frame 3Symbol 271 MovieClip
"piece_5_0"Frame 3Symbol 272 MovieClip
"piece_5_1"Frame 3Symbol 271 MovieClip
"piece_5_2"Frame 3Symbol 271 MovieClip
"piece_5_3"Frame 3Symbol 271 MovieClip
"piece_5_4"Frame 3Symbol 272 MovieClip
"piece_5_5"Frame 3Symbol 271 MovieClip
"piece_5_6"Frame 3Symbol 271 MovieClip
"piece_5_7"Frame 3Symbol 272 MovieClip
"piece_6_0"Frame 3Symbol 271 MovieClip
"piece_6_1"Frame 3Symbol 271 MovieClip
"piece_6_2"Frame 3Symbol 271 MovieClip
"piece_6_3"Frame 3Symbol 271 MovieClip
"piece_6_4"Frame 3Symbol 271 MovieClip
"piece_6_5"Frame 3Symbol 271 MovieClip
"piece_6_6"Frame 3Symbol 271 MovieClip
"piece_6_7"Frame 3Symbol 272 MovieClip
"piece_7_0"Frame 3Symbol 271 MovieClip
"piece_7_1"Frame 3Symbol 271 MovieClip
"piece_7_2"Frame 3Symbol 271 MovieClip
"piece_7_3"Frame 3Symbol 271 MovieClip
"piece_7_4"Frame 3Symbol 271 MovieClip
"piece_7_5"Frame 3Symbol 271 MovieClip
"piece_7_6"Frame 3Symbol 271 MovieClip
"piece_7_7"Frame 3Symbol 271 MovieClip
"progressBar"Frame 3Symbol 3 MovieClip [energyBar]
"adBox"Symbol 12 MovieClip Frame 1Symbol 11 MovieClip
"ads_mc"Symbol 58 MovieClip Frame 2Symbol 12 MovieClip
"plpuz_btn"Symbol 132 MovieClip Frame 1Symbol 44 Button
"plshe_btn"Symbol 132 MovieClip Frame 1Symbol 48 Button
"mark_3_mc"Symbol 132 MovieClip Frame 1Symbol 50 MovieClip
"mark_4_mc"Symbol 132 MovieClip Frame 1Symbol 50 MovieClip
"mark_5_mc"Symbol 132 MovieClip Frame 1Symbol 50 MovieClip
"mark_6_mc"Symbol 132 MovieClip Frame 1Symbol 50 MovieClip
"ng_btn"Symbol 132 MovieClip Frame 1Symbol 54 Button
"hlp_btn"Symbol 132 MovieClip Frame 1Symbol 57 Button
"ads_mc"Symbol 132 MovieClip Frame 1Symbol 58 MovieClip
"numProbl_txt"Symbol 132 MovieClip Frame 1Symbol 93 EditableText
"mark_1_mc"Symbol 132 MovieClip Frame 1Symbol 50 MovieClip
"mark_2_mc"Symbol 132 MovieClip Frame 1Symbol 50 MovieClip
"allPuz_txt"Symbol 132 MovieClip Frame 1Symbol 94 EditableText
"lev_1_btn"Symbol 132 MovieClip Frame 1Symbol 101 Button
"lev_2_btn"Symbol 132 MovieClip Frame 1Symbol 105 Button
"lev_3_btn"Symbol 132 MovieClip Frame 1Symbol 109 Button
"lev_4_btn"Symbol 132 MovieClip Frame 1Symbol 113 Button
"lev_5_btn"Symbol 132 MovieClip Frame 1Symbol 117 Button
"lev_6_btn"Symbol 132 MovieClip Frame 1Symbol 121 Button
"men_btn"Symbol 132 MovieClip Frame 1Symbol 131 Button
"clhlp_btn"Symbol 146 MovieClip Frame 1Symbol 143 Button
"mateIn_txt"Symbol 256 MovieClip Frame 1Symbol 237 EditableText
"numPuz_txt"Symbol 256 MovieClip Frame 1Symbol 238 EditableText
"bc_btn"Symbol 256 MovieClip Frame 1Symbol 241 Button
"rest_btn"Symbol 256 MovieClip Frame 1Symbol 243 Button
"nxt_btn"Symbol 256 MovieClip Frame 1Symbol 248 Button
"ran_btn"Symbol 256 MovieClip Frame 1Symbol 251 Button
"prev_btn"Symbol 256 MovieClip Frame 1Symbol 255 Button
"marker"Symbol 271 MovieClip Frame 1Symbol 263 MovieClip
"marker"Symbol 272 MovieClip Frame 1Symbol 263 MovieClip
"marker"Symbol 273 MovieClip Frame 1Symbol 263 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
ExportAssets (56)Timeline Frame 1Symbol 3 as "energyBar"
ExportAssets (56)Timeline Frame 1Symbol 274 as "__Packages.mx.transitions.OnEnterFrameBeacon"
ExportAssets (56)Timeline Frame 1Symbol 275 as "__Packages.mx.transitions.BroadcasterMX"
ExportAssets (56)Timeline Frame 1Symbol 276 as "__Packages.mx.transitions.Tween"
ExportAssets (56)Timeline Frame 1Symbol 277 as "__Packages.mx.transitions.easing.Strong"
ExportAssets (56)Timeline Frame 1Symbol 278 as "__Packages.mx.transitions.easing.Back"

Labels

#"moveComputer"Frame 1
"moveLoop"Frame 9
"searchDone"Frame 11
"win"Symbol 154 MovieClip Frame 2
"wrong"Symbol 154 MovieClip Frame 94
"normal"Symbol 263 MovieClip Frame 1
"selectedTo"Symbol 263 MovieClip Frame 2
"selected"Symbol 263 MovieClip Frame 3
"disabled"Symbol 263 MovieClip Frame 4
"void"Symbol 271 MovieClip Frame 1
"pawn_w"Symbol 271 MovieClip Frame 2
"knight_w"Symbol 271 MovieClip Frame 3
"rook_w"Symbol 271 MovieClip Frame 4
"bisshop_w"Symbol 271 MovieClip Frame 5
"queen_w"Symbol 271 MovieClip Frame 6
"king_w"Symbol 271 MovieClip Frame 7
"pawn_b"Symbol 271 MovieClip Frame 9
"knight_b"Symbol 271 MovieClip Frame 10
"rook_b"Symbol 271 MovieClip Frame 11
"bisshop_b"Symbol 271 MovieClip Frame 12
"queen_b"Symbol 271 MovieClip Frame 13
"king_b"Symbol 271 MovieClip Frame 14
"void"Symbol 272 MovieClip Frame 1
"pawn_w"Symbol 272 MovieClip Frame 2
"knight_w"Symbol 272 MovieClip Frame 3
"rook_w"Symbol 272 MovieClip Frame 4
"bisshop_w"Symbol 272 MovieClip Frame 5
"queen_w"Symbol 272 MovieClip Frame 6
"king_w"Symbol 272 MovieClip Frame 7
"pawn_b"Symbol 272 MovieClip Frame 9
"knight_b"Symbol 272 MovieClip Frame 10
"rook_b"Symbol 272 MovieClip Frame 11
"bisshop_b"Symbol 272 MovieClip Frame 12
"queen_b"Symbol 272 MovieClip Frame 13
"king_b"Symbol 272 MovieClip Frame 14
"void"Symbol 273 MovieClip Frame 1
"pawn_w"Symbol 273 MovieClip Frame 2
"knight_w"Symbol 273 MovieClip Frame 3
"rook_w"Symbol 273 MovieClip Frame 4
"bisshop_w"Symbol 273 MovieClip Frame 5
"queen_w"Symbol 273 MovieClip Frame 6
"king_w"Symbol 273 MovieClip Frame 7
"pawn_b"Symbol 273 MovieClip Frame 9
"knight_b"Symbol 273 MovieClip Frame 10
"rook_b"Symbol 273 MovieClip Frame 11
"bisshop_b"Symbol 273 MovieClip Frame 12
"queen_b"Symbol 273 MovieClip Frame 13
"king_b"Symbol 273 MovieClip Frame 14




http://swfchan.com/13/61231/info.shtml
Created: 15/4 -2019 16:48:28 Last modified: 15/4 -2019 16:48:28 Server time: 22/12 -2024 18:20:45