///////////// This was programmed by a novice at java who was mostly drunk while doing /////////////the programming. I do not guarantee that implementing this code will not /////////////kill you, someone else, or even make the world explode. Thanks. import java.awt.*; import java.awt.event.*; import java.applet.*; public class lights extends Applet { boolean axa, axb, axc, axd, axe, bxa, bxb, bxc, bxd, bxe, cxa, cxb, cxc, cxd, cxe, dxa, dxb, dxc, dxd, dxe, exa, exb, exc, exd, exe; boolean uwin; boolean c1, c1a, c2, c2a, c3, c3a, c4, c4a, c5, c5a,c6, c6a, c7, c7a, c8, c8a, c9, c9a, c10, c10a, c11, c11a, c12, c12a, c13, c13a, c14, c14a, c15, c15a, c16, c16a, c17, c17a, c18, c18a, c19, c19a, c20, c20a, c21, c21a, c22, c22a, c23, c23a, c24, c24a, c25, c25a; int board; boolean started; Font f = new Font("TimesRoman",Font.BOLD,20); Font db = new Font("TimesRoman",Font.BOLD,25); Font db1 = new Font("TimesRoman",Font.ITALIC,10); Color clr1 = new Color(0.807F,1F,0F); int help; boolean bhelp; boolean reset; boolean sboard; int cboard; boolean selboard; boolean maxmove; int move; int mvrmn; int justwon; int boardover; int gameover; public void init () { int move=0; selboard = false; bhelp = true; int help=0; int board = 0; boolean started = false; boolean startboard = false; uwin = false; axa = false; axb = false; axc = false; axd = false; axe = false; bxa = false; bxb = false; bxc = false; bxd = false; bxe = false; cxa = false; cxb = false; cxc = false; cxd = false; cxe = false; dxa = false; dxb = false; dxc = false; dxd = false; dxe = false; exa = false; exb = false; exc = false; exd = false; exe = false; } public void paint (Graphics g){ if ((move!=0) && (move!=2)){g.setColor(Color.black); g.fillRect(5,375,264,20); } if ((justwon==6) && (move==0)){g.setFont(f); if(board==2){g.setColor(Color.red);g.drawString("Board 1 Perfect!",65,391);} if(board==3){g.setColor(Color.red);g.drawString("Board 2 Perfect!",65,391);} if(board==4){g.setColor(Color.red);g.drawString("Board 3 Perfect!",65,391);} if(board==5){g.setColor(Color.red);g.drawString("Board 4 Perfect!",65,391);} if(board==6){g.setColor(Color.red);g.drawString("Board 5 Perfect!",65,391);} } if ((justwon==7) && (move==0)){g.setFont(f); if(board==7){g.setColor(Color.red);g.drawString("Board 6 Perfect!",65,391);} if(board==8){g.setColor(Color.red);g.drawString("Board 7 Perfect!",65,391);} if(board==9){g.setColor(Color.red);g.drawString("Board 8 Perfect!",65,391);} if(board==10){g.setColor(Color.red);g.drawString("Board 9 Perfect!",65,391);} if(board==11){g.setColor(Color.red);g.drawString("Board 10 Perfect!",65,391);} } if ((justwon==8) && (move==0)){g.setFont(f); if(board==12){g.setColor(Color.red);g.drawString("Board 11 Perfect!",65,391);} if(board==13){g.setColor(Color.red);g.drawString("Board 12 Perfect!",65,391);} if(board==14){g.setColor(Color.red);g.drawString("Board 13 Perfect!",65,391);} if(board==15){g.setColor(Color.red);g.drawString("Board 14 Perfect!",65,391);} if(board==16){g.setColor(Color.red);g.drawString("Board 15 Perfect!",65,391);} } if ((justwon==9) && (move==0)){g.setFont(f); if(board==17){g.setColor(Color.red);g.drawString("Board 16 Perfect!",65,391);} if(board==18){g.setColor(Color.red);g.drawString("Board 17 Perfect!",65,391);} if(board==19){g.setColor(Color.red);g.drawString("Board 18 Perfect!",65,391);} if(board==20){g.setColor(Color.red);g.drawString("Board 19 Perfect!",65,391);} if(board==21){g.setColor(Color.red);g.drawString("Board 20 Perfect!",65,391);} } if ((justwon==10) && (move==0)){g.setFont(f); if(board==22){g.setColor(Color.red);g.drawString("Board 21 Perfect!",65,391);} if(board==23){g.setColor(Color.red);g.drawString("Board 22 Perfect!",65,391);} if(board==24){g.setColor(Color.red);g.drawString("Board 23 Perfect!",65,391);} if(board==25){g.setColor(Color.red);g.drawString("Board 24 Perfect!",65,391);} if(board==26){g.setColor(Color.red);g.drawString("Board 25 Perfect!",65,391);} } if ((justwon==11) && (move==0)){g.setFont(f); if(board==27){g.setColor(Color.red);g.drawString("Board 26 Perfect!",65,391);} if(board==28){g.setColor(Color.red);g.drawString("Board 27 Perfect!",65,391);} if(board==29){g.setColor(Color.red);g.drawString("Board 28 Perfect!",65,391);} if(board==30){g.setColor(Color.red);g.drawString("Board 29 Perfect!",65,391);} if(board==31){g.setColor(Color.red);g.drawString("Board 30 Perfect!",65,391);} } if ((justwon==12) && (move==0)){g.setFont(f); if(board==32){g.setColor(Color.red);g.drawString("Board 31 Perfect!",65,391);} if(board==33){g.setColor(Color.red);g.drawString("Board 32 Perfect!",65,391);} if(board==34){g.setColor(Color.red);g.drawString("Board 33 Perfect!",65,391);} if(board==35){g.setColor(Color.red);g.drawString("Board 34 Perfect!",65,391);} if(board==36){g.setColor(Color.red);g.drawString("Board 35 Perfect!",65,391);} } if ((justwon==13) && (move==0)){g.setFont(f); if(board==37){g.setColor(Color.red);g.drawString("Board 36 Perfect!",65,391);} if(board==38){g.setColor(Color.red);g.drawString("Board 37 Perfect!",65,391);} if(board==39){g.setColor(Color.red);g.drawString("Board 38 Perfect!",65,391);} if(board==40){g.setColor(Color.red);g.drawString("Board 39 Perfect!",65,391);} if(board==41){g.setColor(Color.red);g.drawString("Board 40 Perfect!",65,391);} } if ((justwon==14) && (move==0)){g.setFont(f); if(board==42){g.setColor(Color.red);g.drawString("Board 41 Perfect!",65,391);} if(board==43){g.setColor(Color.red);g.drawString("Board 42 Perfect!",65,391);} if(board==44){g.setColor(Color.red);g.drawString("Board 43 Perfect!",65,391);} if(board==45){g.setColor(Color.red);g.drawString("Board 44 Perfect!",65,391);} if(board==46){g.setColor(Color.red);g.drawString("Board 45 Perfect!",65,391);} } if ((justwon==15) && (move==0)){g.setFont(f); if(board==47){g.setColor(Color.red);g.drawString("Board 46 Perfect!",65,391);} if(board==48){g.setColor(Color.red);g.drawString("Board 47 Perfect!",65,391);} if(board==49){g.setColor(Color.red);g.drawString("Board 48 Perfect!",65,391);} if(board==50){g.setColor(Color.red);g.drawString("Board 49 Perfect!",65,391);} } if ((justwon>6) && (move==0)){g.setFont(f); if(board==2){g.setColor(Color.red);g.drawString(+justwon-6+ " moves over on board 1",35,391);} if(board==3){g.setColor(Color.red);g.drawString(+justwon-6+ " moves over on board 2",35,391);} if(board==4){g.setColor(Color.red);g.drawString(+justwon-6+ " moves over on board 3",35,391);} if(board==5){g.setColor(Color.red);g.drawString(+justwon-6+ " moves over on board 4",35,391);} if(board==6){g.setColor(Color.red);g.drawString(+justwon-6+ " moves over on board 5",35,391);} } if ((justwon>7) && (move==0)){g.setFont(f); if(board==7){g.setColor(Color.red);g.drawString(+justwon-7+ " moves over on board 6",35,391);} if(board==8){g.setColor(Color.red);g.drawString(+justwon-7+ " moves over on board 7",35,391);} if(board==9){g.setColor(Color.red);g.drawString(+justwon-7+ " moves over on board 8",35,391);} if(board==10){g.setColor(Color.red);g.drawString(+justwon-7+ " moves over on board 9",35,391);} if(board==11){g.setColor(Color.red);g.drawString(+justwon-7+ " moves over on board 10",35,391);} } if ((justwon>8) && (move==0)){g.setFont(f); if(board==12){g.setColor(Color.red);g.drawString(+justwon-8+ " moves over on board 11",35,391);} if(board==13){g.setColor(Color.red);g.drawString(+justwon-8+ " moves over on board 12",35,391);} if(board==14){g.setColor(Color.red);g.drawString(+justwon-8+ " moves over on board 13",35,391);} if(board==15){g.setColor(Color.red);g.drawString(+justwon-8+ " moves over on board 14",35,391);} if(board==16){g.setColor(Color.red);g.drawString(+justwon-8+ " moves over on board 15",35,391);} } if ((justwon>9) && (move==0)){g.setFont(f); if(board==17){g.setColor(Color.red);g.drawString(+justwon-9+ " moves over on board 16",35,391);} if(board==18){g.setColor(Color.red);g.drawString(+justwon-9+ " moves over on board 17",35,391);} if(board==19){g.setColor(Color.red);g.drawString(+justwon-9+ " moves over on board 18",35,391);} if(board==20){g.setColor(Color.red);g.drawString(+justwon-9+ " moves over on board 19",35,391);} if(board==21){g.setColor(Color.red);g.drawString(+justwon-9+ " moves over on board 20",35,391);} } if ((justwon>10) && (move==0)){g.setFont(f); if(board==22){g.setColor(Color.red);g.drawString(+justwon-10+ " moves over on board 21",35,391);} if(board==23){g.setColor(Color.red);g.drawString(+justwon-10+ " moves over on board 22",35,391);} if(board==24){g.setColor(Color.red);g.drawString(+justwon-10+ " moves over on board 23",35,391);} if(board==25){g.setColor(Color.red);g.drawString(+justwon-10+ " moves over on board 24",35,391);} if(board==26){g.setColor(Color.red);g.drawString(+justwon-10+ " moves over on board 25",35,391);} } if ((justwon>11) && (move==0)){g.setFont(f); if(board==27){g.setColor(Color.red);g.drawString(+justwon-11+ " moves over on board 26",35,391);} if(board==28){g.setColor(Color.red);g.drawString(+justwon-11+ " moves over on board 27",35,391);} if(board==29){g.setColor(Color.red);g.drawString(+justwon-11+ " moves over on board 28",35,391);} if(board==30){g.setColor(Color.red);g.drawString(+justwon-11+ " moves over on board 29",35,391);} if(board==31){g.setColor(Color.red);g.drawString(+justwon-11+ " moves over on board 30",35,391);} } if ((justwon>12) && (move==0)){g.setFont(f); if(board==32){g.setColor(Color.red);g.drawString(+justwon-12+ " moves over on board 31",35,391);} if(board==33){g.setColor(Color.red);g.drawString(+justwon-12+ " moves over on board 32",35,391);} if(board==34){g.setColor(Color.red);g.drawString(+justwon-12+ " moves over on board 33",35,391);} if(board==35){g.setColor(Color.red);g.drawString(+justwon-12+ " moves over on board 34",35,391);} if(board==36){g.setColor(Color.red);g.drawString(+justwon-12+ " moves over on board 35",35,391);} } if ((justwon>13) && (move==0)){g.setFont(f); if(board==37){g.setColor(Color.red);g.drawString(+justwon-13+ " moves over on board 36",35,391);} if(board==38){g.setColor(Color.red);g.drawString(+justwon-13+ " moves over on board 37",35,391);} if(board==39){g.setColor(Color.red);g.drawString(+justwon-13+ " moves over on board 38",35,391);} if(board==40){g.setColor(Color.red);g.drawString(+justwon-13+ " moves over on board 39",35,391);} if(board==41){g.setColor(Color.red);g.drawString(+justwon-13+ " moves over on board 40",35,391);} } if ((justwon>14) && (move==0)){g.setFont(f); if(board==42){g.setColor(Color.red);g.drawString(+justwon-14+ " moves over on board 41",35,391);} if(board==43){g.setColor(Color.red);g.drawString(+justwon-14+ " moves over on board 42",35,391);} if(board==44){g.setColor(Color.red);g.drawString(+justwon-14+ " moves over on board 43",35,391);} if(board==45){g.setColor(Color.red);g.drawString(+justwon-14+ " moves over on board 44",35,391);} if(board==46){g.setColor(Color.red);g.drawString(+justwon-14+ " moves over on board 45",35,391);} } if ((justwon>15) && (move==0)){g.setFont(f); if(board==47){g.setColor(Color.red);g.drawString(+justwon-15+ " moves over on board 46",35,391);} if(board==48){g.setColor(Color.red);g.drawString(+justwon-15+ " moves over on board 47",35,391);} if(board==49){g.setColor(Color.red);g.drawString(+justwon-15+ " moves over on board 48",35,391);} if(board==50){g.setColor(Color.red);g.drawString(+justwon-15+ " moves over on board 49",35,391);} } if ((justwon>6) && (move==2) && (board>1)){g.setFont(f); g.setColor(Color.red);g.drawString(+gameover+ " moves over for game",35,391);} ///////////////////////////////////////////// if((board>0) && (board<6)){mvrmn=16-move;} if((board>5) && (board<11)){mvrmn=17-move;} if((board>10) && (board<16)){mvrmn=18-move;} if((board>15) && (board<21)){mvrmn=19-move;} if((board>20) && (board<26)){mvrmn=20-move;} if((board>25) && (board<31)){mvrmn=21-move;} if((board>30) && (board<36)){mvrmn=22-move;} if((board>35) && (board<41)){mvrmn=23-move;} if((board>40) && (board<46)){mvrmn=24-move;} if((board>45) && (board<51)){mvrmn=25-move;} if (move==0) {if((board>0) && (board<6)){showStatus("You are on board # " +board+ " This board can be solved in six moves, sixteen is the maximum.");} if((board>5) && (board<11)){showStatus("You are on board # " +board+ " This board can be solved in seven moves, seventeen is the maximum.");} if((board>10) && (board<16)){showStatus("You are on board # " +board+ " This board can be solved in eight moves, eighteen is the maximum.");} if((board>15) && (board<21)){showStatus("You are on board # " +board+ " This board can be solved in nine moves, nineteen is the maximum.");} if((board>20) && (board<26)){showStatus("You are on board # " +board+ " This board can be solved in ten moves, twenty is the maximum.");} if((board>25) && (board<31)){showStatus("You are on board # " +board+ " This board can be solved in eleven moves, twenty-one is the maximum.");} if((board>30) && (board<36)){showStatus("You are on board # " +board+ " This board can be solved in twelve moves, twenty-two is the maximum.");} if((board>35) && (board<41)){showStatus("You are on board # " +board+ " This board can be solved in thirteen moves, twenty-three is the maximum.");} if((board>40) && (board<46)){showStatus("You are on board # " +board+ " This board can be solved in fourteen moves, twenty-four is the maximum.");} if((board>45) && (board<51)){showStatus("You are on board # " +board+ " This board can be solved in fifteen moves, twenty-five is the maximum.");} }else{if(mvrmn==0){showStatus("Too many moves, click anywhere to reset.");} if(mvrmn==1){showStatus("This is your final move.");} if(mvrmn>1){showStatus("You have "+mvrmn+ " moves remaining.");}} g.setColor(Color.blue); g.setFont(db1); g.drawString("Applet by Donnie Burgess",52,353); g.drawString("email: shadowtwin@shadowtwin.com",36,363); g.drawString("www.shadowtwin.com",38,373); g.setFont(db);g.drawString("LIGHTZ OUT",30,300); g.setColor(Color.gray);g.drawRect(1,1,271,271); g.drawRect(210,275,60,30); g.drawRect(210,309,60,30); g.drawRect(210,343,60,30); g.drawRect(45,309,125,30); g.setColor(Color.black); g.setFont(f); g.drawString("Help",220,330); g.drawString("Start",219,296); g.drawString("Reset",217,364); g.drawString("Select Board",53,330); if (board!=0){ g.drawString("Help",220,330); g.drawString("Start",219,296); g.drawString("Reset",217,364); } if (board==51){axa=false;axb=false;axc=false;axd=false;axe=false;bxa=false;bxb=false;bxc=false; bxd=false;bxe=false;cxa=false;cxb=false;cxc=false;cxd=false;cxe=false;dxa=false; dxb=false;dxc=false;dxd=false;dxe=false;exa=false;exb=false;exc=false;exd=false; exe=false; board=52; } if (board==53){axa=false;axb=false;axc=false;axd=false;axe=false;bxa=false;bxb=false;bxc=false; bxd=false;bxe=false;cxa=false;cxb=false;cxc=false;cxd=false;cxe=false;dxa=false; dxb=false;dxc=false;dxd=false;dxe=false;exa=false;exb=false;exc=false;exd=false; exe=true;board=54; } if (board==0){ bxc=true;cxc=true;dxc=true;cxb=true;cxd=true;} if ((board==1) && (started ==true)){started=false;uwin=false;help=0;bhelp=true;cboard=1;move=0; axc=true;cxc=true;exc=true;bxc=false;dxc=false;cxb=false;cxb=false;cxd=false;} if ((board==2) && (started ==true)){justwon=move;boardover=justwon-6;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=2;move=0; axa=true;axb=true;axd=true;axe=true;cxa=true;cxb=true;cxd=true; cxe=true;exa=true;exb=true;exd=true;exe=true;} if ((board==3) && (started ==true)){justwon=move;boardover=justwon-6;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=3;move=0; axb=true;axc=true;axd=true;bxa=true;bxb=true;bxc=true;bxd=true; bxe=true;dxa=true;dxb=true;dxc=true;dxd=true;dxe=true;exb=true; exc=true;exd=true;} if ((board==4) && (started ==true)){justwon=move;boardover=justwon-6;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=4;move=0; axb=true;bxb=true;dxb=true;exb=true;axd=true;exd=true;axe=true; bxe=true;dxe=true;exe=true;} if ((board==5) && (started ==true)){justwon=move;boardover=justwon-6;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=5;move=0; axa=true;bxa=true;cxa=true;dxa=true;axb=true;bxb=true;cxb=true; exb=true;axc=true;bxc=true;cxc=true;exc=true;dxd=true;exd=true; axe=true;bxe=true;dxe=true;exe=true;} if ((board==6) && (started ==true)){justwon=move;boardover=justwon-6;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=6;move=0; axc=true;axd=true;bxe=true;cxc=true;cxd=true;cxe=true;dxe=true; exc=true;exd=true;} if ((board==7) && (started ==true)){justwon=move;boardover=justwon-7;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=7;move=0; axa=true;bxa=true;cxa=true;dxa=true;axb=true;exb=true;axc=true; exc=true;axd=true;exd=true;axe=true;bxe=true;cxe=true;dxe=true;} if ((board==8) && (started ==true)){justwon=move;boardover=justwon-7;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=8;move=0; cxb=true;bxc=true;dxc=true;axd=true;cxd=true;exd=true;bxe=true; dxe=true;} if ((board==9) && (started ==true)){justwon=move;boardover=justwon-7;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=9;move=0; bxa=true;dxa=true;axb=true;bxb=true;cxb=true;dxb=true;exb=true; bxc=true;cxc=true;dxc=true;bxd=true;dxd=true;exd=true;axe=true; bxe=true;cxe=true;} if ((board==10) && (started ==true)){justwon=move;boardover=justwon-7;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=10;move=0; bxa=true;cxa=true;dxa=true;bxb=true;cxb=true;dxb=true;bxc=true; cxc=true;dxc=true;} if ((board==11) && (started ==true)){justwon=move;boardover=justwon-7;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=11;move=0; axa=true;cxa=true;exa=true;axb=true;cxb=true;exb=true;axc=true;cxc=true;exc=true;axd=true; cxd=true;exd=true;bxe=true;cxe=true;dxe=true;} if ((board==12) && (started ==true)){justwon=move;boardover=justwon-8;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=12;move=0; axa=true;bxa=true;cxa=true;dxa=true;exa=true;bxb=true;dxb=true;axc=true;bxc=true;dxc=true; exc=true;bxd=true;cxd=true;dxd=true;bxe=true;dxe=true;} if ((board==13) && (started ==true)){justwon=move;boardover=justwon-8;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=13;move=0; dxa=true;cxb=true;exb=true;bxc=true;dxc=true;axd=true;cxd=true;bxe=true;} if ((board==14) && (started ==true)){justwon=move;boardover=justwon-8;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=14;move=0; bxc=true;bxd=true;bxe=true;} if ((board==15) && (started ==true)){justwon=move;boardover=justwon-8;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=15;move=0; bxb=true;bxd=true;} if ((board==16) && (started ==true)){justwon=move;boardover=justwon-8;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=16;move=0; axa=true;axb=true;axc=true;axd=true;axe=true;bxe=true;cxe=true;dxe=true;exe=true;} if ((board==17) && (started ==true)){justwon=move;boardover=justwon-9;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=17;move=0; cxc=true;bxd=true;cxd=true;dxd=true;axe=true;bxe=true;cxe=true;dxe=true;exe=true;} if ((board==18) && (started ==true)){justwon=move;boardover=justwon-9;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=18;move=0; cxa=true;bxb=true;dxb=true;axc=true;cxc=true;exc=true;bxd=true;dxd=true;cxe=true;} if ((board==19) && (started ==true)){justwon=move;boardover=justwon-9;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=19;move=0; axa=true;cxa=true;exa=true;axc=true;cxc=true;exc=true;axe=true;cxe=true;exe=true;} if ((board==20) && (started ==true)){justwon=move;boardover=justwon-9;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=20;move=0; axc=true;exc=true;} if ((board==21) && (started ==true)){justwon=move;boardover=justwon-9;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=21;move=0; bxa=true;bxb=true;bxc=true;bxd=true;bxe=true;cxa=true;cxc=true;dxa=true;dxc=true;exa=true;} if ((board==22) && (started ==true)){justwon=move;boardover=justwon-10;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=22;move=0; axb=true;axc=true;axd=true;bxa=true;bxe=true;cxa=true;cxe=true;dxa=true;dxe=true;exb=true; exc=true;exd=true;} if ((board==23) && (started ==true)){justwon=move;boardover=justwon-10;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=23;move=0; cxc=true;cxd=true;cxe=true;dxc=true;dxd=true;exc=true;} if ((board==24) && (started ==true)){justwon=move;boardover=justwon-10;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=24;move=0; axc=true;axd=true;bxd=true;bxe=true;cxd=true;dxd=true;exc=true;exd=true;exe=true;} if ((board==25) && (started ==true)){justwon=move;boardover=justwon-10;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=25;move=0; axa=true;axb=true;axc=true;axd=true;bxb=true;bxc=true;bxd=true;bxe=true;cxc=true;cxd=true; cxe=true;dxd=true;dxe=true;exe=true;} if ((board==26) && (started ==true)){justwon=move;boardover=justwon-10;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=26;move=0; axa=true;axb=true;axc=true;axd=true;axe=true;bxc=true;cxc=true;dxc=true;exa=true;exb=true; exc=true;exd=true;exe=true;} if ((board==27) && (started ==true)){justwon=move;boardover=justwon-11;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=27;move=0; bxb=true;cxa=true;cxb=true;cxc=true;cxd=true;cxe=true;dxb=true;} if ((board==28) && (started ==true)){justwon=move;boardover=justwon-11;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=28;move=0; cxc=true;cxd=true;cxe=true;dxc=true;dxd=true;dxe=true;exc=true;exd=true;exe=true;} if ((board==29) && (started ==true)){justwon=move;boardover=justwon-11;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=29;move=0; bxb=true;} if ((board==30) && (started ==true)){justwon=move;boardover=justwon-11;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=30;move=0; cxc=true;} if ((board==31) && (started ==true)){justwon=move;boardover=justwon-11;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=31;move=0; axa=true;axb=true;axc=true;axd=true;axe=true;bxb=true;cxc=true;dxd=true;exa=true;exb=true; exc=true;exd=true;exe=true;} if ((board==32) && (started ==true)){justwon=move;boardover=justwon-12;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=32;move=0; axa=true;axe=true;bxa=true;bxd=true;bxe=true;cxa=true;cxc=true;cxe=true;dxa=true;dxb=true; dxe=true;exa=true;exe=true;} if ((board==33) && (started ==true)){justwon=move;boardover=justwon-12;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=33;move=0; axc=true;axd=true;axe=true;cxc=true;dxa=true;dxb=true;dxe=true;exc=true;exd=true;exe=true;} if ((board==34) && (started ==true)){justwon=move;boardover=justwon-12;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=34;move=0; axb=true;axc=true;bxd=true;bxe=true;cxa=true;cxd=true;cxe=true;dxe=true;exa=true;exb=true; exc=true;exd=true;exe=true;} if ((board==35) && (started ==true)){justwon=move;boardover=justwon-12;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=35;move=0; axc=true;axd=true;bxb=true;cxd=true;dxa=true;dxb=true;exa=true;exc=true;exd=true;} if ((board==36) && (started ==true)){justwon=move;boardover=justwon-12;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=36;move=0; axc=true;axd=true;axe=true;bxb=true;bxd=true;cxa=true;cxd=true;dxb=true;dxd=true;exc=true; exd=true;exe=true;} if ((board==37) && (started ==true)){justwon=move;boardover=justwon-13;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=37;move=0; bxb=true;bxc=true;bxd=true;cxb=true;cxc=true;cxd=true;dxb=true;dxc=true;dxd=true;} if ((board==38) && (started ==true)){justwon=move;boardover=justwon-13;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=38;move=0; axa=true;axc=true;axe=true;bxb=true;bxd=true;cxa=true;cxc=true;cxe=true;dxb=true;dxd=true; exa=true;exc=true;exe=true;} if ((board==39) && (started ==true)){justwon=move;boardover=justwon-13;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=39;move=0; axb=true;axc=true;bxa=true;bxc=true;bxe=true;cxd=true;dxa=true;dxd=true;dxe=true;} if ((board==40) && (started ==true)){justwon=move;boardover=justwon-13;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=40;move=0; bxc=true;dxc=true;} if ((board==41) && (started ==true)){justwon=move;boardover=justwon-13;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=41;move=0; axa=true;bxb=true;cxc=true;cxd=true;cxe=true;dxb=true;exa=true;} if ((board==42) && (started ==true)){justwon=move;boardover=justwon-14;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=42;move=0; axa=true;axb=true;axc=true;axd=true;axe=true;bxa=true;bxc=true;bxe=true;cxa=true;cxc=true;cxe=true; dxb=true;dxd=true;} if ((board==43) && (started ==true)){justwon=move;boardover=justwon-14;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=43;move=0; axa=true;axb=true;axc=true;bxb=true;bxc=true;bxd=true;bxe=true;cxc=true;cxe=true;dxb=true; dxe=true;exa=true;} if ((board==44) && (started ==true)){justwon=move;boardover=justwon-14;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=44;move=0; axb=true;axc=true;bxb=true;bxc=true;bxe=true;cxc=true;cxd=true;cxe=true;dxb=true;dxc=true; dxe=true;exb=true;exc=true;} if ((board==45) && (started ==true)){justwon=move;boardover=justwon-14;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=45;move=0; axb=true;axd=true;axe=true;bxa=true;bxd=true;dxa=true;cxa=true;cxb=true;cxc=true;cxd=true; cxe=true;dxa=true;dxc=true;dxd=true;exc=true;exe=true;} if ((board==46) && (started ==true)){justwon=move;boardover=justwon-14;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=46;move=0; axc=true;bxb=true;bxc=true;bxd=true;cxa=true;cxb=true;cxc=true;cxd=true;cxe=true;dxb=true; dxc=true;dxd=true;exc=true;} if ((board==47) && (started ==true)){justwon=move;boardover=justwon-15;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=47;move=0; axb=true;axc=true;bxb=true;bxd=true;cxa=true;cxb=true;cxc=true;dxb=true;exb=true;exd=true; exe=true;} if ((board==48) && (started ==true)){justwon=move;boardover=justwon-15;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=48;move=0; axb=true;axd=true;cxc=true;exb=true;exd=true;} if ((board==49) && (started ==true)){justwon=move;boardover=justwon-15;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=49;move=0; axa=true;axe=true;bxb=true;bxd=true;cxc=true;dxb=true;dxd=true;exa=true;exe=true;} if ((board==50) && (started ==true)){justwon=move;boardover=justwon-15;gameover=gameover+boardover; started=false;uwin=false;help=0;bhelp=true;cboard=50;move=0; axa=true;axb=true;axc=true;axd=true;axe=true;bxa=true;bxb=true;bxc=true;bxd=true;bxe=true; cxa=true;cxb=true;cxc=true;cxd=true;cxe=true;dxa=true;dxb=true;dxc=true;dxd=true;dxe=true; exa=true;exb=true;exc=true;exd=true;exe=true;} if(c1 == true){axa=false;c1=false;} if(c1a == true){axa=true;c1a=false;} if(c2 == true){axb=false;c2=false;} if(c2a == true){axb=true;c2a=false;} if(c3 == true){axc=false;c3=false;} if(c3a == true){axc=true;c3a=false;} if(c4 == true){axd=false;c4=false;} if(c4a == true){axd=true;c4a=false;} if(c5 == true){axe=false;c5=false;} if(c5a == true){axe=true;c5a=false;} if(c6 == true){bxa=false;c6=false;} if(c6a == true){bxa=true;c6a=false;} if(c7 == true){bxb=false;c7=false;} if(c7a == true){bxb=true;c7a=false;} if(c8 == true){bxc=false;c8=false;} if(c8a == true){bxc=true;c8a=false;} if(c9 == true){bxd=false;c9=false;} if(c9a == true){bxd=true;c9a=false;} if(c10 == true){bxe=false;c10=false;} if(c10a == true){bxe=true;c10a=false;} if(c11 == true){cxa=false;c11=false;} if(c11a == true){cxa=true;c11a=false;} if(c12 == true){cxb=false;c12=false;} if(c12a == true){cxb=true;c12a=false;} if(c13 == true){cxc=false;c13=false;} if(c13a == true){cxc=true;c13a=false;} if(c14 == true){cxd=false;c14=false;} if(c14a == true){cxd=true;c14a=false;} if(c15 == true){cxe=false;c15=false;} if(c15a == true){cxe=true;c15a=false;} if(c16 == true){dxa=false;c16=false;} if(c16a == true){dxa=true;c16a=false;} if(c17 == true){dxb=false;c17=false;} if(c17a == true){dxb=true;c17a=false;} if(c18 == true){dxc=false;c18=false;} if(c18a == true){dxc=true;c18a=false;} if(c19 == true){dxd=false;c19=false;} if(c19a == true){dxd=true;c19a=false;} if(c20 == true){dxe=false;c20=false;} if(c20a == true){dxe=true;c20a=false;} if(c21 == true){exa=false;c21=false;} if(c21a == true){exa=true;c21a=false;} if(c22 == true){exb=false;c22=false;} if(c22a == true){exb=true;c22a=false;} if(c23 == true){exc=false;c23=false;} if(c23a == true){exc=true;c23a=false;} if(c24 == true){exd=false;c24=false;} if(c24a == true){exd=true;c24a=false;} if(c25 == true){exe=false;c25=false;} if(c25a == true){exe=true;c25a=false;} if(axa==true){g.setColor(Color.red);g.fillRect(4,4,50,50);} if(axa!=true){g.setColor(Color.gray);g.fillRect(4,4,50,50);} if(axb==true){g.setColor(Color.red);g.fillRect(4,58,50,50);} if(axb!=true){g.setColor(Color.gray);g.fillRect(4,58,50,50);} if(axc==true){g.setColor(Color.red);g.fillRect(4,112,50,50);} if(axc!=true){g.setColor(Color.gray);g.fillRect(4,112,50,50);} if(axd==true){g.setColor(Color.red);g.fillRect(4,166,50,50);} if(axd!=true){g.setColor(Color.gray);g.fillRect(4,166,50,50);} if(axe==true){g.setColor(Color.red);g.fillRect(4,220,50,50);} if(axe!=true){g.setColor(Color.gray);g.fillRect(4,220,50,50);} if(bxa==true){g.setColor(Color.red);g.fillRect(58,4,50,50);} if(bxa!=true){g.setColor(Color.gray);g.fillRect(58,4,50,50);} if(bxb==true){g.setColor(Color.red);g.fillRect(58,58,50,50);} if(bxb!=true){g.setColor(Color.gray);g.fillRect(58,58,50,50);} if(bxc==true){g.setColor(Color.red);g.fillRect(58,112,50,50);} if(bxc!=true){g.setColor(Color.gray);g.fillRect(58,112,50,50);} if(bxd==true){g.setColor(Color.red);g.fillRect(58,166,50,50);} if(bxd!=true){g.setColor(Color.gray);g.fillRect(58,166,50,50);} if(bxe==true){g.setColor(Color.red);g.fillRect(58,220,50,50);} if(bxe!=true){g.setColor(Color.gray);g.fillRect(58,220,50,50);} if(cxa==true){g.setColor(Color.red);g.fillRect(112,4,50,50);} if(cxa!=true){g.setColor(Color.gray);g.fillRect(112,4,50,50);} if(cxb==true){g.setColor(Color.red);g.fillRect(112,58,50,50);} if(cxb!=true){g.setColor(Color.gray);g.fillRect(112,58,50,50);} if(cxc==true){g.setColor(Color.red);g.fillRect(112,112,50,50);} if(cxc!=true){g.setColor(Color.gray);g.fillRect(112,112,50,50);} if(cxd==true){g.setColor(Color.red);g.fillRect(112,166,50,50);} if(cxd!=true){g.setColor(Color.gray);g.fillRect(112,166,50,50);} if(cxe==true){g.setColor(Color.red);g.fillRect(112,220,50,50);} if(cxe!=true){g.setColor(Color.gray);g.fillRect(112,220,50,50);} if(dxa==true){g.setColor(Color.red);g.fillRect(166,4,50,50);} if(dxa!=true){g.setColor(Color.gray);g.fillRect(166,4,50,50);} if(dxb==true){g.setColor(Color.red);g.fillRect(166,58,50,50);} if(dxb!=true){g.setColor(Color.gray);g.fillRect(166,58,50,50);} if(dxc==true){g.setColor(Color.red);g.fillRect(166,112,50,50);} if(dxc!=true){g.setColor(Color.gray);g.fillRect(166,112,50,50);} if(dxd==true){g.setColor(Color.red);g.fillRect(166,166,50,50);} if(dxd!=true){g.setColor(Color.gray);g.fillRect(166,166,50,50);} if(dxe==true){g.setColor(Color.red);g.fillRect(166,220,50,50);} if(dxe!=true){g.setColor(Color.gray);g.fillRect(166,220,50,50);} if(exa==true){g.setColor(Color.red);g.fillRect(220,4,50,50);} if(exa!=true){g.setColor(Color.gray);g.fillRect(220,4,50,50);} if(exb==true){g.setColor(Color.red);g.fillRect(220,58,50,50);} if(exb!=true){g.setColor(Color.gray);g.fillRect(220,58,50,50);} if(exc==true){g.setColor(Color.red);g.fillRect(220,112,50,50);} if(exc!=true){g.setColor(Color.gray);g.fillRect(220,112,50,50);} if(exd==true){g.setColor(Color.red);g.fillRect(220,166,50,50);} if(exd!=true){g.setColor(Color.gray);g.fillRect(220,166,50,50);} if(exe==true){g.setColor(Color.red);g.fillRect(220,220,50,50);} if(exe!=true){g.setColor(Color.gray);g.fillRect(220,220,50,50);} if ((axa==false) && (axb==false) && (axc==false) && (axd==false) &&(axe==false)&& (bxa==false) && (bxb==false) && (bxc==false) && (bxd==false) &&(bxe==false)&& (cxa==false) && (cxb==false) && (cxc==false) && (cxd==false) &&(cxe==false)&& (dxa==false) && (dxb==false) && (dxc==false) && (dxd==false) &&(dxe==false)&& (exa==false) && (exb==false) && (exc==false) && (exd==false) &&(exe==false)&& (board<51)) {uwin=true;} if ((uwin==true) && (board <50) && (board>0) && (maxmove==false)){play(getCodeBase(), "brdstrt.au");started=true;board=board+1;repaint();} if ((uwin==true) && (board ==50)){play(getCodeBase(), "brdstrt.au");started=true;board=0;repaint();} if(reset==true){play(getCodeBase(), "bpsh.au"); if(cboard==1){board=1;started=true;reset=false;} if(cboard==2){board=2;started=true;reset=false;gameover=gameover+6;} if(cboard==3){board=3;started=true;reset=false;gameover=gameover+6;} if(cboard==4){board=4;started=true;reset=false;gameover=gameover+6;} if(cboard==5){board=5;started=true;reset=false;gameover=gameover+6;} if(cboard==6){board=6;started=true;reset=false;gameover=gameover+6;} if(cboard==7){board=7;started=true;reset=false;gameover=gameover+7;} if(cboard==8){board=8;started=true;reset=false;gameover=gameover+7;} if(cboard==9){board=9;started=true;reset=false;gameover=gameover+7;} if(cboard==10){board=10;started=true;reset=false;gameover=gameover+7;} if(cboard==11){board=11;started=true;reset=false;gameover=gameover+7;} if(cboard==12){board=12;started=true;reset=false;gameover=gameover+8;} if(cboard==13){board=13;started=true;reset=false;gameover=gameover+8;} if(cboard==14){board=14;started=true;reset=false;gameover=gameover+8;} if(cboard==15){board=15;started=true;reset=false;gameover=gameover+8;} if(cboard==16){board=16;started=true;reset=false;gameover=gameover+8;} if(cboard==17){board=17;started=true;reset=false;gameover=gameover+9;} if(cboard==18){board=18;started=true;reset=false;gameover=gameover+9;} if(cboard==19){board=19;started=true;reset=false;gameover=gameover+9;} if(cboard==20){board=20;started=true;reset=false;gameover=gameover+9;} if(cboard==21){board=21;started=true;reset=false;gameover=gameover+9;} if(cboard==22){board=22;started=true;reset=false;gameover=gameover+10;} if(cboard==23){board=23;started=true;reset=false;gameover=gameover+10;} if(cboard==24){board=24;started=true;reset=false;gameover=gameover+10;} if(cboard==25){board=25;started=true;reset=false;gameover=gameover+10;} if(cboard==26){board=26;started=true;reset=false;gameover=gameover+10;} if(cboard==27){board=27;started=true;reset=false;gameover=gameover+11;} if(cboard==28){board=28;started=true;reset=false;gameover=gameover+11;} if(cboard==29){board=29;started=true;reset=false;gameover=gameover+11;} if(cboard==30){board=30;started=true;reset=false;gameover=gameover+11;} if(cboard==31){board=31;started=true;reset=false;gameover=gameover+11;} if(cboard==32){board=32;started=true;reset=false;gameover=gameover+12;} if(cboard==33){board=33;started=true;reset=false;gameover=gameover+12;} if(cboard==34){board=34;started=true;reset=false;gameover=gameover+12;} if(cboard==35){board=35;started=true;reset=false;gameover=gameover+12;} if(cboard==36){board=36;started=true;reset=false;gameover=gameover+12;} if(cboard==37){board=37;started=true;reset=false;gameover=gameover+13;} if(cboard==38){board=38;started=true;reset=false;gameover=gameover+13;} if(cboard==39){board=39;started=true;reset=false;gameover=gameover+13;} if(cboard==40){board=40;started=true;reset=false;gameover=gameover+13;} if(cboard==41){board=41;started=true;reset=false;gameover=gameover+13;} if(cboard==42){board=42;started=true;reset=false;gameover=gameover+14;} if(cboard==43){board=43;started=true;reset=false;gameover=gameover+14;} if(cboard==44){board=44;started=true;reset=false;gameover=gameover+14;} if(cboard==45){board=45;started=true;reset=false;gameover=gameover+14;} if(cboard==46){board=46;started=true;reset=false;gameover=gameover+14;} if(cboard==47){board=47;started=true;reset=false;gameover=gameover+15;} if(cboard==48){board=48;started=true;reset=false;gameover=gameover+15;} if(cboard==49){board=49;started=true;reset=false;gameover=gameover+15;} if(cboard==50){board=50;started=true;reset=false;gameover=gameover+15;} move=0; } if(maxmove==true){play(getCodeBase(), "brdstrt.au"); if(cboard==1){board=1;started=true;move=0;maxmove=false;} if(cboard==2){board=2;started=true;move=0;maxmove=false;gameover=gameover+6;} if(cboard==3){board=3;started=true;move=0;maxmove=false;gameover=gameover+6;} if(cboard==4){board=4;started=true;move=0;maxmove=false;gameover=gameover+6;} if(cboard==5){board=5;started=true;move=0;maxmove=false;gameover=gameover+6;} if(cboard==6){board=6;started=true;move=0;maxmove=false;gameover=gameover+6;} if(cboard==7){board=7;started=true;move=0;maxmove=false;gameover=gameover+7;} if(cboard==8){board=8;started=true;move=0;maxmove=false;gameover=gameover+7;} if(cboard==9){board=9;started=true;move=0;maxmove=false;gameover=gameover+7;} if(cboard==10){board=10;started=true;move=0;maxmove=false;gameover=gameover+7;} if(cboard==11){board=11;started=true;move=0;maxmove=false;gameover=gameover+7;} if(cboard==12){board=12;started=true;move=0;maxmove=false;gameover=gameover+8;} if(cboard==13){board=13;started=true;move=0;maxmove=false;gameover=gameover+8;} if(cboard==14){board=14;started=true;move=0;maxmove=false;gameover=gameover+8;} if(cboard==15){board=15;started=true;move=0;maxmove=false;gameover=gameover+8;} if(cboard==16){board=16;started=true;move=0;maxmove=false;gameover=gameover+8;} if(cboard==17){board=17;started=true;move=0;maxmove=false;gameover=gameover+9;} if(cboard==18){board=18;started=true;move=0;maxmove=false;gameover=gameover+9;} if(cboard==19){board=19;started=true;move=0;maxmove=false;gameover=gameover+9;} if(cboard==20){board=20;started=true;move=0;maxmove=false;gameover=gameover+9;} if(cboard==21){board=21;started=true;move=0;maxmove=false;gameover=gameover+9;} if(cboard==22){board=22;started=true;move=0;maxmove=false;gameover=gameover+10;} if(cboard==23){board=23;started=true;move=0;maxmove=false;gameover=gameover+10;} if(cboard==24){board=24;started=true;move=0;maxmove=false;gameover=gameover+10;} if(cboard==25){board=25;started=true;move=0;maxmove=false;gameover=gameover+10;} if(cboard==26){board=26;started=true;move=0;maxmove=false;gameover=gameover+10;} if(cboard==27){board=27;started=true;move=0;maxmove=false;gameover=gameover+11;} if(cboard==28){board=28;started=true;move=0;maxmove=false;gameover=gameover+11;} if(cboard==29){board=29;started=true;move=0;maxmove=false;gameover=gameover+11;} if(cboard==30){board=30;started=true;move=0;maxmove=false;gameover=gameover+11;} if(cboard==31){board=31;started=true;move=0;maxmove=false;gameover=gameover+11;} if(cboard==32){board=32;started=true;move=0;maxmove=false;gameover=gameover+12;} if(cboard==33){board=33;started=true;move=0;maxmove=false;gameover=gameover+12;} if(cboard==34){board=34;started=true;move=0;maxmove=false;gameover=gameover+12;} if(cboard==35){board=35;started=true;move=0;maxmove=false;gameover=gameover+12;} if(cboard==36){board=36;started=true;move=0;maxmove=false;gameover=gameover+12;} if(cboard==37){board=37;started=true;move=0;maxmove=false;gameover=gameover+13;} if(cboard==38){board=38;started=true;move=0;maxmove=false;gameover=gameover+13;} if(cboard==39){board=39;started=true;move=0;maxmove=false;gameover=gameover+13;} if(cboard==40){board=40;started=true;move=0;maxmove=false;gameover=gameover+13;} if(cboard==41){board=41;started=true;move=0;maxmove=false;gameover=gameover+13;} if(cboard==42){board=42;started=true;move=0;maxmove=false;gameover=gameover+14;} if(cboard==43){board=43;started=true;move=0;maxmove=false;gameover=gameover+14;} if(cboard==44){board=44;started=true;move=0;maxmove=false;gameover=gameover+14;} if(cboard==45){board=45;started=true;move=0;maxmove=false;gameover=gameover+14;} if(cboard==46){board=46;started=true;move=0;maxmove=false;gameover=gameover+14;} if(cboard==47){board=47;started=true;move=0;maxmove=false;gameover=gameover+15;} if(cboard==48){board=48;started=true;move=0;maxmove=false;gameover=gameover+15;} if(cboard==49){board=49;started=true;move=0;maxmove=false;gameover=gameover+15;} if(cboard==50){board=50;started=true;move=0;maxmove=false;gameover=gameover+15;} }repaint(); } public void update(Graphics g){ paint(g); } public String getAppletInfo() { return "LightzOut.java by Donnie Burgess (aka Shadowtwin)"; } public boolean mouseEnter(java.awt.Event evt, int x, int y) { // Showing Author if(( x>0 ) && (x<274) && (y>0) && (y<600)){ showStatus("Lightz Out by Donnie Burgess (aka Shadowtwin)");} return true; } public boolean mouseDown(Event evt, int x, int y){ if((x>3) && (x<271) && (y>3) && (y<271) &&(board>0) && (board<6) && (move==16)){ c1=true;c2=true; c3=true;c4=true;c5=true;c6=true;c7=true;c8=true;c9=true;c10=true;c11=true;c12=true; c13=true;c14=true;c15=true;c16=true;c17=true;c18=true;c19=true;c20=true;c21=true; c22=true;c23=true;c24=true;c25=true;maxmove=true; } if((x>3) && (x<271) && (y>3) && (y<271) &&(board>5) && (board<11)&& (move==17)){ c1=true;c2=true; c3=true;c4=true;c5=true;c6=true;c7=true;c8=true;c9=true;c10=true;c11=true;c12=true; c13=true;c14=true;c15=true;c16=true;c17=true;c18=true;c19=true;c20=true;c21=true; c22=true;c23=true;c24=true;c25=true;maxmove=true; } if((x>3) && (x<271) && (y>3) && (y<271) &&(board>10) && (board<16)&& (move==18)){ c1=true;c2=true; c3=true;c4=true;c5=true;c6=true;c7=true;c8=true;c9=true;c10=true;c11=true;c12=true; c13=true;c14=true;c15=true;c16=true;c17=true;c18=true;c19=true;c20=true;c21=true; c22=true;c23=true;c24=true;c25=true;maxmove=true; } if((x>3) && (x<271) && (y>3) && (y<271) &&(board>15) && (board<21)&& (move==19)){ c1=true;c2=true; c3=true;c4=true;c5=true;c6=true;c7=true;c8=true;c9=true;c10=true;c11=true;c12=true; c13=true;c14=true;c15=true;c16=true;c17=true;c18=true;c19=true;c20=true;c21=true; c22=true;c23=true;c24=true;c25=true;maxmove=true; } if((x>3) && (x<271) && (y>3) && (y<271) &&(board>20) && (board<26)&& (move==20)){ c1=true;c2=true; c3=true;c4=true;c5=true;c6=true;c7=true;c8=true;c9=true;c10=true;c11=true;c12=true; c13=true;c14=true;c15=true;c16=true;c17=true;c18=true;c19=true;c20=true;c21=true; c22=true;c23=true;c24=true;c25=true;maxmove=true; } if((x>3) && (x<271) && (y>3) && (y<271) &&(board>25) && (board<31)&& (move==21)){ c1=true;c2=true; c3=true;c4=true;c5=true;c6=true;c7=true;c8=true;c9=true;c10=true;c11=true;c12=true; c13=true;c14=true;c15=true;c16=true;c17=true;c18=true;c19=true;c20=true;c21=true; c22=true;c23=true;c24=true;c25=true;maxmove=true; } if((x>3) && (x<271) && (y>3) && (y<271) &&(board>30) && (board<36)&& (move==22)){ c1=true;c2=true; c3=true;c4=true;c5=true;c6=true;c7=true;c8=true;c9=true;c10=true;c11=true;c12=true; c13=true;c14=true;c15=true;c16=true;c17=true;c18=true;c19=true;c20=true;c21=true; c22=true;c23=true;c24=true;c25=true;maxmove=true; } if((x>3) && (x<271) && (y>3) && (y<271) &&(board>35) && (board<41)&& (move==23)){ c1=true;c2=true; c3=true;c4=true;c5=true;c6=true;c7=true;c8=true;c9=true;c10=true;c11=true;c12=true; c13=true;c14=true;c15=true;c16=true;c17=true;c18=true;c19=true;c20=true;c21=true; c22=true;c23=true;c24=true;c25=true;maxmove=true; } if((x>3) && (x<271) && (y>3) && (y<271) &&(board>40) && (board<46)&& (move==24)){ c1=true;c2=true; c3=true;c4=true;c5=true;c6=true;c7=true;c8=true;c9=true;c10=true;c11=true;c12=true; c13=true;c14=true;c15=true;c16=true;c17=true;c18=true;c19=true;c20=true;c21=true; c22=true;c23=true;c24=true;c25=true;maxmove=true; } if((x>3) && (x<271) && (y>3) && (y<271) &&(board>45) && (board<51)&& (move==25)){ c1=true;c2=true; c3=true;c4=true;c5=true;c6=true;c7=true;c8=true;c9=true;c10=true;c11=true;c12=true; c13=true;c14=true;c15=true;c16=true;c17=true;c18=true;c19=true;c20=true;c21=true; c22=true;c23=true;c24=true;c25=true;maxmove=true; } if((x>209) && (x<271) && (y>274) && (y<306) && (board==0)){play(getCodeBase(), "brdstrt.au");board=1;started=true; } if((x>209) && (x<271) && (y>308) && (y<340)){ if((bhelp==true)&&(help<2)){play(getCodeBase(), "bpsh.au"); if((help==0)&&(board==1)){c3=true;c4a=true;c5a=true;c9a=true;} if((help==1)&&(board==1)){c13=true;c9=true;c14a=true;c19a=true;c15a=true;} if((help==0)&&(board==2)){c11=true;c12=true;c7a=true;c17a=true;c13a=true;} if((help==1)&&(board==2)){c21=true;c22=true;c17=true;c23a=true;} if((help==0)&&(board==3)){c2=true;c3=true;c4=true;c8=true;} if((help==1)&&(board==3)){c22=true;c23=true;c24=true;c18=true;} if((help==0)&&(board==4)){c21a=true;c16a=true;c22=true;} if((help==1)&&(board==4)){c4=true;c5=true;c10=true;} if((help==0)&&(board==5)){c5=true;c10=true;c4a=true;} if((help==1)&&(board==5)){c20=true;c24=true;c25=true;} if((help==0)&&(board==6)){c22a=true;c23=true;c24=true;c18a=true;} if((help==1)&&(board==6)){c10=true;c14=true;c15=true;c20=true;} if((help==0)&&(board==7)){c14a=true;c10=true;c15=true;c20=true;} if((help==1)&&(board==7)){c6=true;c11=true;c16=true;c12a=true;} if((help==0)&&(board==8)){c13a=true;c12=true;c8=true;c18=true;c14=true;} if((help==1)&&(board==8)){c13=true;c9a=true;c14a=true;c15a=true;c19a=true;} if((help==0)&&(board==9)){c16=true;c12=true;c17=true;c22=true;c18=true;} if((help==1)&&(board==9)){c12a=true;c8=true;c13=true;c18a=true;c14a=true;} if((help==0)&&(board==10)){c11=true;c16=true;c21a=true;c17=true;} if((help==1)&&(board==10)){c21=true;c16a=true;c22a=true;} if((help==0)&&(board==11)){c2=true;c7a=true;c6a=true;c8a=true;c12=true;} if((help==1)&&(board==11)){c12a=true;c7=true;c11=true;c13=true;c17a=true;} if((help==0)&&(board==12)){c3=true;c2a=true;c4a=true;c8=true;} if((help==1)&&(board==12)){c13a=true;c8a=true;c12a=true;c14=true;c18=true;} if((help==0)&&(board==13)){c18=true;c17a=true;c13a=true;c23a=true;c19a=true;} if((help==1)&&(board==13)){c4=true;c3a=true;c5a=true;c9a=true;} if((help==0)&&(board==14)){c9=true;c13a=true;c14a=true;c15a=true;c19a=true;} if((help==1)&&(board==14)){c14=true;c18a=true;c19=true;c20a=true;c24a=true;} if((help==0)&&(board==15)){c19a=true;c23a=true;c24a=true;c25a=true;} if((help==1)&&(board==15)){c20a=true;c15a=true;c25=true;c19=true;} if((help==0)&&(board==16)){c18a=true;c19a=true;c20=true;c14a=true;c24a=true;} if((help==1)&&(board==16)){c23a=true;c24=true;c25=true;c19=true;} if((help==0)&&(board==17)){c6a=true;c11a=true;c16a=true;c12a=true;} if((help==1)&&(board==17)){c6=true;c2a=true;c7a=true;c12=true;c8a=true;} if((help==0)&&(board==18)){c2a=true;c6a=true;c7=true;c8a=true;c12a=true;} if((help==1)&&(board==18)){c12=true;c16a=true;c17=true;c18a=true;c22a=true;} if((help==0)&&(board==19)){c17a=true;c21=true;c22a=true;c23=true;} if((help==1)&&(board==19)){c2a=true;c3=true;c4a=true;c8a=true;} if((help==0)&&(board==20)){c2a=true;c3=true;c4a=true;c8a=true;} if((help==1)&&(board==20)){c8=true;c12a=true;c13a=true;c14a=true;c18a=true;} if((help==0)&&(board==21)){c17a=true;c21=true;c22a=true;c23a=true;} if((help==1)&&(board==21)){c13=true;c17=true;c18=true;c19a=true;c23=true;} if((help==0)&&(board==22)){c18a=true;c22=true;c23=true;c24=true;} if((help==1)&&(board==22)){c9a=true;c13a=true;c14a=true;c15=true;c19a=true;} if((help==0)&&(board==23)){c3a=true;c4a=true;c5a=true;c9a=true;} if((help==1)&&(board==23)){c14=true;c18=true;c19=true;c20a=true;c24a=true;} if((help==0)&&(board==24)){c4=true;c8a=true;c9=true;c10=true;c14=true;} if((help==1)&&(board==24)){c14a=true;c18a=true;c19=true;c20a=true;c24=true;} if((help==0)&&(board==25)){c9=true;c13=true;c14=true;c15=true;c19=true;} if((help==1)&&(board==25)){c20=true;c24a=true;c25=true;} }help=help+1;move=move+1;} if((x>209) && (x<271) && (y>342) && (y<374) && (board>0) && (board<51)){c1=true;c2=true; c3=true;c4=true;c5=true;c6=true;c7=true;c8=true;c9=true;c10=true;c11=true;c12=true; c13=true;c14=true;c15=true;c16=true;c17=true;c18=true;c19=true;c20=true;c21=true; c22=true;c23=true;c24=true;c25=true;reset=true;} if((x>44) && (x<171) && (y>308) && (y<340)){ if(board==0){board=51;} if(board==52){board=53;} } if (board > 0){ if(( x>3) && (x<55) && (y>3) && (y<55) && (!maxmove)){play(getCodeBase(), "bpsh.au"); if (board<51){ move=move+1; if (axa==true){c1=true;} if (axa==false){c1a=true;} if (axb==true){c2=true;} if (axb==false){c2a=true;} if (bxa==true){c6=true;} if (bxa==false){c6a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=6;board=1;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25a=true;move=10;board=26;started=true;} } if(( x>57) && (x<109) && (y>3) && (y<55) && (!maxmove)){play(getCodeBase(), "bpsh.au"); if (board<51){move=move+1; if (axa==true){c1=true;} if (axa==false){c1a=true;} if (bxa==true){c6=true;} if (bxa==false){c6a=true;} if (cxa==true){c11=true;} if (cxa==false){c11a=true;} if (bxb==true){c7=true;} if (bxb==false){c7a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=6;board=2;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=11;board=27;started=true;} } if(( x>111) && ( x<163) && (y>3) && (y<55) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (bxa==true){c6=true;} if (bxa==false){c6a=true;} if (cxa==true){c11=true;} if (cxa==false){c11a=true;} if (dxa==true){c16=true;} if (dxa==false){c16a=true;} if (cxb==true){c12=true;} if (cxb==false){c12a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=6;board=3;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25a=true;move=11;board=28;started=true;} } if(( x>165) && ( x<217) && (y>3) && (y<55) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (cxa==true){c11=true;} if (cxa==false){c11a=true;} if (dxa==true){c16=true;} if (dxa==false){c16a=true;} if (exa==true){c21=true;} if (exa==false){c21a=true;} if (dxb==true){c17=true;} if (dxb==false){c17a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=6;board=4;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=11;board=29;started=true;} } if(( x>219) && ( x<271) && (y>3) && (y<55) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (dxa==true){c16=true;} if (dxa==false){c16a=true;} if (exa==true){c21=true;} if (exa==false){c21a=true;} if (exb==true){c22=true;} if (exb==false){c22a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=6;board=5;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=11;board=30;started=true;} } if(( x>3) && (x<55) && (y>57) && (y<109) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (axa==true){c1=true;} if (axa==false){c1a=true;} if (axb==true){c2=true;} if (axb==false){c2a=true;} if (axc==true){c3=true;} if (axc==false){c3a=true;} if (bxb==true){c7=true;} if (bxb==false){c7a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=6;board=6;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25a=true;move=11;board=31;started=true;} } if(( x>57) && (x<109) && (y>57) && (y<109) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (bxa==true){c6=true;} if (bxa==false){c6a=true;} if (axb==true){c2=true;} if (axb==false){c2a=true;} if (bxb==true){c7=true;} if (bxb==false){c7a=true;} if (cxb==true){c12=true;} if (cxb==false){c12a=true;} if (bxc==true){c8=true;} if (bxc==false){c8a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=7;board=7;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25a=true;move=12;board=32;started=true;} } if(( x>111) && (x<163) && (y>57) && (y<109) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (cxa==true){c11=true;} if (cxa==false){c11a=true;} if (bxb==true){c7=true;} if (bxb==false){c7a=true;} if (cxb==true){c12=true;} if (cxb==false){c12a=true;} if (dxb==true){c17=true;} if (dxb==false){c17a=true;} if (cxc==true){c13=true;} if (cxc==false){c13a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=7;board=8;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25a=true;move=12;board=33;started=true;} } if(( x>165) && (x<217) && (y>57) && (y<109) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (dxa==true){c16=true;} if (dxa==false){c16a=true;} if (cxb==true){c12=true;} if (cxb==false){c12a=true;} if (dxb==true){c17=true;} if (dxb==false){c17a=true;} if (exb==true){c22=true;} if (exb==false){c22a=true;} if (dxc==true){c18=true;} if (dxc==false){c18a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=7;board=9;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25a=true;move=12;board=34;started=true;} } if(( x>219) && (x<271) && (y>57) && (y<109) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (exa==true){c21=true;} if (exa==false){c21a=true;} if (dxb==true){c17=true;} if (dxb==false){c17a=true;} if (exb==true){c22=true;} if (exb==false){c22a=true;} if (exc==true){c23=true;} if (exc==false){c23a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=7;board=10;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=12;board=35;started=true;} } if(( x>3) && (x<55) && (y>111) && (y<163) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (axb==true){c2=true;} if (axb==false){c2a=true;} if (axc==true){c3=true;} if (axc==false){c3a=true;} if (axd==true){c4=true;} if (axd==false){c4a=true;} if (bxc==true){c8=true;} if (bxc==false){c8a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=7;board=11;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25a=true;move=12;board=36;started=true;} } if(( x>57) && (x<109) && (y>111) && (y<163) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (bxb==true){c7=true;} if (bxb==false){c7a=true;} if (axc==true){c3=true;} if (axc==false){c3a=true;} if (bxc==true){c8=true;} if (bxc==false){c8a=true;} if (cxc==true){c13=true;} if (cxc==false){c13a=true;} if (bxd==true){c9=true;} if (bxd==false){c9a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=8;board=12;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=13;board=37;started=true;} } if(( x>111) && (x<163) && (y>111) && (y<163) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (cxb==true){c12=true;} if (cxb==false){c12a=true;} if (bxc==true){c8=true;} if (bxc==false){c8a=true;} if (cxc==true){c13=true;} if (cxc==false){c13a=true;} if (dxc==true){c18=true;} if (dxc==false){c18a=true;} if (cxd==true){c14=true;} if (cxd==false){c14a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=8;board=13;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25a=true;move=13;board=38;started=true;} } if(( x>165) && (x<217) && (y>111) && (y<163) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (dxb==true){c17=true;} if (dxb==false){c17a=true;} if (cxc==true){c13=true;} if (cxc==false){c13a=true;} if (dxc==true){c18=true;} if (dxc==false){c18a=true;} if (exc==true){c23=true;} if (exc==false){c23a=true;} if (dxd==true){c19=true;} if (dxd==false){c19a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=8;board=14;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=13;board=39;started=true;} } if(( x>219) && (x<271) && (y>111) && (y<163) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (exb==true){c22=true;} if (exb==false){c22a=true;} if (dxc==true){c18=true;} if (dxc==false){c18a=true;} if (exc==true){c23=true;} if (exc==false){c23a=true;} if (exd==true){c24=true;} if (exd==false){c24a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=8;board=15;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=13;board=40;started=true;} } if(( x>3) && (x<55) && (y>165) && (y<217) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (axc==true){c3=true;} if (axc==false){c3a=true;} if (axd==true){c4=true;} if (axd==false){c4a=true;} if (axe==true){c5=true;} if (axe==false){c5a=true;} if (bxd==true){c9=true;} if (bxd==false){c9a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=8;board=16;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=13;board=41;started=true;} } if(( x>57) && (x<109) && (y>165) && (y<217) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (bxc==true){c8=true;} if (bxc==false){c8a=true;} if (axd==true){c4=true;} if (axd==false){c4a=true;} if (bxd==true){c9=true;} if (bxd==false){c9a=true;} if (cxd==true){c14=true;} if (cxd==false){c14a=true;} if (bxe==true){c10=true;} if (bxe==false){c10a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=9;board=17;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=14;board=42;started=true;} } if(( x>111) && (x<163) && (y>165) && (y<217) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (cxc==true){c13=true;} if (cxc==false){c13a=true;} if (bxd==true){c9=true;} if (bxd==false){c9a=true;} if (cxd==true){c14=true;} if (cxd==false){c14a=true;} if (dxd==true){c19=true;} if (dxd==false){c19a=true;} if (cxe==true){c15=true;} if (cxe==false){c15a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=9;board=18;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=14;board=43;started=true;} } if(( x>165) && (x<217) && (y>165) && (y<217) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (dxc==true){c18=true;} if (dxc==false){c18a=true;} if (cxd==true){c14=true;} if (cxd==false){c14a=true;} if (dxd==true){c19=true;} if (dxd==false){c19a=true;} if (exd==true){c24=true;} if (exd==false){c24a=true;} if (dxe==true){c20=true;} if (dxe==false){c20a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=9;board=19;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=14;board=44;started=true;} } if(( x>219) && (x<271) && (y>165) && (y<217) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (exc==true){c23=true;} if (exc==false){c23a=true;} if (dxd==true){c19=true;} if (dxd==false){c19a=true;} if (exd==true){c24=true;} if (exd==false){c24a=true;} if (exe==true){c25=true;} if (exe==false){c25a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=9;board=20;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25a=true;move=14;board=45;started=true;} } if(( x>3) && (x<55) && (y>219) && (y<271) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (axd==true){c4=true;} if (axd==false){c4a=true;} if (axe==true){c5=true;} if (axe==false){c5a=true;} if (bxe==true){c10=true;} if (bxe==false){c10a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=9;board=21;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=14;board=46;started=true;} } if(( x>57) && (x<109) && (y>219) && (y<271) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (bxd==true){c9=true;} if (bxd==false){c9a=true;} if (axe==true){c5=true;} if (axe==false){c5a=true;} if (bxe==true){c10=true;} if (bxe==false){c10a=true;} if (cxe==true){c15=true;} if (cxe==false){c15a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=10;board=22;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25a=true;move=15;board=47;started=true;} } if(( x>111) && (x<163) && (y>219) && (y<271) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (cxd==true){c14=true;} if (cxd==false){c14a=true;} if (bxe==true){c10=true;} if (bxe==false){c10a=true;} if (cxe==true){c15=true;} if (cxe==false){c15a=true;} if (dxe==true){c20=true;} if (dxe==false){c20a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=10;board=23;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25=true;move=15;board=48;started=true;} } if(( x>165) && (x<217) && (y>219) && (y<271) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (dxd==true){c19=true;} if (dxd==false){c19a=true;} if (cxe==true){c15=true;} if (cxe==false){c15a=true;} if (dxe==true){c20=true;} if (dxe==false){c20a=true;} if (exe==true){c25=true;} if (exe==false){c25a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=10;board=24;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25a=true;move=15;board=49;started=true;} } if(( x>219) && (x<271) && (y>219) && (y<271) && (!maxmove)){play(getCodeBase(), "bpsh.au");bhelp=false; if (board<51){move=move+1; if (exd==true){c24=true;} if (exd==false){c24a=true;} if (dxe==true){c20=true;} if (dxe==false){c20a=true;} if (exe==true){c25=true;} if (exe==false){c25a=true;} } if (board==52){play(getCodeBase(), "brdstrt.au");move=10;board=25;started=true;} if (board==54){play(getCodeBase(), "brdstrt.au");c25a=true;move=15;board=50;started=true;} } } repaint(); return true; } }