Frame 1
Frame 4
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay (5);
} else {
gotoAndPlay (1);
}
Frame 5
function Inizializzalivelli() {
var i;
var j;
matsfondo = new Array();
liv1 = new Array();
liv2 = new Array();
liv3 = new Array();
liv4 = new Array();
liv5 = new Array();
liv6 = new Array();
liv7 = new Array();
liv8 = new Array();
liv9 = new Array();
liv10 = new Array();
liv11 = new Array();
liv12 = new Array();
liv13 = new Array();
liv14 = new Array();
liv15 = new Array();
liv16 = new Array();
liv17 = new Array();
liv18 = new Array();
liv19 = new Array();
liv20 = new Array();
liv21 = new Array();
liv22 = new Array();
liv23 = new Array();
liv24 = new Array();
liv25 = new Array();
liv26 = new Array();
liv27 = new Array();
liv28 = new Array();
liv29 = new Array();
liv30 = new Array();
liv31 = new Array();
liv32 = new Array();
liv33 = new Array();
liv34 = new Array();
liv35 = new Array();
liv36 = new Array();
liv37 = new Array();
liv38 = new Array();
liv39 = new Array();
liv40 = new Array();
liv41 = new Array();
liv42 = new Array();
liv43 = new Array();
liv44 = new Array();
liv45 = new Array();
liv46 = new Array();
liv47 = new Array();
liv48 = new Array();
liv49 = new Array();
liv50 = new Array();
liv51 = new Array();
liv52 = new Array();
liv53 = new Array();
liv54 = new Array();
liv55 = new Array();
liv56 = new Array();
liv57 = new Array();
liv58 = new Array();
liv59 = new Array();
liv60 = new Array();
liv61 = new Array();
liv62 = new Array();
liv63 = new Array();
liv64 = new Array();
liv65 = new Array();
liv66 = new Array();
liv67 = new Array();
liv68 = new Array();
liv69 = new Array();
liv70 = new Array();
liv71 = new Array();
liv72 = new Array();
liv73 = new Array();
liv74 = new Array();
liv75 = new Array();
liv76 = new Array();
liv77 = new Array();
liv78 = new Array();
liv79 = new Array();
liv80 = new Array();
liv81 = new Array();
liv82 = new Array();
liv83 = new Array();
liv84 = new Array();
liv85 = new Array();
liv86 = new Array();
liv87 = new Array();
liv88 = new Array();
liv89 = new Array();
liv90 = new Array();
liv91 = new Array();
liv92 = new Array();
liv93 = new Array();
liv94 = new Array();
liv95 = new Array();
liv96 = new Array();
liv97 = new Array();
liv98 = new Array();
liv99 = new Array();
liv100 = new Array();
i = 0;
while (i < maxrig) {
matsfondo[i] = new Array();
liv1[i] = new Array();
liv2[i] = new Array();
liv3[i] = new Array();
liv4[i] = new Array();
liv5[i] = new Array();
liv6[i] = new Array();
liv7[i] = new Array();
liv8[i] = new Array();
liv9[i] = new Array();
liv10[i] = new Array();
liv11[i] = new Array();
liv12[i] = new Array();
liv13[i] = new Array();
liv14[i] = new Array();
liv15[i] = new Array();
liv16[i] = new Array();
liv17[i] = new Array();
liv18[i] = new Array();
liv19[i] = new Array();
liv20[i] = new Array();
liv21[i] = new Array();
liv22[i] = new Array();
liv23[i] = new Array();
liv24[i] = new Array();
liv25[i] = new Array();
liv26[i] = new Array();
liv27[i] = new Array();
liv28[i] = new Array();
liv29[i] = new Array();
liv30[i] = new Array();
liv31[i] = new Array();
liv32[i] = new Array();
liv33[i] = new Array();
liv34[i] = new Array();
liv35[i] = new Array();
liv36[i] = new Array();
liv37[i] = new Array();
liv38[i] = new Array();
liv39[i] = new Array();
liv40[i] = new Array();
liv41[i] = new Array();
liv42[i] = new Array();
liv43[i] = new Array();
liv44[i] = new Array();
liv45[i] = new Array();
liv46[i] = new Array();
liv47[i] = new Array();
liv48[i] = new Array();
liv49[i] = new Array();
liv50[i] = new Array();
liv51[i] = new Array();
liv52[i] = new Array();
liv53[i] = new Array();
liv54[i] = new Array();
liv55[i] = new Array();
liv56[i] = new Array();
liv57[i] = new Array();
liv58[i] = new Array();
liv59[i] = new Array();
liv60[i] = new Array();
liv61[i] = new Array();
liv62[i] = new Array();
liv63[i] = new Array();
liv64[i] = new Array();
liv65[i] = new Array();
liv66[i] = new Array();
liv67[i] = new Array();
liv68[i] = new Array();
liv69[i] = new Array();
liv70[i] = new Array();
liv71[i] = new Array();
liv72[i] = new Array();
liv73[i] = new Array();
liv74[i] = new Array();
liv75[i] = new Array();
liv76[i] = new Array();
liv77[i] = new Array();
liv78[i] = new Array();
liv79[i] = new Array();
liv80[i] = new Array();
liv81[i] = new Array();
liv82[i] = new Array();
liv83[i] = new Array();
liv84[i] = new Array();
liv85[i] = new Array();
liv86[i] = new Array();
liv87[i] = new Array();
liv88[i] = new Array();
liv89[i] = new Array();
liv90[i] = new Array();
liv91[i] = new Array();
liv92[i] = new Array();
liv93[i] = new Array();
liv94[i] = new Array();
liv95[i] = new Array();
liv96[i] = new Array();
liv97[i] = new Array();
liv98[i] = new Array();
liv99[i] = new Array();
liv100[i] = new Array();
j = 0;
while (j < maxcol) {
matsfondo[i][j] = 0;
liv1[i][j] = 0;
liv2[i][j] = 0;
liv3[i][j] = 0;
liv4[i][j] = 0;
liv5[i][j] = 0;
liv6[i][j] = 0;
liv7[i][j] = 0;
liv8[i][j] = 0;
liv9[i][j] = 0;
liv10[i][j] = 0;
liv11[i][j] = 0;
liv12[i][j] = 0;
liv13[i][j] = 0;
liv14[i][j] = 0;
liv15[i][j] = 0;
liv16[i][j] = 0;
liv17[i][j] = 0;
liv18[i][j] = 0;
liv19[i][j] = 0;
liv20[i][j] = 0;
liv21[i][j] = 0;
liv22[i][j] = 0;
liv23[i][j] = 0;
liv24[i][j] = 0;
liv25[i][j] = 0;
liv26[i][j] = 0;
liv27[i][j] = 0;
liv28[i][j] = 0;
liv29[i][j] = 0;
liv30[i][j] = 0;
liv31[i][j] = 0;
liv32[i][j] = 0;
liv33[i][j] = 0;
liv34[i][j] = 0;
liv35[i][j] = 0;
liv36[i][j] = 0;
liv37[i][j] = 0;
liv38[i][j] = 0;
liv39[i][j] = 0;
liv40[i][j] = 0;
liv41[i][j] = 0;
liv42[i][j] = 0;
liv43[i][j] = 0;
liv44[i][j] = 0;
liv45[i][j] = 0;
liv46[i][j] = 0;
liv47[i][j] = 0;
liv48[i][j] = 0;
liv49[i][j] = 0;
liv50[i][j] = 0;
liv51[i][j] = 0;
liv52[i][j] = 0;
liv53[i][j] = 0;
liv54[i][j] = 0;
liv55[i][j] = 0;
liv56[i][j] = 0;
liv57[i][j] = 0;
liv58[i][j] = 0;
liv59[i][j] = 0;
liv60[i][j] = 0;
liv61[i][j] = 0;
liv62[i][j] = 0;
liv63[i][j] = 0;
liv64[i][j] = 0;
liv65[i][j] = 0;
liv66[i][j] = 0;
liv67[i][j] = 0;
liv68[i][j] = 0;
liv69[i][j] = 0;
liv70[i][j] = 0;
liv71[i][j] = 0;
liv72[i][j] = 0;
liv73[i][j] = 0;
liv74[i][j] = 0;
liv75[i][j] = 0;
liv76[i][j] = 0;
liv77[i][j] = 0;
liv78[i][j] = 0;
liv79[i][j] = 0;
liv80[i][j] = 0;
liv81[i][j] = 0;
liv82[i][j] = 0;
liv83[i][j] = 0;
liv84[i][j] = 0;
liv85[i][j] = 0;
liv86[i][j] = 0;
liv87[i][j] = 0;
liv88[i][j] = 0;
liv89[i][j] = 0;
liv90[i][j] = 0;
liv91[i][j] = 0;
liv92[i][j] = 0;
liv93[i][j] = 0;
liv94[i][j] = 0;
liv95[i][j] = 0;
liv96[i][j] = 0;
liv97[i][j] = 0;
liv98[i][j] = 0;
liv99[i][j] = 0;
liv100[i][j] = 0;
j++;
}
i++;
}
liv3[maxrig - 1][0] = (random(7) + 100) + 1;
liv3[maxrig - 2][0] = (random(7) + 100) + 1;
liv3[maxrig - 3][0] = (random(7) + 100) + 1;
liv3[maxrig - 1][4] = (random(7) + 100) + 1;
liv3[maxrig - 1][5] = (random(7) + 100) + 1;
liv3[maxrig - 2][4] = (random(7) + 100) + 1;
liv3[maxrig - 2][5] = (random(7) + 100) + 1;
liv3[maxrig - 1][9] = (random(7) + 100) + 1;
liv3[maxrig - 2][9] = (random(7) + 100) + 1;
liv3[maxrig - 3][9] = (random(7) + 100) + 1;
liv4[maxrig - 1][1] = (random(7) + 100) + 1;
liv4[maxrig - 1][6] = (random(7) + 100) + 1;
liv4[maxrig - 2][8] = (random(7) + 100) + 1;
liv4[maxrig - 3][5] = (random(7) + 100) + 1;
liv4[maxrig - 4][2] = (random(7) + 100) + 1;
liv4[maxrig - 4][6] = (random(7) + 100) + 1;
liv4[maxrig - 5][0] = (random(7) + 100) + 1;
liv4[maxrig - 5][3] = (random(7) + 100) + 1;
liv5[maxrig - 1][0] = (random(7) + 100) + 1;
liv5[maxrig - 1][3] = (random(7) + 100) + 1;
liv5[maxrig - 1][5] = (random(7) + 100) + 1;
liv5[maxrig - 1][8] = (random(7) + 100) + 1;
liv5[maxrig - 2][1] = (random(7) + 100) + 1;
liv5[maxrig - 2][4] = (random(7) + 100) + 1;
liv5[maxrig - 2][7] = (random(7) + 100) + 1;
liv5[maxrig - 3][2] = (random(7) + 100) + 1;
liv5[maxrig - 3][6] = (random(7) + 100) + 1;
liv5[maxrig - 3][7] = (random(7) + 100) + 1;
liv5[maxrig - 4][3] = (random(7) + 100) + 1;
liv5[maxrig - 4][5] = (random(7) + 100) + 1;
liv5[maxrig - 5][4] = (random(7) + 100) + 1;
liv5[maxrig - 5][5] = (random(7) + 100) + 1;
liv6[maxrig - 5][0] = (random(7) + 100) + 1;
liv6[maxrig - 4][1] = (random(7) + 100) + 1;
liv6[maxrig - 3][2] = (random(7) + 100) + 1;
liv6[maxrig - 2][3] = (random(7) + 100) + 1;
liv6[maxrig - 1][4] = (random(7) + 100) + 1;
liv6[maxrig - 2][7] = (random(7) + 100) + 1;
liv6[maxrig - 3][8] = (random(7) + 100) + 1;
liv6[maxrig - 4][9] = (random(7) + 100) + 1;
liv6[maxrig - 1][9] = (random(7) + 100) + 1;
liv6[maxrig - 1][0] = (random(7) + 100) + 1;
liv6[maxrig - 2][1] = (random(7) + 100) + 1;
liv6[maxrig - 2][8] = (random(7) + 100) + 1;
liv7[maxrig - 1][0] = (random(7) + 100) + 1;
liv7[maxrig - 2][1] = (random(7) + 100) + 1;
liv7[maxrig - 3][2] = (random(7) + 100) + 1;
liv7[maxrig - 4][3] = (random(7) + 100) + 1;
liv7[maxrig - 5][4] = (random(7) + 100) + 1;
liv7[maxrig - 4][4] = (random(7) + 100) + 1;
liv7[maxrig - 3][4] = (random(7) + 100) + 1;
liv7[maxrig - 2][4] = (random(7) + 100) + 1;
liv7[maxrig - 1][4] = (random(7) + 100) + 1;
liv7[maxrig - 2][9] = (random(7) + 100) + 1;
liv8[maxrig - 1][0] = (random(7) + 100) + 1;
liv8[maxrig - 2][1] = (random(7) + 100) + 1;
liv8[maxrig - 3][0] = (random(7) + 100) + 1;
liv8[maxrig - 4][1] = (random(7) + 100) + 1;
liv8[maxrig - 5][0] = (random(7) + 100) + 1;
liv8[maxrig - 6][1] = (random(7) + 100) + 1;
liv8[maxrig - 1][8] = (random(7) + 100) + 1;
liv8[maxrig - 2][9] = (random(7) + 100) + 1;
liv8[maxrig - 3][8] = (random(7) + 100) + 1;
liv8[maxrig - 4][9] = (random(7) + 100) + 1;
liv8[maxrig - 5][8] = (random(7) + 100) + 1;
liv8[maxrig - 6][9] = (random(7) + 100) + 1;
liv8[maxrig - 1][3] = (random(7) + 100) + 1;
liv8[maxrig - 1][6] = (random(7) + 100) + 1;
liv8[maxrig - 2][4] = (random(7) + 100) + 1;
liv8[maxrig - 2][5] = (random(7) + 100) + 1;
liv9[maxrig - 8][3] = (random(7) + 100) + 1;
liv9[maxrig - 8][6] = (random(7) + 100) + 1;
liv9[maxrig - 7][2] = (random(7) + 100) + 1;
liv9[maxrig - 7][7] = (random(7) + 100) + 1;
liv9[maxrig - 6][2] = (random(7) + 100) + 1;
liv9[maxrig - 6][7] = (random(7) + 100) + 1;
liv9[maxrig - 5][3] = (random(7) + 100) + 1;
liv9[maxrig - 5][6] = (random(7) + 100) + 1;
liv10[maxrig - 3][9] = (random(7) + 100) + 1;
liv10[maxrig - 3][8] = (random(7) + 100) + 1;
liv10[maxrig - 3][7] = (random(7) + 100) + 1;
liv10[maxrig - 3][6] = (random(7) + 100) + 1;
liv10[maxrig - 3][5] = (random(7) + 100) + 1;
liv10[maxrig - 3][4] = (random(7) + 100) + 1;
liv10[maxrig - 3][3] = (random(7) + 100) + 1;
liv10[maxrig - 3][9] = (random(7) + 100) + 1;
liv10[maxrig - 5][0] = (random(7) + 100) + 1;
liv10[maxrig - 5][1] = (random(7) + 100) + 1;
liv10[maxrig - 5][2] = (random(7) + 100) + 1;
liv10[maxrig - 5][3] = (random(7) + 100) + 1;
liv10[maxrig - 9][4] = (random(7) + 100) + 1;
liv10[maxrig - 9][5] = (random(7) + 100) + 1;
liv10[maxrig - 9][6] = (random(7) + 100) + 1;
liv10[maxrig - 9][7] = (random(7) + 100) + 1;
liv11[maxrig - 1][2] = (random(7) + 100) + 1;
liv11[maxrig - 2][2] = (random(7) + 100) + 1;
liv11[maxrig - 3][2] = (random(7) + 100) + 1;
liv11[maxrig - 4][2] = (random(7) + 100) + 1;
liv11[maxrig - 5][2] = (random(7) + 100) + 1;
liv11[maxrig - 6][2] = (random(7) + 100) + 1;
liv11[maxrig - 1][7] = (random(7) + 100) + 1;
liv11[maxrig - 2][7] = (random(7) + 100) + 1;
liv11[maxrig - 3][7] = (random(7) + 100) + 1;
liv11[maxrig - 4][7] = (random(7) + 100) + 1;
liv11[maxrig - 5][7] = (random(7) + 100) + 1;
liv11[maxrig - 6][7] = (random(7) + 100) + 1;
liv11[maxrig - 3][3] = (random(7) + 100) + 1;
liv11[maxrig - 3][4] = (random(7) + 100) + 1;
liv11[maxrig - 3][5] = (random(7) + 100) + 1;
liv11[maxrig - 3][6] = (random(7) + 100) + 1;
liv12[maxrig - 1][2] = (random(7) + 100) + 1;
liv12[maxrig - 2][2] = (random(7) + 100) + 1;
liv12[maxrig - 2][8] = (random(7) + 100) + 1;
liv12[maxrig - 3][8] = (random(7) + 100) + 1;
liv12[maxrig - 4][8] = (random(7) + 100) + 1;
liv12[maxrig - 4][1] = (random(7) + 100) + 1;
liv12[maxrig - 4][7] = (random(7) + 100) + 1;
liv12[maxrig - 5][7] = (random(7) + 100) + 1;
liv12[maxrig - 6][7] = (random(7) + 100) + 1;
liv13[maxrig - 1][9] = (random(7) + 100) + 1;
liv13[maxrig - 1][8] = (random(7) + 100) + 1;
liv13[maxrig - 1][7] = (random(7) + 100) + 1;
liv13[maxrig - 1][6] = (random(7) + 100) + 1;
liv13[maxrig - 1][5] = (random(7) + 100) + 1;
liv13[maxrig - 1][4] = (random(7) + 100) + 1;
liv13[maxrig - 1][3] = (random(7) + 100) + 1;
liv13[maxrig - 1][2] = (random(7) + 100) + 1;
liv13[maxrig - 2][1] = (random(7) + 100) + 1;
liv13[maxrig - 2][8] = (random(7) + 100) + 1;
liv13[maxrig - 2][7] = (random(7) + 100) + 1;
liv13[maxrig - 2][5] = (random(7) + 100) + 1;
liv13[maxrig - 2][4] = (random(7) + 100) + 1;
liv13[maxrig - 2][2] = (random(7) + 100) + 1;
liv13[maxrig - 3][7] = (random(7) + 100) + 1;
liv13[maxrig - 3][6] = (random(7) + 100) + 1;
liv13[maxrig - 3][3] = (random(7) + 100) + 1;
liv13[maxrig - 3][2] = (random(7) + 100) + 1;
liv13[maxrig - 4][5] = (random(7) + 100) + 1;
liv13[maxrig - 4][4] = (random(7) + 100) + 1;
liv13[maxrig - 4][3] = (random(7) + 100) + 1;
liv13[maxrig - 5][4] = (random(7) + 100) + 1;
liv13[maxrig - 5][6] = (random(7) + 100) + 1;
liv14[maxrig - 9][0] = (random(7) + 100) + 1;
liv14[maxrig - 9][1] = (random(7) + 100) + 1;
liv14[maxrig - 9][2] = (random(7) + 100) + 1;
liv14[maxrig - 9][3] = (random(7) + 100) + 1;
liv14[maxrig - 9][4] = (random(7) + 100) + 1;
liv14[maxrig - 9][7] = (random(7) + 100) + 1;
liv14[maxrig - 9][8] = (random(7) + 100) + 1;
liv14[maxrig - 9][9] = (random(7) + 100) + 1;
liv14[maxrig - 6][9] = (random(7) + 100) + 1;
liv14[maxrig - 6][8] = (random(7) + 100) + 1;
liv14[maxrig - 6][7] = (random(7) + 100) + 1;
liv14[maxrig - 6][4] = (random(7) + 100) + 1;
liv14[maxrig - 6][3] = (random(7) + 100) + 1;
liv14[maxrig - 6][2] = (random(7) + 100) + 1;
liv14[maxrig - 6][1] = (random(7) + 100) + 1;
liv14[maxrig - 6][0] = (random(7) + 100) + 1;
liv15[maxrig - 1][0] = (random(7) + 100) + 1;
liv15[maxrig - 2][1] = (random(7) + 100) + 1;
liv15[maxrig - 3][2] = (random(7) + 100) + 1;
liv15[maxrig - 4][3] = (random(7) + 100) + 1;
liv15[maxrig - 5][4] = (random(7) + 100) + 1;
liv15[maxrig - 6][5] = (random(7) + 100) + 1;
liv15[maxrig - 7][6] = (random(7) + 100) + 1;
liv15[maxrig - 8][7] = (random(7) + 100) + 1;
liv15[maxrig - 9][8] = (random(7) + 100) + 1;
liv15[maxrig - 10][9] = (random(7) + 100) + 1;
liv15[maxrig - 1][6] = (random(7) + 100) + 1;
liv15[maxrig - 2][5] = (random(7) + 100) + 1;
liv15[maxrig - 3][4] = (random(7) + 100) + 1;
liv15[maxrig - 4][3] = (random(7) + 100) + 1;
liv15[maxrig - 5][2] = (random(7) + 100) + 1;
liv15[maxrig - 6][1] = (random(7) + 100) + 1;
liv15[maxrig - 7][0] = (random(7) + 100) + 1;
liv15[maxrig - 8][0] = (random(7) + 100) + 1;
liv15[maxrig - 9][0] = (random(7) + 100) + 1;
liv16[maxrig - 1][0] = (random(7) + 100) + 1;
liv16[maxrig - 2][1] = (random(7) + 100) + 1;
liv16[maxrig - 3][0] = (random(7) + 100) + 1;
liv16[maxrig - 4][1] = (random(7) + 100) + 1;
liv16[maxrig - 5][0] = (random(7) + 100) + 1;
liv16[maxrig - 6][1] = (random(7) + 100) + 1;
liv16[maxrig - 7][0] = (random(7) + 100) + 1;
liv16[maxrig - 8][1] = (random(7) + 100) + 1;
liv16[maxrig - 9][0] = (random(7) + 100) + 1;
liv16[maxrig - 1][8] = (random(7) + 100) + 1;
liv16[maxrig - 2][9] = (random(7) + 100) + 1;
liv16[maxrig - 3][8] = (random(7) + 100) + 1;
liv16[maxrig - 4][9] = (random(7) + 100) + 1;
liv16[maxrig - 5][8] = (random(7) + 100) + 1;
liv16[maxrig - 6][9] = (random(7) + 100) + 1;
liv16[maxrig - 7][8] = (random(7) + 100) + 1;
liv16[maxrig - 8][9] = (random(7) + 100) + 1;
liv16[maxrig - 9][8] = (random(7) + 100) + 1;
liv16[maxrig - 1][5] = (random(7) + 100) + 1;
liv16[maxrig - 2][4] = (random(7) + 100) + 1;
liv16[maxrig - 3][5] = (random(7) + 100) + 1;
liv16[maxrig - 4][4] = (random(7) + 100) + 1;
liv16[maxrig - 5][5] = (random(7) + 100) + 1;
liv16[maxrig - 6][4] = (random(7) + 100) + 1;
liv16[maxrig - 7][5] = (random(7) + 100) + 1;
liv17[maxrig - 9][6] = (random(7) + 100) + 1;
liv17[maxrig - 9][5] = (random(7) + 100) + 1;
liv17[maxrig - 8][4] = (random(7) + 100) + 1;
liv17[maxrig - 8][3] = (random(7) + 100) + 1;
liv17[maxrig - 7][2] = (random(7) + 100) + 1;
liv17[maxrig - 7][1] = (random(7) + 100) + 1;
liv17[maxrig - 6][1] = (random(7) + 100) + 1;
liv17[maxrig - 6][2] = (random(7) + 100) + 1;
liv17[maxrig - 5][3] = (random(7) + 100) + 1;
liv17[maxrig - 5][4] = (random(7) + 100) + 1;
liv17[maxrig - 4][5] = (random(7) + 100) + 1;
liv17[maxrig - 4][6] = (random(7) + 100) + 1;
liv17[maxrig - 3][6] = (random(7) + 100) + 1;
liv17[maxrig - 3][5] = (random(7) + 100) + 1;
liv17[maxrig - 2][4] = (random(7) + 100) + 1;
liv17[maxrig - 2][3] = (random(7) + 100) + 1;
liv17[maxrig - 1][2] = (random(7) + 100) + 1;
liv17[maxrig - 1][1] = (random(7) + 100) + 1;
liv18[maxrig - 4][1] = (random(7) + 100) + 1;
liv18[maxrig - 4][3] = (random(7) + 100) + 1;
liv18[maxrig - 4][5] = (random(7) + 100) + 1;
liv18[maxrig - 4][7] = (random(7) + 100) + 1;
liv18[maxrig - 4][9] = (random(7) + 100) + 1;
liv18[maxrig - 5][2] = (random(7) + 100) + 1;
liv18[maxrig - 5][4] = (random(7) + 100) + 1;
liv18[maxrig - 5][6] = (random(7) + 100) + 1;
liv18[maxrig - 5][8] = (random(7) + 100) + 1;
liv18[maxrig - 5][0] = (random(7) + 100) + 1;
liv18[maxrig - 1][0] = (random(7) + 100) + 1;
liv18[maxrig - 1][9] = (random(7) + 100) + 1;
liv18[maxrig - 2][0] = (random(7) + 100) + 1;
liv18[maxrig - 2][2] = (random(7) + 100) + 1;
liv18[maxrig - 2][4] = (random(7) + 100) + 1;
liv18[maxrig - 2][6] = (random(7) + 100) + 1;
liv18[maxrig - 2][8] = (random(7) + 100) + 1;
liv19[maxrig - 8][0] = (random(7) + 100) + 1;
liv19[maxrig - 7][0] = (random(7) + 100) + 1;
liv19[maxrig - 6][0] = (random(7) + 100) + 1;
liv19[maxrig - 5][0] = (random(7) + 100) + 1;
liv19[maxrig - 4][0] = (random(7) + 100) + 1;
liv19[maxrig - 4][1] = (random(7) + 100) + 1;
liv19[maxrig - 4][2] = (random(7) + 100) + 1;
liv19[maxrig - 4][3] = (random(7) + 100) + 1;
liv19[maxrig - 4][4] = (random(7) + 100) + 1;
liv19[maxrig - 4][5] = (random(7) + 100) + 1;
liv19[maxrig - 4][7] = (random(7) + 100) + 1;
liv19[maxrig - 4][8] = (random(7) + 100) + 1;
liv19[maxrig - 8][3] = (random(7) + 100) + 1;
liv19[maxrig - 8][4] = (random(7) + 100) + 1;
liv19[maxrig - 8][5] = (random(7) + 100) + 1;
liv19[maxrig - 8][6] = (random(7) + 100) + 1;
liv19[maxrig - 8][7] = (random(7) + 100) + 1;
liv19[maxrig - 8][8] = (random(7) + 100) + 1;
liv19[maxrig - 8][9] = (random(7) + 100) + 1;
liv19[maxrig - 7][3] = (random(7) + 100) + 1;
liv19[maxrig - 6][3] = (random(7) + 100) + 1;
liv19[maxrig - 5][3] = (random(7) + 100) + 1;
liv19[maxrig - 6][4] = (random(7) + 100) + 1;
liv19[maxrig - 6][5] = (random(7) + 100) + 1;
liv19[maxrig - 7][7] = (random(7) + 100) + 1;
liv19[maxrig - 6][7] = (random(7) + 100) + 1;
liv19[maxrig - 5][7] = (random(7) + 100) + 1;
liv19[maxrig - 7][9] = (random(7) + 100) + 1;
liv19[maxrig - 6][9] = (random(7) + 100) + 1;
liv19[maxrig - 5][9] = (random(7) + 100) + 1;
liv20[maxrig - 3][0] = (random(7) + 100) + 1;
liv20[maxrig - 3][3] = (random(7) + 100) + 1;
liv20[maxrig - 3][7] = (random(7) + 100) + 1;
liv20[maxrig - 3][9] = (random(7) + 100) + 1;
liv20[maxrig - 4][0] = (random(7) + 100) + 1;
liv20[maxrig - 4][3] = (random(7) + 100) + 1;
liv20[maxrig - 5][0] = (random(7) + 100) + 1;
liv20[maxrig - 5][1] = (random(7) + 100) + 1;
liv20[maxrig - 5][2] = (random(7) + 100) + 1;
liv20[maxrig - 5][4] = (random(7) + 100) + 1;
liv20[maxrig - 5][7] = (random(7) + 100) + 1;
liv20[maxrig - 6][0] = (random(7) + 100) + 1;
liv20[maxrig - 6][2] = (random(7) + 100) + 1;
liv20[maxrig - 6][4] = (random(7) + 100) + 1;
liv20[maxrig - 6][6] = (random(7) + 100) + 1;
liv20[maxrig - 6][7] = (random(7) + 100) + 1;
liv20[maxrig - 7][0] = (random(7) + 100) + 1;
liv20[maxrig - 7][1] = (random(7) + 100) + 1;
liv20[maxrig - 7][2] = (random(7) + 100) + 1;
liv20[maxrig - 7][4] = (random(7) + 100) + 1;
liv20[maxrig - 7][5] = (random(7) + 100) + 1;
liv20[maxrig - 7][7] = (random(7) + 100) + 1;
liv20[maxrig - 8][4] = (random(7) + 100) + 1;
liv20[maxrig - 8][7] = (random(7) + 100) + 1;
liv20[maxrig - 2][3] = (random(7) + 100) + 1;
liv20[maxrig - 2][8] = (random(7) + 100) + 1;
liv20[maxrig - 2][7] = (random(7) + 100) + 1;
liv20[maxrig - 2][9] = (random(7) + 100) + 1;
liv20[maxrig - 1][9] = (random(7) + 100) + 1;
liv20[maxrig - 1][7] = (random(7) + 100) + 1;
liv20[maxrig - 9][4] = (random(7) + 100) + 1;
liv20[maxrig - 9][5] = (random(7) + 100) + 1;
liv21[maxrig - 1][4] = (random(7) + 100) + 1;
liv21[maxrig - 1][5] = (random(7) + 100) + 1;
liv21[maxrig - 2][3] = (random(7) + 100) + 1;
liv21[maxrig - 2][6] = (random(7) + 100) + 1;
liv21[maxrig - 3][2] = (random(7) + 100) + 1;
liv21[maxrig - 3][7] = (random(7) + 100) + 1;
liv21[maxrig - 4][1] = (random(7) + 100) + 1;
liv21[maxrig - 4][4] = (random(7) + 100) + 1;
liv21[maxrig - 4][5] = (random(7) + 100) + 1;
liv21[maxrig - 4][8] = (random(7) + 100) + 1;
liv21[maxrig - 5][0] = (random(7) + 100) + 1;
liv21[maxrig - 5][4] = (random(7) + 100) + 1;
liv21[maxrig - 5][5] = (random(7) + 100) + 1;
liv21[maxrig - 5][9] = (random(7) + 100) + 1;
liv21[maxrig - 6][0] = (random(7) + 100) + 1;
liv21[maxrig - 6][9] = (random(7) + 100) + 1;
liv21[maxrig - 7][0] = (random(7) + 100) + 1;
liv21[maxrig - 7][4] = (random(7) + 100) + 1;
liv21[maxrig - 7][5] = (random(7) + 100) + 1;
liv21[maxrig - 7][9] = (random(7) + 100) + 1;
liv21[maxrig - 8][1] = (random(7) + 100) + 1;
liv21[maxrig - 8][2] = (random(7) + 100) + 1;
liv21[maxrig - 8][3] = (random(7) + 100) + 1;
liv21[maxrig - 8][6] = (random(7) + 100) + 1;
liv21[maxrig - 8][7] = (random(7) + 100) + 1;
liv21[maxrig - 8][8] = (random(7) + 100) + 1;
liv21[maxrig - 9][2] = (random(7) + 100) + 1;
liv21[maxrig - 9][7] = (random(7) + 100) + 1;
liv22[maxrig - 1][0] = (random(7) + 100) + 1;
liv22[maxrig - 1][2] = (random(7) + 100) + 1;
liv22[maxrig - 1][4] = (random(7) + 100) + 1;
liv22[maxrig - 1][6] = (random(7) + 100) + 1;
liv22[maxrig - 1][8] = (random(7) + 100) + 1;
liv22[maxrig - 2][0] = (random(7) + 100) + 1;
liv22[maxrig - 2][4] = (random(7) + 100) + 1;
liv22[maxrig - 2][8] = (random(7) + 100) + 1;
liv22[maxrig - 3][0] = (random(7) + 100) + 1;
liv22[maxrig - 3][2] = (random(7) + 100) + 1;
liv22[maxrig - 3][4] = (random(7) + 100) + 1;
liv22[maxrig - 3][6] = (random(7) + 100) + 1;
liv22[maxrig - 3][8] = (random(7) + 100) + 1;
liv22[maxrig - 4][2] = (random(7) + 100) + 1;
liv22[maxrig - 4][6] = (random(7) + 100) + 1;
liv22[maxrig - 5][0] = (random(7) + 100) + 1;
liv22[maxrig - 5][2] = (random(7) + 100) + 1;
liv22[maxrig - 5][4] = (random(7) + 100) + 1;
liv22[maxrig - 5][6] = (random(7) + 100) + 1;
liv22[maxrig - 5][8] = (random(7) + 100) + 1;
liv22[maxrig - 7][9] = (random(7) + 100) + 1;
liv22[maxrig - 7][7] = (random(7) + 100) + 1;
liv22[maxrig - 7][5] = (random(7) + 100) + 1;
liv22[maxrig - 7][3] = (random(7) + 100) + 1;
liv23[maxrig - 1][3] = (random(7) + 100) + 1;
liv23[maxrig - 1][4] = (random(7) + 100) + 1;
liv23[maxrig - 2][3] = (random(7) + 100) + 1;
liv23[maxrig - 2][4] = (random(7) + 100) + 1;
liv23[maxrig - 4][3] = (random(7) + 100) + 1;
liv23[maxrig - 5][3] = (random(7) + 100) + 1;
liv23[maxrig - 5][4] = (random(7) + 100) + 1;
liv23[maxrig - 5][5] = (random(7) + 100) + 1;
liv23[maxrig - 6][6] = (random(7) + 100) + 1;
liv23[maxrig - 7][2] = (random(7) + 100) + 1;
liv23[maxrig - 7][6] = (random(7) + 100) + 1;
liv23[maxrig - 8][2] = (random(7) + 100) + 1;
liv23[maxrig - 8][6] = (random(7) + 100) + 1;
liv23[maxrig - 9][3] = (random(7) + 100) + 1;
liv23[maxrig - 9][4] = (random(7) + 100) + 1;
liv23[maxrig - 9][5] = (random(7) + 100) + 1;
liv24[maxrig - 18][0] = (random(7) + 100) + 1;
liv24[maxrig - 17][0] = (random(7) + 100) + 1;
liv24[maxrig - 16][0] = (random(7) + 100) + 1;
liv24[maxrig - 15][0] = (random(7) + 100) + 1;
liv24[maxrig - 14][0] = (random(7) + 100) + 1;
liv24[maxrig - 13][0] = (random(7) + 100) + 1;
liv24[maxrig - 12][0] = (random(7) + 100) + 1;
liv24[maxrig - 11][0] = (random(7) + 100) + 1;
liv24[maxrig - 10][0] = (random(7) + 100) + 1;
liv24[maxrig - 9][0] = (random(7) + 100) + 1;
liv24[maxrig - 8][0] = (random(7) + 100) + 1;
liv24[maxrig - 7][0] = (random(7) + 100) + 1;
liv24[maxrig - 6][0] = (random(7) + 100) + 1;
liv24[maxrig - 5][0] = (random(7) + 100) + 1;
liv24[maxrig - 4][0] = (random(7) + 100) + 1;
liv24[maxrig - 3][0] = (random(7) + 100) + 1;
liv24[maxrig - 2][0] = (random(7) + 100) + 1;
liv24[maxrig - 1][0] = (random(7) + 100) + 1;
liv24[maxrig - 18][9] = (random(7) + 100) + 1;
liv24[maxrig - 17][9] = (random(7) + 100) + 1;
liv24[maxrig - 16][9] = (random(7) + 100) + 1;
liv24[maxrig - 15][9] = (random(7) + 100) + 1;
liv24[maxrig - 14][9] = (random(7) + 100) + 1;
liv24[maxrig - 13][9] = (random(7) + 100) + 1;
liv24[maxrig - 12][9] = (random(7) + 100) + 1;
liv24[maxrig - 11][9] = (random(7) + 100) + 1;
liv24[maxrig - 10][9] = (random(7) + 100) + 1;
liv24[maxrig - 9][9] = (random(7) + 100) + 1;
liv24[maxrig - 8][9] = (random(7) + 100) + 1;
liv24[maxrig - 7][9] = (random(7) + 100) + 1;
liv24[maxrig - 6][9] = (random(7) + 100) + 1;
liv24[maxrig - 5][9] = (random(7) + 100) + 1;
liv24[maxrig - 4][9] = (random(7) + 100) + 1;
liv24[maxrig - 3][9] = (random(7) + 100) + 1;
liv24[maxrig - 2][9] = (random(7) + 100) + 1;
liv24[maxrig - 1][9] = (random(7) + 100) + 1;
liv25[maxrig - 18][0] = (random(7) + 100) + 1;
liv25[maxrig - 17][0] = (random(7) + 100) + 1;
liv25[maxrig - 16][0] = (random(7) + 100) + 1;
liv25[maxrig - 15][0] = (random(7) + 100) + 1;
liv25[maxrig - 14][0] = (random(7) + 100) + 1;
liv25[maxrig - 13][0] = (random(7) + 100) + 1;
liv25[maxrig - 12][0] = (random(7) + 100) + 1;
liv25[maxrig - 11][0] = (random(7) + 100) + 1;
liv25[maxrig - 10][0] = (random(7) + 100) + 1;
liv25[maxrig - 9][0] = (random(7) + 100) + 1;
liv25[maxrig - 8][0] = (random(7) + 100) + 1;
liv25[maxrig - 7][0] = (random(7) + 100) + 1;
liv25[maxrig - 6][0] = (random(7) + 100) + 1;
liv25[maxrig - 6][1] = (random(7) + 100) + 1;
liv25[maxrig - 6][2] = (random(7) + 100) + 1;
liv25[maxrig - 6][3] = (random(7) + 100) + 1;
liv25[maxrig - 6][6] = (random(7) + 100) + 1;
liv25[maxrig - 6][7] = (random(7) + 100) + 1;
liv25[maxrig - 6][8] = (random(7) + 100) + 1;
liv25[maxrig - 6][9] = (random(7) + 100) + 1;
liv25[maxrig - 5][0] = (random(7) + 100) + 1;
liv25[maxrig - 4][0] = (random(7) + 100) + 1;
liv25[maxrig - 3][0] = (random(7) + 100) + 1;
liv25[maxrig - 2][0] = (random(7) + 100) + 1;
liv25[maxrig - 1][0] = (random(7) + 100) + 1;
liv25[maxrig - 18][9] = (random(7) + 100) + 1;
liv25[maxrig - 17][9] = (random(7) + 100) + 1;
liv25[maxrig - 16][9] = (random(7) + 100) + 1;
liv25[maxrig - 15][9] = (random(7) + 100) + 1;
liv25[maxrig - 14][9] = (random(7) + 100) + 1;
liv25[maxrig - 13][9] = (random(7) + 100) + 1;
liv25[maxrig - 12][9] = (random(7) + 100) + 1;
liv25[maxrig - 11][9] = (random(7) + 100) + 1;
liv25[maxrig - 10][9] = (random(7) + 100) + 1;
liv25[maxrig - 9][9] = (random(7) + 100) + 1;
liv25[maxrig - 8][9] = (random(7) + 100) + 1;
liv25[maxrig - 7][9] = (random(7) + 100) + 1;
liv25[maxrig - 6][9] = (random(7) + 100) + 1;
liv25[maxrig - 5][9] = (random(7) + 100) + 1;
liv25[maxrig - 4][9] = (random(7) + 100) + 1;
liv25[maxrig - 3][9] = (random(7) + 100) + 1;
liv25[maxrig - 2][9] = (random(7) + 100) + 1;
liv25[maxrig - 1][9] = (random(7) + 100) + 1;
liv26[maxrig - 18][0] = (random(7) + 100) + 1;
liv26[maxrig - 17][0] = (random(7) + 100) + 1;
liv26[maxrig - 16][0] = (random(7) + 100) + 1;
liv26[maxrig - 15][0] = (random(7) + 100) + 1;
liv26[maxrig - 14][0] = (random(7) + 100) + 1;
liv26[maxrig - 13][0] = (random(7) + 100) + 1;
liv26[maxrig - 12][0] = (random(7) + 100) + 1;
liv26[maxrig - 11][0] = (random(7) + 100) + 1;
liv26[maxrig - 10][0] = (random(7) + 100) + 1;
liv26[maxrig - 9][0] = (random(7) + 100) + 1;
liv26[maxrig - 8][0] = (random(7) + 100) + 1;
liv26[maxrig - 8][2] = (random(7) + 100) + 1;
liv26[maxrig - 8][3] = (random(7) + 100) + 1;
liv26[maxrig - 8][4] = (random(7) + 100) + 1;
liv26[maxrig - 8][5] = (random(7) + 100) + 1;
liv26[maxrig - 8][6] = (random(7) + 100) + 1;
liv26[maxrig - 7][0] = (random(7) + 100) + 1;
liv26[maxrig - 6][0] = (random(7) + 100) + 1;
liv26[maxrig - 6][1] = (random(7) + 100) + 1;
liv26[maxrig - 6][2] = (random(7) + 100) + 1;
liv26[maxrig - 6][3] = (random(7) + 100) + 1;
liv26[maxrig - 6][6] = (random(7) + 100) + 1;
liv26[maxrig - 6][7] = (random(7) + 100) + 1;
liv26[maxrig - 6][8] = (random(7) + 100) + 1;
liv26[maxrig - 6][9] = (random(7) + 100) + 1;
liv26[maxrig - 5][0] = (random(7) + 100) + 1;
liv26[maxrig - 4][0] = (random(7) + 100) + 1;
liv26[maxrig - 3][0] = (random(7) + 100) + 1;
liv26[maxrig - 2][0] = (random(7) + 100) + 1;
liv26[maxrig - 1][0] = (random(7) + 100) + 1;
liv26[maxrig - 18][9] = (random(7) + 100) + 1;
liv26[maxrig - 17][9] = (random(7) + 100) + 1;
liv26[maxrig - 16][9] = (random(7) + 100) + 1;
liv26[maxrig - 15][9] = (random(7) + 100) + 1;
liv26[maxrig - 14][9] = (random(7) + 100) + 1;
liv26[maxrig - 13][9] = (random(7) + 100) + 1;
liv26[maxrig - 12][9] = (random(7) + 100) + 1;
liv26[maxrig - 11][9] = (random(7) + 100) + 1;
liv26[maxrig - 10][9] = (random(7) + 100) + 1;
liv26[maxrig - 9][9] = (random(7) + 100) + 1;
liv26[maxrig - 8][9] = (random(7) + 100) + 1;
liv26[maxrig - 7][9] = (random(7) + 100) + 1;
liv26[maxrig - 6][9] = (random(7) + 100) + 1;
liv26[maxrig - 5][9] = (random(7) + 100) + 1;
liv26[maxrig - 4][9] = (random(7) + 100) + 1;
liv26[maxrig - 3][9] = (random(7) + 100) + 1;
liv26[maxrig - 2][9] = (random(7) + 100) + 1;
liv26[maxrig - 1][9] = (random(7) + 100) + 1;
liv27[maxrig - 1][1] = (random(7) + 100) + 1;
liv27[maxrig - 2][0] = (random(7) + 100) + 1;
liv27[maxrig - 3][1] = (random(7) + 100) + 1;
liv27[maxrig - 4][0] = (random(7) + 100) + 1;
liv27[maxrig - 5][1] = (random(7) + 100) + 1;
liv27[maxrig - 6][0] = (random(7) + 100) + 1;
liv27[maxrig - 1][3] = (random(7) + 100) + 1;
liv27[maxrig - 2][2] = (random(7) + 100) + 1;
liv27[maxrig - 3][3] = (random(7) + 100) + 1;
liv27[maxrig - 4][2] = (random(7) + 100) + 1;
liv27[maxrig - 5][3] = (random(7) + 100) + 1;
liv27[maxrig - 6][2] = (random(7) + 100) + 1;
liv27[maxrig - 1][5] = (random(7) + 100) + 1;
liv27[maxrig - 2][4] = (random(7) + 100) + 1;
liv27[maxrig - 3][5] = (random(7) + 100) + 1;
liv27[maxrig - 4][4] = (random(7) + 100) + 1;
liv27[maxrig - 5][5] = (random(7) + 100) + 1;
liv27[maxrig - 6][4] = (random(7) + 100) + 1;
liv27[maxrig - 1][7] = (random(7) + 100) + 1;
liv27[maxrig - 2][6] = (random(7) + 100) + 1;
liv27[maxrig - 3][7] = (random(7) + 100) + 1;
liv27[maxrig - 4][6] = (random(7) + 100) + 1;
liv27[maxrig - 5][7] = (random(7) + 100) + 1;
liv27[maxrig - 6][6] = (random(7) + 100) + 1;
liv27[maxrig - 1][9] = (random(7) + 100) + 1;
liv27[maxrig - 2][8] = (random(7) + 100) + 1;
liv27[maxrig - 3][9] = (random(7) + 100) + 1;
liv27[maxrig - 4][8] = (random(7) + 100) + 1;
liv27[maxrig - 5][9] = (random(7) + 100) + 1;
liv27[maxrig - 6][8] = (random(7) + 100) + 1;
liv27[maxrig - 7][1] = (random(7) + 100) + 1;
liv27[maxrig - 8][0] = (random(7) + 100) + 1;
liv27[maxrig - 9][1] = (random(7) + 100) + 1;
liv27[maxrig - 7][3] = (random(7) + 100) + 1;
liv27[maxrig - 8][2] = (random(7) + 100) + 1;
liv27[maxrig - 9][3] = (random(7) + 100) + 1;
liv27[maxrig - 7][5] = (random(7) + 100) + 1;
liv27[maxrig - 8][4] = (random(7) + 100) + 1;
liv27[maxrig - 9][5] = (random(7) + 100) + 1;
liv27[maxrig - 7][7] = (random(7) + 100) + 1;
liv27[maxrig - 8][6] = (random(7) + 100) + 1;
liv27[maxrig - 9][7] = (random(7) + 100) + 1;
liv27[maxrig - 7][9] = (random(7) + 100) + 1;
liv27[maxrig - 8][8] = (random(7) + 100) + 1;
liv27[maxrig - 9][9] = (random(7) + 100) + 1;
liv28[maxrig - 1][1] = (random(7) + 100) + 1;
liv28[maxrig - 1][4] = (random(7) + 100) + 1;
liv28[maxrig - 1][5] = (random(7) + 100) + 1;
liv28[maxrig - 1][8] = (random(7) + 100) + 1;
liv28[maxrig - 2][0] = (random(7) + 100) + 1;
liv28[maxrig - 2][3] = (random(7) + 100) + 1;
liv28[maxrig - 2][4] = (random(7) + 100) + 1;
liv28[maxrig - 2][5] = (random(7) + 100) + 1;
liv28[maxrig - 2][6] = (random(7) + 100) + 1;
liv28[maxrig - 2][9] = (random(7) + 100) + 1;
liv28[maxrig - 3][2] = (random(7) + 100) + 1;
liv28[maxrig - 3][7] = (random(7) + 100) + 1;
liv28[maxrig - 4][2] = (random(7) + 100) + 1;
liv28[maxrig - 4][4] = (random(7) + 100) + 1;
liv28[maxrig - 4][5] = (random(7) + 100) + 1;
liv28[maxrig - 4][7] = (random(7) + 100) + 1;
liv28[maxrig - 5][2] = (random(7) + 100) + 1;
liv28[maxrig - 5][7] = (random(7) + 100) + 1;
liv28[maxrig - 6][2] = (random(7) + 100) + 1;
liv28[maxrig - 6][3] = (random(7) + 100) + 1;
liv28[maxrig - 6][4] = (random(7) + 100) + 1;
liv28[maxrig - 6][5] = (random(7) + 100) + 1;
liv28[maxrig - 6][6] = (random(7) + 100) + 1;
liv28[maxrig - 6][7] = (random(7) + 100) + 1;
liv28[maxrig - 7][2] = (random(7) + 100) + 1;
liv28[maxrig - 7][7] = (random(7) + 100) + 1;
liv28[maxrig - 8][2] = (random(7) + 100) + 1;
liv28[maxrig - 8][7] = (random(7) + 100) + 1;
liv29[maxrig - 13][0] = (random(7) + 100) + 1;
liv29[maxrig - 13][9] = (random(7) + 100) + 1;
liv29[maxrig - 12][1] = (random(7) + 100) + 1;
liv29[maxrig - 12][8] = (random(7) + 100) + 1;
liv29[maxrig - 11][2] = (random(7) + 100) + 1;
liv29[maxrig - 11][7] = (random(7) + 100) + 1;
liv29[maxrig - 10][3] = (random(7) + 100) + 1;
liv29[maxrig - 10][6] = (random(7) + 100) + 1;
liv29[maxrig - 1][4] = (random(7) + 100) + 1;
liv29[maxrig - 1][5] = (random(7) + 100) + 1;
liv29[maxrig - 2][3] = (random(7) + 100) + 1;
liv29[maxrig - 2][6] = (random(7) + 100) + 1;
liv29[maxrig - 3][2] = (random(7) + 100) + 1;
liv29[maxrig - 3][7] = (random(7) + 100) + 1;
liv29[maxrig - 4][1] = (random(7) + 100) + 1;
liv29[maxrig - 4][8] = (random(7) + 100) + 1;
liv29[maxrig - 5][0] = (random(7) + 100) + 1;
liv29[maxrig - 5][9] = (random(7) + 100) + 1;
liv29[maxrig - 6][1] = (random(7) + 100) + 1;
liv29[maxrig - 6][8] = (random(7) + 100) + 1;
liv29[maxrig - 7][2] = (random(7) + 100) + 1;
liv29[maxrig - 7][4] = (random(7) + 100) + 1;
liv29[maxrig - 7][5] = (random(7) + 100) + 1;
liv29[maxrig - 7][7] = (random(7) + 100) + 1;
liv29[maxrig - 8][3] = (random(7) + 100) + 1;
liv29[maxrig - 8][6] = (random(7) + 100) + 1;
liv30[maxrig - 13][3] = (random(7) + 100) + 1;
liv30[maxrig - 13][6] = (random(7) + 100) + 1;
liv30[maxrig - 12][3] = (random(7) + 100) + 1;
liv30[maxrig - 12][6] = (random(7) + 100) + 1;
liv30[maxrig - 11][3] = (random(7) + 100) + 1;
liv30[maxrig - 11][6] = (random(7) + 100) + 1;
liv30[maxrig - 10][3] = (random(7) + 100) + 1;
liv30[maxrig - 10][6] = (random(7) + 100) + 1;
liv30[maxrig - 9][3] = (random(7) + 100) + 1;
liv30[maxrig - 9][6] = (random(7) + 100) + 1;
liv30[maxrig - 1][4] = (random(7) + 100) + 1;
liv30[maxrig - 1][5] = (random(7) + 100) + 1;
liv30[maxrig - 2][3] = (random(7) + 100) + 1;
liv30[maxrig - 2][6] = (random(7) + 100) + 1;
liv30[maxrig - 3][2] = (random(7) + 100) + 1;
liv30[maxrig - 3][7] = (random(7) + 100) + 1;
liv30[maxrig - 4][1] = (random(7) + 100) + 1;
liv30[maxrig - 4][8] = (random(7) + 100) + 1;
liv30[maxrig - 5][0] = (random(7) + 100) + 1;
liv30[maxrig - 5][9] = (random(7) + 100) + 1;
liv30[maxrig - 6][1] = (random(7) + 100) + 1;
liv30[maxrig - 6][8] = (random(7) + 100) + 1;
liv30[maxrig - 7][2] = (random(7) + 100) + 1;
liv30[maxrig - 7][4] = (random(7) + 100) + 1;
liv30[maxrig - 7][5] = (random(7) + 100) + 1;
liv30[maxrig - 7][7] = (random(7) + 100) + 1;
liv30[maxrig - 8][3] = (random(7) + 100) + 1;
liv30[maxrig - 8][6] = (random(7) + 100) + 1;
liv31[maxrig - 1][0] = (random(7) + 100) + 1;
liv31[maxrig - 2][0] = (random(7) + 100) + 1;
liv31[maxrig - 3][0] = (random(7) + 100) + 1;
liv31[maxrig - 1][4] = (random(7) + 100) + 1;
liv31[maxrig - 1][5] = (random(7) + 100) + 1;
liv31[maxrig - 2][4] = (random(7) + 100) + 1;
liv31[maxrig - 2][5] = (random(7) + 100) + 1;
liv31[maxrig - 1][9] = (random(7) + 100) + 1;
liv31[maxrig - 2][9] = (random(7) + 100) + 1;
liv31[maxrig - 3][9] = (random(7) + 100) + 1;
liv31[maxrig - 4][0] = (random(7) + 100) + 1;
liv31[maxrig - 5][0] = (random(7) + 100) + 1;
liv31[maxrig - 6][0] = (random(7) + 100) + 1;
liv31[maxrig - 3][4] = (random(7) + 100) + 1;
liv31[maxrig - 3][5] = (random(7) + 100) + 1;
liv31[maxrig - 4][4] = (random(7) + 100) + 1;
liv31[maxrig - 4][5] = (random(7) + 100) + 1;
liv31[maxrig - 4][9] = (random(7) + 100) + 1;
liv31[maxrig - 5][9] = (random(7) + 100) + 1;
liv31[maxrig - 6][9] = (random(7) + 100) + 1;
liv32[maxrig - 1][4] = (random(7) + 100) + 1;
liv32[maxrig - 2][4] = (random(7) + 100) + 1;
liv32[maxrig - 3][4] = (random(7) + 100) + 1;
liv32[maxrig - 4][4] = (random(7) + 100) + 1;
liv32[maxrig - 5][4] = (random(7) + 100) + 1;
liv32[maxrig - 6][4] = (random(7) + 100) + 1;
liv32[maxrig - 7][4] = (random(7) + 100) + 1;
liv32[maxrig - 8][4] = (random(7) + 100) + 1;
liv32[maxrig - 9][4] = (random(7) + 100) + 1;
liv32[maxrig - 10][4] = (random(7) + 100) + 1;
liv32[maxrig - 11][4] = (random(7) + 100) + 1;
liv32[maxrig - 12][4] = (random(7) + 100) + 1;
liv32[maxrig - 13][4] = (random(7) + 100) + 1;
liv32[maxrig - 1][5] = (random(7) + 100) + 1;
liv32[maxrig - 2][5] = (random(7) + 100) + 1;
liv32[maxrig - 3][5] = (random(7) + 100) + 1;
liv32[maxrig - 4][5] = (random(7) + 100) + 1;
liv32[maxrig - 5][5] = (random(7) + 100) + 1;
liv32[maxrig - 6][5] = (random(7) + 100) + 1;
liv32[maxrig - 7][5] = (random(7) + 100) + 1;
liv32[maxrig - 8][5] = (random(7) + 100) + 1;
liv32[maxrig - 9][5] = (random(7) + 100) + 1;
liv32[maxrig - 10][5] = (random(7) + 100) + 1;
liv32[maxrig - 11][5] = (random(7) + 100) + 1;
liv32[maxrig - 12][5] = (random(7) + 100) + 1;
liv32[maxrig - 13][5] = (random(7) + 100) + 1;
liv33[maxrig - 1][4] = (random(7) + 100) + 1;
liv33[maxrig - 2][4] = (random(7) + 100) + 1;
liv33[maxrig - 3][4] = (random(7) + 100) + 1;
liv33[maxrig - 4][4] = (random(7) + 100) + 1;
liv33[maxrig - 5][4] = (random(7) + 100) + 1;
liv33[maxrig - 6][4] = (random(7) + 100) + 1;
liv33[maxrig - 7][4] = (random(7) + 100) + 1;
liv33[maxrig - 8][4] = (random(7) + 100) + 1;
liv33[maxrig - 9][4] = (random(7) + 100) + 1;
liv33[maxrig - 10][4] = (random(7) + 100) + 1;
liv33[maxrig - 11][4] = (random(7) + 100) + 1;
liv33[maxrig - 12][4] = (random(7) + 100) + 1;
liv33[maxrig - 13][4] = (random(7) + 100) + 1;
liv33[maxrig - 1][5] = (random(7) + 100) + 1;
liv33[maxrig - 2][5] = (random(7) + 100) + 1;
liv33[maxrig - 3][5] = (random(7) + 100) + 1;
liv33[maxrig - 4][5] = (random(7) + 100) + 1;
liv33[maxrig - 5][5] = (random(7) + 100) + 1;
liv33[maxrig - 6][5] = (random(7) + 100) + 1;
liv33[maxrig - 7][5] = (random(7) + 100) + 1;
liv33[maxrig - 8][5] = (random(7) + 100) + 1;
liv33[maxrig - 9][5] = (random(7) + 100) + 1;
liv33[maxrig - 10][5] = (random(7) + 100) + 1;
liv33[maxrig - 11][5] = (random(7) + 100) + 1;
liv33[maxrig - 12][5] = (random(7) + 100) + 1;
liv33[maxrig - 13][5] = (random(7) + 100) + 1;
liv33[maxrig - 2][3] = (random(7) + 100) + 1;
liv33[maxrig - 2][6] = (random(7) + 100) + 1;
liv33[maxrig - 3][2] = (random(7) + 100) + 1;
liv33[maxrig - 3][7] = (random(7) + 100) + 1;
liv33[maxrig - 4][1] = (random(7) + 100) + 1;
liv33[maxrig - 4][8] = (random(7) + 100) + 1;
liv33[maxrig - 5][0] = (random(7) + 100) + 1;
liv33[maxrig - 5][9] = (random(7) + 100) + 1;
liv34[maxrig - 1][4] = (random(7) + 100) + 1;
liv34[maxrig - 2][4] = (random(7) + 100) + 1;
liv34[maxrig - 3][4] = (random(7) + 100) + 1;
liv34[maxrig - 4][4] = (random(7) + 100) + 1;
liv34[maxrig - 5][4] = (random(7) + 100) + 1;
liv34[maxrig - 6][4] = (random(7) + 100) + 1;
liv34[maxrig - 7][4] = (random(7) + 100) + 1;
liv34[maxrig - 8][4] = (random(7) + 100) + 1;
liv34[maxrig - 9][4] = (random(7) + 100) + 1;
liv34[maxrig - 10][4] = (random(7) + 100) + 1;
liv34[maxrig - 11][4] = (random(7) + 100) + 1;
liv34[maxrig - 12][4] = (random(7) + 100) + 1;
liv34[maxrig - 13][4] = (random(7) + 100) + 1;
liv34[maxrig - 1][5] = (random(7) + 100) + 1;
liv34[maxrig - 2][5] = (random(7) + 100) + 1;
liv34[maxrig - 3][5] = (random(7) + 100) + 1;
liv34[maxrig - 4][5] = (random(7) + 100) + 1;
liv34[maxrig - 5][5] = (random(7) + 100) + 1;
liv34[maxrig - 6][5] = (random(7) + 100) + 1;
liv34[maxrig - 7][5] = (random(7) + 100) + 1;
liv34[maxrig - 8][5] = (random(7) + 100) + 1;
liv34[maxrig - 9][5] = (random(7) + 100) + 1;
liv34[maxrig - 10][5] = (random(7) + 100) + 1;
liv34[maxrig - 11][5] = (random(7) + 100) + 1;
liv34[maxrig - 12][5] = (random(7) + 100) + 1;
liv34[maxrig - 13][5] = (random(7) + 100) + 1;
liv34[maxrig - 2][3] = (random(7) + 100) + 1;
liv34[maxrig - 2][6] = (random(7) + 100) + 1;
liv34[maxrig - 3][2] = (random(7) + 100) + 1;
liv34[maxrig - 3][7] = (random(7) + 100) + 1;
liv34[maxrig - 4][1] = (random(7) + 100) + 1;
liv34[maxrig - 4][8] = (random(7) + 100) + 1;
liv34[maxrig - 5][0] = (random(7) + 100) + 1;
liv34[maxrig - 5][9] = (random(7) + 100) + 1;
liv34[maxrig - 6][0] = (random(7) + 100) + 1;
liv34[maxrig - 7][0] = (random(7) + 100) + 1;
liv34[maxrig - 8][0] = (random(7) + 100) + 1;
liv34[maxrig - 9][0] = (random(7) + 100) + 1;
liv34[maxrig - 6][9] = (random(7) + 100) + 1;
liv34[maxrig - 7][9] = (random(7) + 100) + 1;
liv34[maxrig - 8][9] = (random(7) + 100) + 1;
liv34[maxrig - 9][9] = (random(7) + 100) + 1;
liv35[maxrig - 1][1] = (random(7) + 100) + 1;
liv35[maxrig - 2][1] = (random(7) + 100) + 1;
liv35[maxrig - 3][1] = (random(7) + 100) + 1;
liv35[maxrig - 4][1] = (random(7) + 100) + 1;
liv35[maxrig - 5][1] = (random(7) + 100) + 1;
liv35[maxrig - 6][1] = (random(7) + 100) + 1;
liv35[maxrig - 7][1] = (random(7) + 100) + 1;
liv35[maxrig - 8][1] = (random(7) + 100) + 1;
liv35[maxrig - 9][1] = (random(7) + 100) + 1;
liv35[maxrig - 10][1] = (random(7) + 100) + 1;
liv35[maxrig - 1][8] = (random(7) + 100) + 1;
liv35[maxrig - 2][8] = (random(7) + 100) + 1;
liv35[maxrig - 3][8] = (random(7) + 100) + 1;
liv35[maxrig - 4][8] = (random(7) + 100) + 1;
liv35[maxrig - 5][8] = (random(7) + 100) + 1;
liv35[maxrig - 6][8] = (random(7) + 100) + 1;
liv35[maxrig - 7][8] = (random(7) + 100) + 1;
liv35[maxrig - 8][8] = (random(7) + 100) + 1;
liv35[maxrig - 9][8] = (random(7) + 100) + 1;
liv35[maxrig - 10][8] = (random(7) + 100) + 1;
liv36[maxrig - 1][1] = (random(7) + 100) + 1;
liv36[maxrig - 2][1] = (random(7) + 100) + 1;
liv36[maxrig - 3][1] = (random(7) + 100) + 1;
liv36[maxrig - 4][1] = (random(7) + 100) + 1;
liv36[maxrig - 5][1] = (random(7) + 100) + 1;
liv36[maxrig - 6][1] = (random(7) + 100) + 1;
liv36[maxrig - 7][1] = (random(7) + 100) + 1;
liv36[maxrig - 8][1] = (random(7) + 100) + 1;
liv36[maxrig - 9][1] = (random(7) + 100) + 1;
liv36[maxrig - 1][8] = (random(7) + 100) + 1;
liv36[maxrig - 2][8] = (random(7) + 100) + 1;
liv36[maxrig - 3][8] = (random(7) + 100) + 1;
liv36[maxrig - 4][8] = (random(7) + 100) + 1;
liv36[maxrig - 5][8] = (random(7) + 100) + 1;
liv36[maxrig - 6][8] = (random(7) + 100) + 1;
liv36[maxrig - 7][8] = (random(7) + 100) + 1;
liv36[maxrig - 8][8] = (random(7) + 100) + 1;
liv36[maxrig - 9][8] = (random(7) + 100) + 1;
liv36[maxrig - 1][6] = (random(7) + 100) + 1;
liv36[maxrig - 2][6] = (random(7) + 100) + 1;
liv36[maxrig - 3][6] = (random(7) + 100) + 1;
liv36[maxrig - 4][6] = (random(7) + 100) + 1;
liv36[maxrig - 5][6] = (random(7) + 100) + 1;
liv36[maxrig - 6][6] = (random(7) + 100) + 1;
liv36[maxrig - 7][6] = (random(7) + 100) + 1;
liv36[maxrig - 8][6] = (random(7) + 100) + 1;
liv36[maxrig - 9][6] = (random(7) + 100) + 1;
liv36[maxrig - 1][3] = (random(7) + 100) + 1;
liv36[maxrig - 2][3] = (random(7) + 100) + 1;
liv36[maxrig - 3][3] = (random(7) + 100) + 1;
liv36[maxrig - 4][3] = (random(7) + 100) + 1;
liv36[maxrig - 5][3] = (random(7) + 100) + 1;
liv36[maxrig - 6][3] = (random(7) + 100) + 1;
liv36[maxrig - 7][3] = (random(7) + 100) + 1;
liv36[maxrig - 8][3] = (random(7) + 100) + 1;
liv36[maxrig - 9][3] = (random(7) + 100) + 1;
liv37[maxrig - 1][2] = (random(7) + 100) + 1;
liv37[maxrig - 2][2] = (random(7) + 100) + 1;
liv37[maxrig - 3][2] = (random(7) + 100) + 1;
liv37[maxrig - 4][2] = (random(7) + 100) + 1;
liv37[maxrig - 5][2] = (random(7) + 100) + 1;
liv37[maxrig - 6][2] = (random(7) + 100) + 1;
liv37[maxrig - 7][2] = (random(7) + 100) + 1;
liv37[maxrig - 8][2] = (random(7) + 100) + 1;
liv37[maxrig - 9][2] = (random(7) + 100) + 1;
liv37[maxrig - 10][2] = (random(7) + 100) + 1;
liv37[maxrig - 1][7] = (random(7) + 100) + 1;
liv37[maxrig - 2][7] = (random(7) + 100) + 1;
liv37[maxrig - 3][7] = (random(7) + 100) + 1;
liv37[maxrig - 4][7] = (random(7) + 100) + 1;
liv37[maxrig - 5][7] = (random(7) + 100) + 1;
liv37[maxrig - 6][7] = (random(7) + 100) + 1;
liv37[maxrig - 7][7] = (random(7) + 100) + 1;
liv37[maxrig - 8][7] = (random(7) + 100) + 1;
liv37[maxrig - 9][7] = (random(7) + 100) + 1;
liv37[maxrig - 10][7] = (random(7) + 100) + 1;
liv38[maxrig - 1][2] = (random(7) + 100) + 1;
liv38[maxrig - 2][2] = (random(7) + 100) + 1;
liv38[maxrig - 3][2] = (random(7) + 100) + 1;
liv38[maxrig - 4][2] = (random(7) + 100) + 1;
liv38[maxrig - 5][2] = (random(7) + 100) + 1;
liv38[maxrig - 6][2] = (random(7) + 100) + 1;
liv38[maxrig - 7][2] = (random(7) + 100) + 1;
liv38[maxrig - 8][2] = (random(7) + 100) + 1;
liv38[maxrig - 9][2] = (random(7) + 100) + 1;
liv38[maxrig - 10][2] = (random(7) + 100) + 1;
liv38[maxrig - 1][7] = (random(7) + 100) + 1;
liv38[maxrig - 2][7] = (random(7) + 100) + 1;
liv38[maxrig - 3][7] = (random(7) + 100) + 1;
liv38[maxrig - 4][7] = (random(7) + 100) + 1;
liv38[maxrig - 5][7] = (random(7) + 100) + 1;
liv38[maxrig - 6][7] = (random(7) + 100) + 1;
liv38[maxrig - 7][7] = (random(7) + 100) + 1;
liv38[maxrig - 8][7] = (random(7) + 100) + 1;
liv38[maxrig - 9][7] = (random(7) + 100) + 1;
liv38[maxrig - 10][7] = (random(7) + 100) + 1;
liv38[maxrig - 1][4] = (random(7) + 100) + 1;
liv38[maxrig - 2][5] = (random(7) + 100) + 1;
liv38[maxrig - 3][4] = (random(7) + 100) + 1;
liv38[maxrig - 4][5] = (random(7) + 100) + 1;
liv38[maxrig - 5][4] = (random(7) + 100) + 1;
liv38[maxrig - 6][5] = (random(7) + 100) + 1;
liv38[maxrig - 7][4] = (random(7) + 100) + 1;
liv39[maxrig - 1][7] = (random(7) + 100) + 1;
liv39[maxrig - 2][7] = (random(7) + 100) + 1;
liv39[maxrig - 3][7] = (random(7) + 100) + 1;
liv39[maxrig - 4][7] = (random(7) + 100) + 1;
liv39[maxrig - 5][7] = (random(7) + 100) + 1;
liv39[maxrig - 6][7] = (random(7) + 100) + 1;
liv39[maxrig - 7][7] = (random(7) + 100) + 1;
liv39[maxrig - 8][0] = (random(7) + 100) + 1;
liv39[maxrig - 8][1] = (random(7) + 100) + 1;
liv39[maxrig - 8][2] = (random(7) + 100) + 1;
liv39[maxrig - 8][3] = (random(7) + 100) + 1;
liv39[maxrig - 8][9] = (random(7) + 100) + 1;
liv39[maxrig - 8][8] = (random(7) + 100) + 1;
liv39[maxrig - 8][6] = (random(7) + 100) + 1;
liv39[maxrig - 8][7] = (random(7) + 100) + 1;
liv40[maxrig - 6][0] = (random(7) + 100) + 1;
liv40[maxrig - 6][1] = (random(7) + 100) + 1;
liv40[maxrig - 6][2] = (random(7) + 100) + 1;
liv40[maxrig - 6][3] = (random(7) + 100) + 1;
liv40[maxrig - 6][0] = (random(7) + 100) + 1;
liv40[maxrig - 6][6] = (random(7) + 100) + 1;
liv40[maxrig - 6][7] = (random(7) + 100) + 1;
liv40[maxrig - 6][8] = (random(7) + 100) + 1;
liv40[maxrig - 6][9] = (random(7) + 100) + 1;
liv40[maxrig - 7][3] = (random(7) + 100) + 1;
liv40[maxrig - 7][4] = (random(7) + 100) + 1;
liv40[maxrig - 7][5] = (random(7) + 100) + 1;
liv40[maxrig - 7][6] = (random(7) + 100) + 1;
liv40[maxrig - 5][3] = (random(7) + 100) + 1;
liv40[maxrig - 5][4] = (random(7) + 100) + 1;
liv40[maxrig - 5][5] = (random(7) + 100) + 1;
liv40[maxrig - 5][6] = (random(7) + 100) + 1;
liv41[maxrig - 6][0] = (random(7) + 100) + 1;
liv41[maxrig - 6][1] = (random(7) + 100) + 1;
liv41[maxrig - 6][2] = (random(7) + 100) + 1;
liv41[maxrig - 6][3] = (random(7) + 100) + 1;
liv41[maxrig - 6][0] = (random(7) + 100) + 1;
liv41[maxrig - 6][6] = (random(7) + 100) + 1;
liv41[maxrig - 6][7] = (random(7) + 100) + 1;
liv41[maxrig - 6][8] = (random(7) + 100) + 1;
liv41[maxrig - 6][9] = (random(7) + 100) + 1;
liv41[maxrig - 7][3] = (random(7) + 100) + 1;
liv41[maxrig - 7][4] = (random(7) + 100) + 1;
liv41[maxrig - 7][5] = (random(7) + 100) + 1;
liv41[maxrig - 7][6] = (random(7) + 100) + 1;
liv41[maxrig - 5][3] = (random(7) + 100) + 1;
liv41[maxrig - 5][4] = (random(7) + 100) + 1;
liv41[maxrig - 5][5] = (random(7) + 100) + 1;
liv41[maxrig - 5][6] = (random(7) + 100) + 1;
liv41[maxrig - 1][0] = (random(7) + 100) + 1;
liv41[maxrig - 2][1] = (random(7) + 100) + 1;
liv41[maxrig - 3][2] = (random(7) + 100) + 1;
liv41[maxrig - 4][3] = (random(7) + 100) + 1;
liv41[maxrig - 1][6] = (random(7) + 100) + 1;
liv41[maxrig - 2][7] = (random(7) + 100) + 1;
liv41[maxrig - 3][8] = (random(7) + 100) + 1;
liv41[maxrig - 4][9] = (random(7) + 100) + 1;
liv42[maxrig - 1][1] = (random(7) + 100) + 1;
liv42[maxrig - 2][1] = (random(7) + 100) + 1;
liv42[maxrig - 3][1] = (random(7) + 100) + 1;
liv42[maxrig - 4][1] = (random(7) + 100) + 1;
liv42[maxrig - 5][1] = (random(7) + 100) + 1;
liv42[maxrig - 6][1] = (random(7) + 100) + 1;
liv42[maxrig - 7][1] = (random(7) + 100) + 1;
liv42[maxrig - 8][1] = (random(7) + 100) + 1;
liv42[maxrig - 9][1] = (random(7) + 100) + 1;
liv42[maxrig - 10][1] = (random(7) + 100) + 1;
liv42[maxrig - 11][1] = (random(7) + 100) + 1;
liv42[maxrig - 1][9] = (random(7) + 100) + 1;
liv42[maxrig - 2][9] = (random(7) + 100) + 1;
liv42[maxrig - 3][9] = (random(7) + 100) + 1;
liv42[maxrig - 4][9] = (random(7) + 100) + 1;
liv42[maxrig - 5][9] = (random(7) + 100) + 1;
liv42[maxrig - 6][9] = (random(7) + 100) + 1;
liv42[maxrig - 7][9] = (random(7) + 100) + 1;
liv42[maxrig - 8][9] = (random(7) + 100) + 1;
liv42[maxrig - 9][9] = (random(7) + 100) + 1;
liv42[maxrig - 10][9] = (random(7) + 100) + 1;
liv42[maxrig - 11][9] = (random(7) + 100) + 1;
liv42[maxrig - 12][9] = (random(7) + 100) + 1;
liv42[maxrig - 13][9] = (random(7) + 100) + 1;
liv43[maxrig - 1][1] = (random(7) + 100) + 1;
liv43[maxrig - 2][1] = (random(7) + 100) + 1;
liv43[maxrig - 3][1] = (random(7) + 100) + 1;
liv43[maxrig - 4][1] = (random(7) + 100) + 1;
liv43[maxrig - 5][1] = (random(7) + 100) + 1;
liv43[maxrig - 6][1] = (random(7) + 100) + 1;
liv43[maxrig - 7][1] = (random(7) + 100) + 1;
liv43[maxrig - 8][1] = (random(7) + 100) + 1;
liv43[maxrig - 9][1] = (random(7) + 100) + 1;
liv43[maxrig - 10][1] = (random(7) + 100) + 1;
liv43[maxrig - 11][1] = (random(7) + 100) + 1;
liv43[maxrig - 1][4] = (random(7) + 100) + 1;
liv43[maxrig - 2][5] = (random(7) + 100) + 1;
liv43[maxrig - 3][6] = (random(7) + 100) + 1;
liv43[maxrig - 4][7] = (random(7) + 100) + 1;
liv43[maxrig - 5][8] = (random(7) + 100) + 1;
liv43[maxrig - 6][8] = (random(7) + 100) + 1;
liv43[maxrig - 7][8] = (random(7) + 100) + 1;
liv43[maxrig - 8][8] = (random(7) + 100) + 1;
liv43[maxrig - 9][8] = (random(7) + 100) + 1;
liv44[maxrig - 1][0] = (random(7) + 100) + 1;
liv44[maxrig - 2][0] = (random(7) + 100) + 1;
liv44[maxrig - 2][1] = (random(7) + 100) + 1;
liv44[maxrig - 3][0] = (random(7) + 100) + 1;
liv44[maxrig - 3][1] = (random(7) + 100) + 1;
liv44[maxrig - 3][2] = (random(7) + 100) + 1;
liv44[maxrig - 4][0] = (random(7) + 100) + 1;
liv44[maxrig - 4][1] = (random(7) + 100) + 1;
liv44[maxrig - 4][2] = (random(7) + 100) + 1;
liv44[maxrig - 4][3] = (random(7) + 100) + 1;
liv44[maxrig - 5][0] = (random(7) + 100) + 1;
liv44[maxrig - 5][1] = (random(7) + 100) + 1;
liv44[maxrig - 5][2] = (random(7) + 100) + 1;
liv44[maxrig - 5][3] = (random(7) + 100) + 1;
liv44[maxrig - 5][4] = (random(7) + 100) + 1;
liv44[maxrig - 6][0] = (random(7) + 100) + 1;
liv44[maxrig - 6][1] = (random(7) + 100) + 1;
liv44[maxrig - 6][2] = (random(7) + 100) + 1;
liv44[maxrig - 6][3] = (random(7) + 100) + 1;
liv44[maxrig - 6][4] = (random(7) + 100) + 1;
liv44[maxrig - 6][5] = (random(7) + 100) + 1;
liv44[maxrig - 7][0] = (random(7) + 100) + 1;
liv44[maxrig - 7][1] = (random(7) + 100) + 1;
liv44[maxrig - 7][2] = (random(7) + 100) + 1;
liv44[maxrig - 7][3] = (random(7) + 100) + 1;
liv44[maxrig - 7][4] = (random(7) + 100) + 1;
liv44[maxrig - 7][5] = (random(7) + 100) + 1;
liv44[maxrig - 7][6] = (random(7) + 100) + 1;
liv45[maxrig - 1][0] = (random(7) + 100) + 1;
liv45[maxrig - 2][0] = (random(7) + 100) + 1;
liv45[maxrig - 3][0] = (random(7) + 100) + 1;
liv45[maxrig - 3][2] = (random(7) + 100) + 1;
liv45[maxrig - 4][0] = (random(7) + 100) + 1;
liv45[maxrig - 4][2] = (random(7) + 100) + 1;
liv45[maxrig - 5][0] = (random(7) + 100) + 1;
liv45[maxrig - 5][2] = (random(7) + 100) + 1;
liv45[maxrig - 5][4] = (random(7) + 100) + 1;
liv45[maxrig - 6][0] = (random(7) + 100) + 1;
liv45[maxrig - 6][2] = (random(7) + 100) + 1;
liv45[maxrig - 6][4] = (random(7) + 100) + 1;
liv45[maxrig - 7][0] = (random(7) + 100) + 1;
liv45[maxrig - 7][2] = (random(7) + 100) + 1;
liv45[maxrig - 7][4] = (random(7) + 100) + 1;
liv45[maxrig - 7][6] = (random(7) + 100) + 1;
liv46[maxrig - 1][0] = (random(7) + 100) + 1;
liv46[maxrig - 2][0] = (random(7) + 100) + 1;
liv46[maxrig - 1][4] = (random(7) + 100) + 1;
liv46[maxrig - 2][4] = (random(7) + 100) + 1;
liv46[maxrig - 1][5] = (random(7) + 100) + 1;
liv46[maxrig - 2][5] = (random(7) + 100) + 1;
liv46[maxrig - 1][9] = (random(7) + 100) + 1;
liv46[maxrig - 2][9] = (random(7) + 100) + 1;
liv46[maxrig - 3][1] = (random(7) + 100) + 1;
liv46[maxrig - 3][2] = (random(7) + 100) + 1;
liv46[maxrig - 3][3] = (random(7) + 100) + 1;
liv46[maxrig - 3][6] = (random(7) + 100) + 1;
liv46[maxrig - 3][7] = (random(7) + 100) + 1;
liv46[maxrig - 3][8] = (random(7) + 100) + 1;
liv46[maxrig - 4][2] = (random(7) + 100) + 1;
liv46[maxrig - 5][2] = (random(7) + 100) + 1;
liv46[maxrig - 4][7] = (random(7) + 100) + 1;
liv46[maxrig - 5][7] = (random(7) + 100) + 1;
liv46[maxrig - 6][3] = (random(7) + 100) + 1;
liv46[maxrig - 6][4] = (random(7) + 100) + 1;
liv46[maxrig - 6][5] = (random(7) + 100) + 1;
liv46[maxrig - 6][6] = (random(7) + 100) + 1;
liv46[maxrig - 7][4] = (random(7) + 100) + 1;
liv46[maxrig - 7][5] = (random(7) + 100) + 1;
liv47[maxrig - 1][3] = (random(7) + 100) + 1;
liv47[maxrig - 2][3] = (random(7) + 100) + 1;
liv47[maxrig - 3][3] = (random(7) + 100) + 1;
liv47[maxrig - 4][3] = (random(7) + 100) + 1;
liv47[maxrig - 5][3] = (random(7) + 100) + 1;
liv47[maxrig - 6][3] = (random(7) + 100) + 1;
liv47[maxrig - 7][3] = (random(7) + 100) + 1;
liv47[maxrig - 8][3] = (random(7) + 100) + 1;
liv47[maxrig - 9][3] = (random(7) + 100) + 1;
liv47[maxrig - 10][3] = (random(7) + 100) + 1;
liv47[maxrig - 1][6] = (random(7) + 100) + 1;
liv47[maxrig - 2][6] = (random(7) + 100) + 1;
liv47[maxrig - 3][6] = (random(7) + 100) + 1;
liv47[maxrig - 4][6] = (random(7) + 100) + 1;
liv47[maxrig - 5][6] = (random(7) + 100) + 1;
liv47[maxrig - 6][6] = (random(7) + 100) + 1;
liv47[maxrig - 7][6] = (random(7) + 100) + 1;
liv47[maxrig - 8][6] = (random(7) + 100) + 1;
liv47[maxrig - 9][6] = (random(7) + 100) + 1;
liv47[maxrig - 10][6] = (random(7) + 100) + 1;
}
function Sceglilivello() {
if (numlevel == 1) {
matsfondo = liv1;
numcicli = 0;
numrig = 7;
puntiliv = 1;
} else if (numlevel == 2) {
matsfondo = liv2;
numcicli = 1;
numrig = 10;
puntiliv = 2;
} else if (numlevel == 3) {
matsfondo = liv3;
numcicli = 1;
numrig = 12;
puntiliv = 4;
} else if (numlevel == 4) {
matsfondo = liv4;
numcicli = 1;
numrig = 10;
puntiliv = 7;
} else if (numlevel == 5) {
matsfondo = liv5;
numcicli = 2;
numrig = 10;
puntiliv = 8;
} else if (numlevel == 6) {
matsfondo = liv6;
numcicli = 2;
numrig = 10;
puntiliv = 9;
} else if (numlevel == 7) {
matsfondo = liv7;
numcicli = 1;
numrig = 10;
puntiliv = 10;
} else if (numlevel == 8) {
matsfondo = liv8;
numcicli = 1;
numrig = 10;
puntiliv = 11;
} else if (numlevel == 9) {
matsfondo = liv9;
numcicli = 2;
numrig = 12;
puntiliv = 12;
} else if (numlevel == 10) {
matsfondo = liv10;
numcicli = 2;
numrig = 12;
puntiliv = 13;
} else if (numlevel == 11) {
matsfondo = liv11;
numcicli = 1;
numrig = 10;
puntiliv = 14;
} else if (numlevel == 12) {
matsfondo = liv12;
numcicli = 2;
numrig = 12;
puntiliv = 15;
} else if (numlevel == 13) {
matsfondo = liv13;
numcicli = 2;
numrig = 13;
puntiliv = 16;
} else if (numlevel == 14) {
matsfondo = liv14;
numcicli = 2;
numrig = 10;
puntiliv = 16;
} else if (numlevel == 15) {
matsfondo = liv15;
numcicli = 1;
numrig = 15;
puntiliv = 16;
} else if (numlevel == 16) {
matsfondo = liv16;
numcicli = 1;
numrig = 10;
puntiliv = 17;
} else if (numlevel == 17) {
matsfondo = liv17;
numcicli = 2;
numrig = 10;
puntiliv = 17;
} else if (numlevel == 18) {
matsfondo = liv18;
numcicli = 2;
numrig = 10;
puntiliv = 18;
} else if (numlevel == 19) {
matsfondo = liv19;
numcicli = 1;
numrig = 20;
puntiliv = 19;
} else if (numlevel == 20) {
matsfondo = liv20;
numcicli = 2;
numrig = 10;
puntiliv = 20;
} else if (numlevel == 21) {
matsfondo = liv21;
numcicli = 1;
numrig = 15;
puntiliv = 21;
} else if (numlevel == 22) {
matsfondo = liv22;
numcicli = 2;
numrig = 12;
puntiliv = 22;
} else if (numlevel == 23) {
matsfondo = liv23;
numcicli = 2;
numrig = 10;
puntiliv = 23;
} else if (numlevel == 24) {
matsfondo = liv24;
numcicli = 2;
numrig = 10;
puntiliv = 24;
} else if (numlevel == 25) {
matsfondo = liv25;
numcicli = 1;
numrig = 10;
puntiliv = 25;
} else if (numlevel == 26) {
matsfondo = liv26;
numcicli = 2;
numrig = 10;
puntiliv = 26;
} else if (numlevel == 27) {
matsfondo = liv27;
numcicli = 1;
numrig = 10;
puntiliv = 27;
} else if (numlevel == 28) {
matsfondo = liv28;
numcicli = 2;
numrig = 10;
puntiliv = 28;
} else if (numlevel == 29) {
matsfondo = liv29;
numcicli = 2;
numrig = 10;
puntiliv = 29;
} else if (numlevel == 30) {
matsfondo = liv30;
numcicli = 1;
numrig = 10;
puntiliv = 30;
} else if (numlevel == 31) {
matsfondo = liv31;
numcicli = 1;
numrig = 12;
puntiliv = 31;
} else if (numlevel == 32) {
matsfondo = liv32;
numcicli = 1;
numrig = 12;
puntiliv = 32;
} else if (numlevel == 33) {
matsfondo = liv33;
numcicli = 2;
numrig = 10;
puntiliv = 33;
} else if (numlevel == 34) {
matsfondo = liv34;
numcicli = 2;
numrig = 10;
puntiliv = 34;
} else if (numlevel == 35) {
matsfondo = liv35;
numcicli = 1;
numrig = 10;
puntiliv = 35;
} else if (numlevel == 36) {
matsfondo = liv36;
numcicli = 1;
numrig = 10;
puntiliv = 36;
} else if (numlevel == 37) {
matsfondo = liv37;
numcicli = 1;
numrig = 12;
puntiliv = 37;
} else if (numlevel == 38) {
matsfondo = liv38;
numcicli = 1;
numrig = 10;
puntiliv = 38;
} else if (numlevel == 39) {
matsfondo = liv39;
numcicli = 2;
numrig = 10;
puntiliv = 39;
} else if (numlevel == 40) {
matsfondo = liv40;
numcicli = 2;
numrig = 10;
puntiliv = 40;
} else if (numlevel == 41) {
matsfondo = liv41;
numcicli = 1;
numrig = 10;
puntiliv = 41;
} else if (numlevel == 42) {
matsfondo = liv42;
numcicli = 1;
numrig = 10;
puntiliv = 42;
} else if (numlevel == 43) {
matsfondo = liv43;
numcicli = 1;
numrig = 10;
puntiliv = 43;
} else if (numlevel == 44) {
matsfondo = liv44;
numcicli = 1;
numrig = 15;
puntiliv = 44;
} else if (numlevel == 45) {
matsfondo = liv45;
numcicli = 1;
numrig = 10;
puntiliv = 45;
} else if (numlevel == 46) {
matsfondo = liv46;
numcicli = 1;
numrig = 20;
puntiliv = 46;
} else if (numlevel == 47) {
matsfondo = liv47;
numcicli = 1;
numrig = 20;
puntiliv = 47;
} else if (numlevel == 48) {
matsfondo = liv48;
numcicli = 1;
numrig = 10;
puntiliv = 48;
} else if (numlevel == 49) {
matsfondo = liv49;
numcicli = 1;
numrig = 10;
puntiliv = 49;
} else if (numlevel == 50) {
matsfondo = liv50;
numcicli = 2;
numrig = 10;
puntiliv = 50;
} else if (numlevel == 51) {
matsfondo = liv51;
numcicli = 2;
numrig = 12;
puntiliv = 51;
} else if (numlevel == 52) {
matsfondo = liv52;
numcicli = 2;
numrig = 7;
puntiliv = 52;
} else if (numlevel == 53) {
matsfondo = liv53;
numcicli = 2;
numrig = 7;
puntiliv = 53;
} else if (numlevel == 54) {
matsfondo = liv54;
numcicli = 2;
numrig = 7;
puntiliv = 54;
} else if (numlevel == 55) {
matsfondo = liv55;
numcicli = 2;
numrig = 7;
puntiliv = 55;
} else if (numlevel == 56) {
matsfondo = liv56;
numcicli = 2;
numrig = 7;
puntiliv = 56;
} else if (numlevel == 57) {
matsfondo = liv57;
numcicli = 2;
numrig = 7;
puntiliv = 57;
} else if (numlevel == 58) {
matsfondo = liv58;
numcicli = 2;
numrig = 7;
puntiliv = 58;
} else if (numlevel == 59) {
matsfondo = liv59;
numcicli = 2;
numrig = 7;
puntiliv = 59;
} else if (numlevel == 60) {
matsfondo = liv60;
numcicli = 2;
numrig = 7;
puntiliv = 60;
} else if (numlevel == 61) {
matsfondo = liv61;
numcicli = 2;
numrig = 7;
puntiliv = 60;
} else if (numlevel == 62) {
matsfondo = liv62;
numcicli = 2;
numrig = 10;
puntiliv = 60;
} else if (numlevel == 63) {
matsfondo = liv63;
numcicli = 2;
numrig = 10;
puntiliv = 60;
} else if (numlevel == 64) {
matsfondo = liv64;
numcicli = 2;
numrig = 20;
puntiliv = 61;
} else if (numlevel == 65) {
matsfondo = liv65;
numcicli = 2;
numrig = 10;
puntiliv = 61;
} else if (numlevel == 66) {
matsfondo = liv66;
numcicli = 2;
numrig = 20;
puntiliv = 62;
} else if (numlevel == 67) {
matsfondo = liv67;
numcicli = 2;
numrig = 20;
puntiliv = 63;
} else if (numlevel == 68) {
matsfondo = liv68;
numcicli = 2;
numrig = 10;
puntiliv = 64;
} else if (numlevel == 69) {
matsfondo = liv69;
numcicli = 2;
numrig = 10;
puntiliv = 65;
} else if (numlevel == 70) {
matsfondo = liv70;
numcicli = 2;
numrig = 10;
puntiliv = 66;
} else if (numlevel == 71) {
matsfondo = liv71;
numcicli = 2;
numrig = 10;
puntiliv = 67;
} else if (numlevel == 72) {
matsfondo = liv72;
numcicli = 2;
numrig = 10;
puntiliv = 68;
} else if (numlevel == 73) {
matsfondo = liv73;
numcicli = 2;
numrig = 10;
puntiliv = 69;
} else if (numlevel == 74) {
matsfondo = liv74;
numcicli = 2;
numrig = 10;
puntiliv = 69;
} else if (numlevel == 75) {
matsfondo = liv75;
numcicli = 2;
numrig = 10;
puntiliv = 69;
} else if (numlevel == 76) {
matsfondo = liv76;
numcicli = 2;
numrig = 10;
puntiliv = 68;
} else if (numlevel == 77) {
matsfondo = liv77;
numcicli = 2;
numrig = 10;
puntiliv = 69;
} else if (numlevel == 78) {
matsfondo = liv78;
numcicli = 2;
numrig = 10;
puntiliv = 70;
} else if (numlevel == 79) {
matsfondo = liv79;
numcicli = 2;
numrig = 10;
puntiliv = 70;
} else if (numlevel == 80) {
matsfondo = liv80;
numcicli = 2;
numrig = 10;
puntiliv = 70;
} else if (numlevel == 81) {
matsfondo = liv81;
numcicli = 2;
numrig = 10;
puntiliv = 70;
} else if (numlevel == 82) {
matsfondo = liv82;
numcicli = 2;
numrig = 10;
puntiliv = 72;
} else if (numlevel == 83) {
matsfondo = liv83;
numcicli = 2;
numrig = 10;
puntiliv = 73;
} else if (numlevel == 84) {
matsfondo = liv84;
numcicli = 2;
numrig = 15;
puntiliv = 74;
} else if (numlevel == 85) {
matsfondo = liv85;
numcicli = 2;
numrig = 7;
puntiliv = 75;
} else if (numlevel == 86) {
matsfondo = liv86;
numcicli = 2;
numrig = 7;
puntiliv = 75;
} else if (numlevel == 87) {
matsfondo = liv87;
numcicli = 2;
numrig = 7;
puntiliv = 75;
} else if (numlevel == 88) {
matsfondo = liv88;
numcicli = 2;
numrig = 7;
puntiliv = 75;
} else if (numlevel == 89) {
matsfondo = liv89;
numcicli = 2;
numrig = 10;
puntiliv = 76;
} else if (numlevel == 90) {
matsfondo = liv90;
numcicli = 2;
numrig = 10;
puntiliv = 76;
} else if (numlevel == 91) {
matsfondo = liv91;
numcicli = 2;
numrig = 10;
puntiliv = 77;
} else if (numlevel == 92) {
matsfondo = liv92;
numcicli = 2;
numrig = 20;
puntiliv = 78;
} else if (numlevel == 93) {
matsfondo = liv93;
numcicli = 2;
numrig = 30;
puntiliv = 79;
} else if (numlevel == 94) {
matsfondo = liv94;
numcicli = 2;
numrig = 20;
puntiliv = 80;
} else if (numlevel == 95) {
matsfondo = liv95;
numcicli = 2;
numrig = 12;
puntiliv = 85;
} else if (numlevel == 96) {
matsfondo = liv96;
numcicli = 2;
numrig = 10;
puntiliv = 90;
} else if (numlevel == 97) {
matsfondo = liv97;
numcicli = 2;
numrig = 15;
puntiliv = 95;
} else if (numlevel == 98) {
matsfondo = liv98;
numcicli = 2;
numrig = 25;
puntiliv = 95;
} else if (numlevel == 99) {
matsfondo = liv99;
numcicli = 2;
numrig = 50;
puntiliv = 100;
} else if (numlevel == 100) {
matsfondo = liv100;
numcicli = 2;
numrig = 1000;
puntiliv = 1000;
}
Matimage(matsfondo);
}
function Sommat(a, b, c) {
var rig;
var col;
rig = 0;
while (rig < maxrig) {
col = 0;
while (col < maxcol) {
c[rig][col] = a[rig][col] + b[rig][col];
col++;
}
rig++;
}
}
function Difmat(a, b, c) {
var rig;
var col;
rig = 0;
while (rig < maxrig) {
col = 0;
while (col < maxcol) {
c[rig][col] = a[rig][col] - b[rig][col];
col++;
}
rig++;
}
}
function Matimage(rig, col, valx) {
var valxx;
if (valx != 0) {
valxx = valx % 100;
setProperty((("mat" + rig) + "_") + col, _visible , true);
eval ((("mat" + rig) + "_") + col).gotoAndStop(valxx);
} else {
setProperty((("mat" + rig) + "_") + col, _visible , false);
}
}
function Statiniz() {
var i;
i = 0;
while (i < 7) {
Set("contastat" + i, 0);
setProperty("barra" + i, _visible , false);
i++;
}
}
function Statnorm() {
var i;
var minim;
minim = 100;
i = 0;
while (i < 7) {
minim = Math.min(eval ("contastat" + i), minim);
i++;
}
i = 0;
while (i < 7) {
Set("contastat" + i, eval ("contastat" + i) - minim);
if (eval ("contastat" + i) == 0) {
setProperty("barra" + i, _visible , false);
} else {
eval ("barra" + i).gotoAndStop(eval ("contastat" + i));
}
i++;
}
}
function Statistiche(num, valx) {
setProperty("barra" + num, _visible , true);
eval ("barra" + num).gotoAndStop(valx);
}
function Matimage2(rig, col, tr) {
setProperty((("mat" + rig) + "_") + col, _alpha , tr);
}
function CreaMatrix() {
var i;
var j;
var contatore = 0;
i = 0;
while (i < maxrig) {
j = 0;
while (j < maxcol) {
contatore++;
duplicateMovieClip (mat, (("mat" + i) + "_") + j, contatore);
setProperty((("mat" + i) + "_") + j, _x , posx + (j * larg));
setProperty((("mat" + i) + "_") + j, _y , posy + (i * alt));
setProperty((("mat" + i) + "_") + j, _visible , false);
setProperty((("mat" + i) + "_") + j, _alpha , 100);
j++;
}
i++;
}
duplicateMovieClip (scrittapunti, "scrittapunti2", 400);
duplicateMovieClip (scrittafine, "scrittafine2", 401);
setProperty(scrittafine2, _x , 100);
setProperty(scrittafine2, _y , 100);
setProperty(scrittafine2, _visible , false);
duplicateMovieClip (scrittapausa, "scrittapausa2", 402);
setProperty(scrittapausa2, _x , 100);
setProperty(scrittapausa2, _y , 100);
setProperty(scrittapausa2, _visible , false);
}
function Sceltapezzo() {
if (tipoinizio == 0) {
distdx = 4;
distup = maxrig - 2;
val0 = 1;
val1 = 1;
val2 = 1;
val3 = 1;
rig0 = rigind;
col0 = colind;
rig1 = rigind;
col1 = colind + 1;
rig2 = rigind + 1;
col2 = colind;
rig3 = rigind + 1;
col3 = colind + 1;
} else if (tipoinizio == 1) {
distdx = 2;
distup = maxrig - 1;
val0 = 2;
val1 = 2;
val2 = 2;
val3 = 2;
rig0 = rigind;
col0 = colind;
rig1 = rigind;
col1 = colind + 1;
rig2 = rigind;
col2 = colind + 2;
rig3 = rigind;
col3 = colind + 3;
} else if (tipoinizio == 2) {
distdx = 3;
distup = maxrig - 2;
val0 = 3;
val1 = 3;
val2 = 3;
val3 = 3;
rig0 = rigind;
col0 = colind;
rig1 = rigind;
col1 = colind + 1;
rig2 = rigind;
col2 = colind + 2;
rig3 = rigind + 1;
col3 = colind + 2;
} else if (tipoinizio == 3) {
distdx = 3;
distup = maxrig - 2;
val0 = 4;
val1 = 4;
val2 = 4;
val3 = 4;
rig0 = rigind;
col0 = colind;
rig1 = rigind;
col1 = colind + 1;
rig2 = rigind;
col2 = colind + 2;
rig3 = rigind + 1;
col3 = colind;
} else if (tipoinizio == 4) {
distdx = 3;
distup = maxrig - 2;
val0 = 5;
val1 = 5;
val2 = 5;
val3 = 5;
rig0 = rigind;
col0 = colind;
rig1 = rigind;
col1 = colind + 1;
rig2 = rigind + 1;
col2 = colind + 1;
rig3 = rigind + 1;
col3 = colind + 2;
} else if (tipoinizio == 5) {
distdx = 3;
distup = maxrig - 2;
val0 = 6;
val1 = 6;
val2 = 6;
val3 = 6;
rig0 = rigind;
col0 = colind + 1;
rig1 = rigind;
col1 = colind + 2;
rig2 = rigind + 1;
col2 = colind;
rig3 = rigind + 1;
col3 = colind + 1;
} else if (tipoinizio == 6) {
distdx = 3;
distup = maxrig - 2;
val0 = 7;
val1 = 7;
val2 = 7;
val3 = 7;
rig0 = rigind;
col0 = colind;
rig1 = rigind;
col1 = colind + 1;
rig2 = rigind;
col2 = colind + 2;
rig3 = rigind + 1;
col3 = colind + 1;
}
indicerot = 0;
distsx = 4;
if ((((matsfondo[rig0][col0] < 100) && (matsfondo[rig1][col1] < 100)) && (matsfondo[rig2][col2] < 100)) && (matsfondo[rig3][col3] < 100)) {
matsfondo[rig0][col0] = val0;
matsfondo[rig1][col1] = val1;
matsfondo[rig2][col2] = val2;
matsfondo[rig3][col3] = val3;
Matimage(rig0, col0, val0);
Matimage(rig1, col1, val1);
Matimage(rig2, col2, val2);
Matimage(rig3, col3, val3);
verificainiziale = 0;
} else {
verificainiziale = 1;
}
}
function Prossimopezzo() {
i = 0;
while (i < 7) {
setProperty("prossimo.pezzo" + i, _visible , false);
i++;
}
if (tipoprossimo == 0) {
setProperty("prossimo.pezzo0", _visible , true);
} else if (tipoprossimo == 1) {
setProperty("prossimo.pezzo1", _visible , true);
} else if (tipoprossimo == 2) {
setProperty("prossimo.pezzo2", _visible , true);
} else if (tipoprossimo == 3) {
setProperty("prossimo.pezzo3", _visible , true);
} else if (tipoprossimo == 4) {
setProperty("prossimo.pezzo4", _visible , true);
} else if (tipoprossimo == 5) {
setProperty("prossimo.pezzo5", _visible , true);
} else if (tipoprossimo == 6) {
setProperty("prossimo.pezzo6", _visible , true);
}
}
function Shiftdxsx(dir) {
if (dir == 1) {
if (distdx != 0) {
if ((((matsfondo[rig0][col0 + 1] < 100) && (matsfondo[rig1][col1 + 1] < 100)) && (matsfondo[rig2][col2 + 1] < 100)) && (matsfondo[rig3][col3 + 1] < 100)) {
matsfondo[rig0][col0] = 0;
matsfondo[rig1][col1] = 0;
matsfondo[rig2][col2] = 0;
matsfondo[rig3][col3] = 0;
Matimage(rig0, col0, 0);
Matimage(rig1, col1, 0);
Matimage(rig2, col2, 0);
Matimage(rig3, col3, 0);
matsfondo[rig0][++col0] = val0;
matsfondo[rig1][++col1] = val1;
matsfondo[rig2][++col2] = val2;
matsfondo[rig3][++col3] = val3;
Matimage(rig0, col0, val0);
Matimage(rig1, col1, val1);
Matimage(rig2, col2, val2);
Matimage(rig3, col3, val3);
distdx--;
distsx++;
}
}
} else if (distsx != 0) {
if ((((matsfondo[rig0][col0 - 1] < 100) && (matsfondo[rig1][col1 - 1] < 100)) && (matsfondo[rig2][col2 - 1] < 100)) && (matsfondo[rig3][col3 - 1] < 100)) {
matsfondo[rig0][col0] = 0;
matsfondo[rig1][col1] = 0;
matsfondo[rig2][col2] = 0;
matsfondo[rig3][col3] = 0;
Matimage(rig0, col0, 0);
Matimage(rig1, col1, 0);
Matimage(rig2, col2, 0);
Matimage(rig3, col3, 0);
matsfondo[rig0][--col0] = val0;
matsfondo[rig1][--col1] = val1;
matsfondo[rig2][--col2] = val2;
matsfondo[rig3][--col3] = val3;
Matimage(rig0, col0, val0);
Matimage(rig1, col1, val1);
Matimage(rig2, col2, val2);
Matimage(rig3, col3, val3);
distdx++;
distsx--;
}
}
}
function Rotazione() {
var rotrig0;
var rotcol0;
var rotrig1;
var rotcol1;
var rotrig2;
var rotcol2;
var rotrig3;
var rotcol3;
var rotdistdx;
var rotdistsx;
var rotdistup;
var flag = 0;
rotrig0 = rig0;
rotcol0 = col0;
rotrig1 = rig1;
rotcol1 = col1;
rotrig2 = rig2;
rotcol2 = col2;
rotrig3 = rig3;
rotcol3 = col3;
if (tipoinizio == 0) {
flag = 1;
} else if (tipoinizio == 1) {
indicerot = indicerot % 2;
if ((indicerot == 0) && (2 < distup)) {
rotdistdx = distdx + 2;
rotdistsx = distsx + 1;
rotdistup = distup - 3;
rotrig0 = rig1 + 1;
rotcol0 = col1;
rotrig2 = rig1 + 2;
rotcol2 = col1;
rotrig3 = rig1 + 3;
rotcol3 = col1;
} else if (((indicerot == 1) && (distdx >= 2)) && (distsx >= 1)) {
rotdistdx = distdx - 2;
rotdistsx = distsx - 1;
rotdistup = distup + 3;
rotrig0 = rig1;
rotcol0 = col1 - 1;
rotrig2 = rig1;
rotcol2 = col1 + 1;
rotrig3 = rig1;
rotcol3 = col1 + 2;
} else if ((indicerot == 1) && (distdx < 2)) {
rotdistdx = 0;
rotdistsx = 6;
rotdistup = distup + 3;
rotrig0 = rig1;
rotcol0 = 6;
rotrig1 = rig1;
rotcol1 = 7;
rotrig2 = rig1;
rotcol2 = 8;
rotrig3 = rig1;
rotcol3 = 9;
} else {
flag = 1;
}
val0 = 2;
val1 = 2;
val2 = 2;
val3 = 2;
} else if (tipoinizio == 2) {
indicerot = indicerot % 4;
if ((indicerot == 0) && (0 < distup)) {
rotdistdx = distdx + 1;
rotdistsx = distsx;
rotdistup = distup - 1;
rotrig2 = rig0 + 1;
rotcol2 = col0;
rotrig3 = rig0 + 2;
rotcol3 = col0;
} else if ((indicerot == 1) && (distdx >= 1)) {
rotdistdx = distdx - 1;
rotdistsx = distsx;
rotdistup = distup + 1;
rotrig1 = rig2;
rotcol1 = col2 + 2;
rotrig3 = rig2;
rotcol3 = col2 + 1;
} else if ((indicerot == 1) && (distdx < 1)) {
rotdistdx = 0;
rotdistsx = 7;
rotdistup = distup + 1;
rotrig0 = rig0;
rotcol0 = 7;
rotrig1 = rig2;
rotcol1 = 9;
rotrig2 = rig2;
rotcol2 = 7;
rotrig3 = rig2;
rotcol3 = 8;
} else if ((indicerot == 2) && (0 < distup)) {
rotdistdx = distdx + 1;
rotdistsx = distsx;
rotdistup = distup - 1;
rotrig0 = rig3 + 1;
rotrig1 = rig3 - 1;
rotcol1 = col3;
rotrig2 = rig3 + 1;
rotcol2 = col3;
} else if ((indicerot == 3) && (distdx >= 1)) {
rotdistdx = distdx - 1;
rotdistsx = distsx;
rotdistup = distup + 1;
rotrig0 = rig1;
rotrig2 = rig1;
rotcol2 = col1 + 1;
rotcol3 = col1 + 1;
} else if ((indicerot == 3) && (distdx < 1)) {
rotdistdx = 0;
rotdistsx = 7;
rotdistup = distup + 1;
rotrig0 = rig1;
rotcol0 = 7;
rotrig1 = rig1;
rotcol1 = 8;
rotrig2 = rig1;
rotcol2 = 9;
rotrig3 = rig1 + 1;
rotcol3 = 9;
} else {
flag = 1;
}
val0 = 3;
val1 = 3;
val2 = 3;
val3 = 3;
} else if (tipoinizio == 3) {
indicerot = indicerot % 4;
if ((indicerot == 0) && (0 < distup)) {
rotdistdx = distdx + 1;
rotdistsx = distsx;
rotdistup = distup - 1;
rotrig1 = rig3 + 1;
rotrig2 = rig3 + 1;
rotcol2 = col0;
} else if ((indicerot == 1) && (distdx >= 1)) {
rotdistdx = distdx - 1;
rotdistsx = distsx;
rotdistup = distup + 1;
rotcol0 = col3 + 2;
rotrig1 = rig3;
rotcol1 = col3 + 2;
rotrig2 = rig3;
rotcol2 = col3 + 1;
} else if ((indicerot == 1) && (distdx < 1)) {
rotdistdx = 0;
rotdistsx = 7;
rotdistup = distup + 1;
rotrig0 = rig3 - 1;
rotcol0 = 9;
rotrig1 = rig3;
rotcol1 = 9;
rotrig2 = rig3;
rotcol2 = 8;
rotrig3 = rig3;
rotcol3 = 7;
} else if ((indicerot == 2) && (0 < distup)) {
rotdistdx = distdx + 1;
rotdistsx = distsx;
rotdistup = distup - 1;
rotcol0 = col2 - 1;
rotrig1 = rig2 - 1;
rotcol1 = col2;
rotrig3 = rig2 + 1;
rotcol3 = col2;
} else if ((indicerot == 3) && (distdx >= 1)) {
rotdistdx = distdx - 1;
rotdistsx = distsx;
rotdistup = distup + 1;
rotrig2 = rig0;
rotcol2 = col1 + 1;
rotrig3 = rig0 + 1;
rotcol3 = col0;
} else if ((indicerot == 3) && (distdx < 1)) {
rotdistdx = 0;
rotdistsx = 7;
rotdistup = distup + 1;
rotrig0 = rig0;
rotcol0 = 7;
rotrig1 = rig0;
rotcol1 = 8;
rotrig2 = rig0;
rotcol2 = 9;
rotrig3 = rig0 + 1;
rotcol3 = 7;
} else {
flag = 1;
}
val0 = 4;
val1 = 4;
val2 = 4;
val3 = 4;
} else if (tipoinizio == 4) {
indicerot = indicerot % 2;
if ((indicerot == 0) && (0 < distup)) {
rotdistdx = distdx + 1;
rotdistsx = distsx;
rotdistup = distup - 1;
rotrig0 = rig2;
rotrig3 = rig2 + 1;
rotcol3 = col0;
} else if ((indicerot == 1) && (distdx >= 1)) {
rotdistdx = distdx - 1;
rotdistsx = distsx;
rotdistup = distup + 1;
rotrig0 = rig1;
rotrig3 = rig2;
rotcol3 = col2 + 1;
} else if ((indicerot == 1) && (distdx < 1)) {
rotdistdx = 0;
rotdistsx = 7;
rotdistup = distup + 1;
rotrig0 = rig1;
rotcol0 = 7;
rotrig1 = rig1;
rotcol1 = 8;
rotrig2 = rig2;
rotcol2 = 8;
rotrig3 = rig2;
rotcol3 = 9;
} else {
flag = 1;
}
val0 = 5;
val1 = 5;
val2 = 5;
val3 = 5;
} else if (tipoinizio == 5) {
indicerot = indicerot % 2;
if ((indicerot == 0) && (0 < distup)) {
rotdistdx = distdx + 1;
rotdistsx = distsx;
rotdistup = distup - 1;
rotcol0 = col2;
rotrig1 = rig3 + 1;
rotcol1 = col3;
} else if ((indicerot == 1) && (distdx >= 1)) {
rotdistdx = distdx - 1;
rotdistsx = distsx;
rotdistup = distup + 1;
rotcol0 = col3;
rotrig1 = rig3 - 1;
rotcol1 = col3 + 1;
} else if ((indicerot == 1) && (distdx < 1)) {
rotdistdx = 0;
rotdistsx = 7;
rotdistup = distup + 1;
rotrig0 = rig0;
rotcol0 = 8;
rotrig1 = rig0;
rotcol1 = 9;
rotrig2 = rig2;
rotcol2 = 7;
rotrig3 = rig2;
rotcol3 = 8;
} else {
flag = 1;
}
val0 = 6;
val1 = 6;
val2 = 6;
val3 = 6;
} else if (tipoinizio == 6) {
indicerot = indicerot % 4;
if ((indicerot == 0) && (0 < distup)) {
rotdistdx = distdx + 1;
rotdistsx = distsx;
rotdistup = distup - 1;
rotrig1 = rig3;
rotcol1 = col0;
rotrig2 = rig3 + 1;
rotcol2 = col0;
} else if ((indicerot == 1) && (distdx >= 1)) {
rotdistdx = distdx - 1;
rotdistsx = distsx;
rotdistup = distup + 1;
rotcol0 = col3;
rotrig2 = rig3;
rotcol2 = col3 + 1;
} else if ((indicerot == 1) && (distdx < 1)) {
rotdistdx = 0;
rotdistsx = 7;
rotdistup = distup + 1;
rotrig0 = rig3 - 1;
rotcol0 = 8;
rotrig1 = rig3;
rotcol1 = 7;
rotrig2 = rig3;
rotcol2 = 9;
rotrig3 = rig3;
rotcol3 = 8;
} else if ((indicerot == 2) && (0 < distup)) {
rotdistdx = distdx + 1;
rotdistsx = distsx;
rotdistup = distup - 1;
rotrig2 = rig3 + 1;
rotcol2 = col3;
} else if ((indicerot == 3) && (distdx >= 1)) {
rotdistdx = distdx - 1;
rotdistsx = distsx;
rotdistup = distup + 1;
rotcol0 = col3 - 1;
rotrig1 = rig3 - 1;
rotcol1 = col3;
rotrig2 = rig3 - 1;
rotcol2 = col3 + 1;
} else if ((indicerot == 3) && (distdx < 1)) {
rotdistdx = 0;
rotdistsx = 7;
rotdistup = distup + 1;
rotrig0 = rig3 - 1;
rotcol0 = 7;
rotrig1 = rig3 - 1;
rotcol1 = 8;
rotrig2 = rig3 - 1;
rotcol2 = 9;
rotrig3 = rig3;
rotcol3 = 8;
} else {
flag = 1;
}
val0 = 7;
val1 = 7;
val2 = 7;
val3 = 7;
}
if (((((flag == 0) && (matsfondo[rotrig0][rotcol0] < 100)) && (matsfondo[rotrig1][rotcol1] < 100)) && (matsfondo[rotrig2][rotcol2] < 100)) && (matsfondo[rotrig3][rotcol3] < 100)) {
matsfondo[rig0][col0] = 0;
matsfondo[rig1][col1] = 0;
matsfondo[rig2][col2] = 0;
matsfondo[rig3][col3] = 0;
Matimage(rig0, col0, 0);
Matimage(rig1, col1, 0);
Matimage(rig2, col2, 0);
Matimage(rig3, col3, 0);
rig0 = rotrig0;
col0 = rotcol0;
rig1 = rotrig1;
col1 = rotcol1;
rig2 = rotrig2;
col2 = rotcol2;
rig3 = rotrig3;
col3 = rotcol3;
matsfondo[rig0][col0] = val0;
matsfondo[rig1][col1] = val1;
matsfondo[rig2][col2] = val2;
matsfondo[rig3][col3] = val3;
Matimage(rig0, col0, val0);
Matimage(rig1, col1, val1);
Matimage(rig2, col2, val2);
Matimage(rig3, col3, val3);
distdx = rotdistdx;
distsx = rotdistsx;
distup = rotdistup;
indicerot++;
}
}
function Shiftbasso() {
if (distup != 0) {
if ((((matsfondo[rig0 + 1][col0] < 100) && (matsfondo[rig1 + 1][col1] < 100)) && (matsfondo[rig2 + 1][col2] < 100)) && (matsfondo[rig3 + 1][col3] < 100)) {
matsfondo[rig0][col0] = 0;
matsfondo[rig1][col1] = 0;
matsfondo[rig2][col2] = 0;
matsfondo[rig3][col3] = 0;
Matimage(rig0, col0, 0);
Matimage(rig1, col1, 0);
Matimage(rig2, col2, 0);
Matimage(rig3, col3, 0);
matsfondo[++rig0][col0] = val0;
matsfondo[++rig1][col1] = val1;
matsfondo[++rig2][col2] = val2;
matsfondo[++rig3][col3] = val3;
Matimage(rig0, col0, val0);
Matimage(rig1, col1, val1);
Matimage(rig2, col2, val2);
Matimage(rig3, col3, val3);
distup--;
x = 1;
} else {
matsfondo[rig0][col0] = val0 + 100;
matsfondo[rig1][col1] = val1 + 100;
matsfondo[rig2][col2] = val2 + 100;
matsfondo[rig3][col3] = val3 + 100;
x = 0;
if (distup >= (maxrig - 2)) {
setProperty(scrittafine2, _visible , true);
gotoAndPlay (90);
} else {
punti = ((puntiliv * puntiliv) + (puntiliv * distup)) * puntidoppi;
punteggio = punteggio + punti;
setProperty(scrittapunti2, _x , (posx + ((distsx + ((maxcol - (distsx + distdx)) / 2)) * larg)) - sfasoriz);
setProperty(scrittapunti2, _y , (sfasvert + posy) + ((maxrig - distup) * alt));
scrittapunti2.play();
gotoAndPlay (42);
}
}
} else {
matsfondo[rig0][col0] = val0 + 100;
matsfondo[rig1][col1] = val1 + 100;
matsfondo[rig2][col2] = val2 + 100;
matsfondo[rig3][col3] = val3 + 100;
x = 0;
punti = (puntiliv * puntiliv) * puntidoppi;
punteggio = punteggio + punti;
setProperty(scrittapunti2, _x , (posx + ((distsx + ((maxcol - (distsx + distdx)) / 2)) * larg)) - sfasoriz);
setProperty(scrittapunti2, _y , (sfasvert + posy) + ((maxrig - distup) * alt));
scrittapunti2.play();
gotoAndPlay (42);
}
}
posx = 35;
posy = 35;
larg = 15;
alt = 15;
sfasoriz = 8;
sfasvert = -10;
nummaxliv = 100;
nummaxcrediti = 5;
numlevel = 0;
numrig = 0;
numrigrimanenti = 0;
numrigeliminate = 0;
numcicli = 0;
maxrig = 22;
maxcol = 10;
rig0 = 0;
col0 = 0;
rigind = 0;
colind = Math.floor(maxcol / 2) - 1;
verificainiziale = 0;
bloccoshift = 0;
cicloriga = 0;
contacol = 0;
alp = 100;
punti = 0;
punteggio = 0;
recordpunti = 1000000 /* 0x0F4240 */;
Frame 6
t_pausa = "PAUSE";
t_livello = "LEVEL:";
t_prossimopezzo = "NEXT:";
t_punteggio = "SCORE:";
t_righerimanenti = "LINES:";
t_record = "HI-SCORE";
t_versione = "Version 2 Beta 6";
Frame 7
gotoAndPlay (91);
Frame 8
Mouse.hide();
Creamatrix();
maxpunti = 0;
numcrediti = nummaxcrediti;
Inizializzalivelli();
punteggio = 0;
if (codice != 0) {
numlevel = codice;
}
Statiniz();
Frame 9
numlevel++;
Sceglilivello();
numrigrimanenti = numrig;
numrigeliminate = 0;
tipoprossimo = random(7);
i = 0;
while (i < maxrig) {
j = 0;
while (j < maxcol) {
Matimage(i, j, matsfondo[i][j]);
j++;
}
i++;
}
bloccoshift = 0;
Frame 14
tipoinizio = tipoprossimo;
tipoprossimo = random(7);
Prossimopezzo();
Sceltapezzo();
setProperty(prossimo, _visible , true);
x = 1;
eval ("contastat" + tipoinizio)++;
if (100 < eval ("contastat" + tipoinizio)) {
Statnorm();
} else {
Statistiche(tipoinizio, eval ("contastat" + tipoinizio));
}
Frame 15
Frame 17
Frame 18
Frame 20
if ((x == 1) && (bloccoshift == 0)) {
bloccoshift = 1;
puntidoppi = 1;
Shiftbasso();
bloccoshift = 0;
}
Frame 21
if (x == 1) {
if (numcicli == 0) {
gotoAndPlay (15);
} else if (numcicli == 1) {
gotoAndPlay (17);
} else if (numcicli == 2) {
gotoAndPlay (18);
}
} else {
gotoAndPlay (14);
}
Frame 42
bloccoshift = 1;
if (cicloriga >= maxrig) {
cicloriga = 0;
numrigbonus = 0;
if (numrigeliminate >= numrig) {
bloccoshift = 1;
gotoAndPlay (49);
} else {
bloccoshift = 0;
gotoAndPlay (21);
}
}
Frame 43
contacol = 0;
while ((contacol < maxcol) && (cicloriga < maxrig)) {
contacol = 0;
r = 0;
while (r < maxcol) {
if (matsfondo[cicloriga][r] != 0) {
contacol++;
}
r++;
}
if (contacol < maxcol) {
cicloriga++;
}
}
Frame 44
if (cicloriga >= maxrig) {
cicloriga = 0;
numrigbonus = 0;
if (numrigeliminate >= numrig) {
bloccoshift = 1;
gotoAndPlay (49);
} else {
bloccoshift = 0;
gotoAndPlay (21);
}
}
if (alp == 0) {
colon = 0;
while (colon < maxcol) {
setProperty((("mat" + cicloriga) + "_") + colon, _visible , false);
setProperty((("mat" + cicloriga) + "_") + colon, _alpha , 100);
colon++;
}
alp = 100;
gotoAndPlay (46);
}
Frame 45
alp = alp - 5;
colon = 0;
while (colon < maxcol) {
Matimage2(cicloriga, colon, alp);
colon++;
}
gotoAndPlay (44);
Frame 46
numrigeliminate++;
numrigbonus++;
if (numrigbonus == 1) {
punti = 50;
} else if (numrigbonus == 2) {
punti = 100;
} else if (numrigbonus == 3) {
punti = 250;
} else if (numrigbonus == 4) {
punti = 500;
}
punteggio = punteggio + punti;
if (punti != 0) {
setProperty(scrittapunti2, _x , (sfasoriz + posx) + ((Math.floor(maxcol / 2) - 1) * larg));
setProperty(scrittapunti2, _y , (sfasvert + posy) + ((cicloriga + 1) * alt));
scrittapunti2.play();
}
if (0 < numrigrimanenti) {
numrigrimanenti--;
}
i = cicloriga;
while (0 < i) {
j = maxcol - 1;
while (j >= 0) {
matsfondo[i][j] = matsfondo[i - 1][j];
j--;
}
i--;
}
j = 0;
while (j < maxcol) {
matsfondo[0][j] = 0;
j++;
}
i = 0;
while (i < (cicloriga + 1)) {
j = 0;
while (j < maxcol) {
Matimage(i, j, matsfondo[i][j]);
j++;
}
i++;
}
cicloriga++;
gotoAndPlay (42);
Frame 49
cicloriga = 0;
cbonus = 0;
ccbonus = 0;
puntix = 0;
contabonus = 1;
bloccoshift = 1;
Frame 50
contacol = 0;
r = 0;
while (r < maxcol) {
if (matsfondo[cicloriga][r] == 0) {
contacol++;
}
r++;
}
if (contacol < maxcol) {
cbonus = 1;
}
cicloriga++;
Frame 51
if (cbonus == 0) {
gotoAndPlay (50);
}
Frame 53
if (1 >= cicloriga) {
gotoAndPlay (90);
}
if (contabonus < (cicloriga - 2)) {
puntix = puntix + (10 * contabonus);
contabonus++;
j = 0;
while (j < maxcol) {
Matimage(contabonus, j, 8);
j++;
}
} else {
ccbonus = 1;
}
Frame 54
if (ccbonus == 0) {
gotoAndPlay (53);
}
Frame 55
punti = puntix;
punteggio = punteggio + punti;
if (punti != 0) {
setProperty(scrittapunti2, _x , (sfasoriz + posx) + ((Math.floor(maxcol / 2) - 1) * larg));
setProperty(scrittapunti2, _y , (sfasvert + posy) + (cicloriga * alt));
scrittapunti2.play();
}
Frame 87
if (numlevel < 100) {
bloccoshift = 0;
gotoAndPlay (9);
} else {
setProperty(scrittafine2, _visible , true);
gotoAndPlay (90);
}
Frame 89
Mouse.show();
stop();
Frame 90
Mouse.show();
setProperty(prossimo, _visible , false);
if (recordpunti < punteggio) {
recordpunti = punteggio;
}
stop();
Frame 91
Frame 141
stop();
Symbol 39 Button
on (keyPress "<Right>") {
if (bloccoshift == 0) {
bloccoshift = 1;
Shiftdxsx(1);
bloccoshift = 0;
}
}
on (keyPress "<Left>") {
if (bloccoshift == 0) {
bloccoshift = 1;
Shiftdxsx(0);
bloccoshift = 0;
}
}
on (keyPress "<Down>") {
if ((bloccoshift == 0) && (x == 1)) {
bloccoshift = 1;
puntidoppi = 2;
Shiftbasso();
bloccoshift = 0;
}
}
on (keyPress "<Up>") {
if (bloccoshift == 0) {
bloccoshift = 1;
Rotazione();
bloccoshift = 0;
}
}
on (keyPress "p") {
if (bloccoshift == 0) {
setProperty(scrittapausa2, _visible , true);
framepausa = _root._currentframe;
gotoAndPlay (89);
}
}
on (keyPress "P") {
if (bloccoshift == 0) {
setProperty(scrittapausa2, _visible , true);
framepausa = _root._currentframe;
gotoAndPlay (89);
}
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 17
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
stop();
Symbol 66 MovieClip Frame 3
stop();
Symbol 66 MovieClip Frame 4
stop();
Symbol 66 MovieClip Frame 5
stop();
Symbol 66 MovieClip Frame 6
stop();
Symbol 66 MovieClip Frame 7
stop();
Symbol 66 MovieClip Frame 8
stop();
Symbol 93 Button
on (release) {
getURL ("mailto:gener8ion@hotmail.com");
}
Symbol 114 Button
on (release) {
getURL ("mailto:gener8ion@hotmail.com");
}
Symbol 125 Button
on (keyPress "p") {
Mouse.hide();
setProperty(scrittapausa2, _visible , false);
gotoAndPlay(framepausa);
}
on (keyPress "P") {
Mouse.hide();
setProperty(scrittapausa2, _visible , false);
gotoAndPlay(framepausa);
}
Symbol 131 Button
on (release) {
gotoAndPlay (8);
}
Symbol 139 Button
on (release) {
gotoAndPlay (90);
}
Symbol 211 MovieClip Frame 165
stop();