//(c) by Valery V Shmeleff www.oflameron.ru and www.oflameron.com public void Move_Point_Left() { //Move left if (markersave == 0) { //In case the end left cell of the bottom line markersave = 7; //lies to the left of the end left cell – the end RIGHT (cycle transition) firstset = 0; //Allow marker drawing temporarily label7.setBackColor(savecolor[0]); //Restore the color of the background //of the cell where the marker used to be //Copy label14_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label14.setBackColor(blue); if (firstset == 0) markersave = 7; //The marker in the cell corresponding to savecolor(7) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 1) { markersave = 0; //Move left firstset = 0; //Allow marker drawing temporarily label8.setBackColor(savecolor[1]); //Restore the color of the background //of the cell where the marker used to be //Copy label7_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label7.setBackColor(blue); if (firstset == 0) markersave = 0; //The marker in the cell corresponding to savecolor(0) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 2) { markersave = 1; //Move left firstset = 0; //Allow marker drawing temporarily label9.setBackColor(savecolor[2]); //Restore the color of the background //of the cell where the marker used to be //Copy label8_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label8.setBackColor(blue); if (firstset == 0) markersave = 1; //The marker in the cell corresponding to savecolor(1) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 3) { markersave = 2; //Move left firstset = 0; //Allow marker drawing temporarily label10.setBackColor(savecolor[3]); //Restore the color of the background //of the cell where the marker used to be //Copy label9_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label9.setBackColor(blue); if (firstset == 0) markersave = 2; //The marker in the cell corresponding to savecolor(2) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 4) { markersave = 3; //Move left firstset = 0; //Allow marker drawing temporarily label11.setBackColor(savecolor[4]); //Restore the color of the background //of the cell where the marker used to be //Copy label10_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label10.setBackColor(blue); if (firstset == 0) markersave = 3; //The marker in the cell corresponding to savecolor(3) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 5) { markersave = 4; //Move left firstset = 0; //Allow marker drawing temporarily label12.setBackColor(savecolor[5]); //Restore the color of the background //of the cell where the marker used to be //Copy label11_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label11.setBackColor(blue); if (firstset == 0) markersave = 4; //The marker in the cell corresponding to savecolor(4) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 6) { markersave = 5; //Move left firstset = 0; //Allow marker drawing temporarily label13.setBackColor(savecolor[6]); //Restore the color of the background //of the cell where the marker used to be //Copy label12_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label12.setBackColor(blue); if (firstset == 0) markersave = 5; //The marker in the cell corresponding to savecolor(5) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 7) { markersave = 6; //Move left firstset = 0; //Allow marker drawing temporarily label14.setBackColor(savecolor[7]); //Restore the color of the background //of the cell where the marker used to be //Copy label13_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label13.setBackColor(blue); if (firstset == 0) markersave = 6; //The marker in the cell corresponding to savecolor(6) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } markersave = vt; n = 0; Marker_Count(); } public void Move_Point_Right() { //Перемещение маркера ВПРАВО if (markersave == 0) { //In case the end left cell of the bottom line markersave = 1; //Move to the right (as the value is > by 1) firstset = 0; //Allow marker drawing temporarily label7.setBackColor(savecolor[0]); //Restore the color of the background the cell where the marker used to be //Copy label8_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label8.setBackColor(blue); if (firstset == 0) markersave = 1; //The marker in the cell corresponding to savecolor(1) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 1) { markersave = 2; //Move to the right (as the value is > by 1) firstset = 0; //Allow marker drawing temporarily label8.setBackColor(savecolor[1]); //Restore the color of the background the cell where the marker used to be //Copy label9_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label9.setBackColor(blue); if (firstset == 0) markersave = 2; //The marker in the cell corresponding to savecolor(2) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 2) { markersave = 3; //Move to the right (as the value is > by 1) firstset = 0; //Allow marker drawing temporarily label9.setBackColor(savecolor[2]); //Restore the color of the background the cell where the marker used to be //Copy label10_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label10.setBackColor(blue); if (firstset == 0) markersave = 3; //The marker in the cell corresponding to savecolor(3) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 3) { markersave = 4; //Move to the right (as the value is > by 1) firstset = 0; //Allow marker drawing temporarily label10.setBackColor(savecolor[3]); //Restore the color of the background the cell where the marker used to be //Copy label11_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label11.setBackColor(blue); if (firstset == 0) markersave = 4; //The marker in the cell corresponding to savecolor(4) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 4) { markersave = 5; //Move to the right (as the value is > by 1) firstset = 0; //Allow marker drawing temporarily label11.setBackColor(savecolor[4]); //Restore the color of the background the cell where the marker used to be //Copy label12_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label12.setBackColor(blue); if (firstset == 0) markersave = 5; //The marker in the cell corresponding to savecolor(5) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 5) { markersave = 6; //Move to the right (as the value is > by 1) firstset = 0; //Allow marker drawing temporarily label12.setBackColor(savecolor[5]); //Restore the color of the background the cell where the marker used to be //Copy label13_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label13.setBackColor(blue); if (firstset == 0) markersave = 6; //The marker in the cell corresponding to savecolor(6) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 6) { markersave = 7; //Move to the right (as the value is > by 1) firstset = 0; //Allow marker drawing temporarily label13.setBackColor(savecolor[6]); //Restore the color of the background the cell where the marker used to be //Copy label14_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label14.setBackColor(blue); if (firstset == 0) markersave = 7; //The marker in the cell corresponding to savecolor(7) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } if (markersave == 7) { markersave = 0; //Move to the right (as the value is > by 1) firstset = 0; //Allow marker drawing temporarily label14.setBackColor(savecolor[7]); //Restore the color of the background the cell where the marker used to be //Copy label7_click(); if (firstset == 0) Save_Color(); //Save the colors of the bottom line cells if (firstset == 0) label7.setBackColor(blue); if (firstset == 0) markersave = 0; //The marker in the cell corresponding to savecolor(0) if (firstset == 0) firstset = 1; //Do not process any more Marker_Count(); //Calculate score on the marker placement vt = markersave; markersave = 10; //Value 10 does not correspond to any cell } markersave = vt; n = 0; Marker_Count(); }