2. Game board is 8*8 fields.
There are numbers between -9 and 9 except 0.
Player can only move the cursor horizontally.
Computer/Player2 can only move the cursor vertically.
Collected numbers are added to their scores.
if there is no possible move no number in the row or
coloumn, the game is over.
6. HARD MODE
IN THIS MODE, COMPUTER IS MORE
INTELLIGENT BECAUSE OF US.
COMPUTER GUESS THAT YOU’LL CHOOSE
NUMBERS.
7. IN THIS MODE YOU CAN PLAY AGAINST YOUR
FRIENDS.
8. PLAYER AND COMPUTER MAY CHOOSE NULL
POINT.
move = Console.ReadKey(true);
if (move.Key == ConsoleKey.D1)
{
j = 0;
i = cursor_y - 1;
……………………………
if(satir[i,j]==-10)
Console.Write("--Null Point-- Enter A New Point!!");
}
9.
10. PLAYER MAY PRESS UNVALID KEY.
while (move.Key != ConsoleKey.NumPad1 & ……… &
move.Key != ConsoleKey.NumPad8)
{
Console.Write(" Unvalid Chosen Key!! ");
move = Console.ReadKey(true);
}
11.
12. RETURN IN NESTED MENU.
if (menu1 == 1)
{
Console.WriteLine("1.EASY ");
Console.WriteLine("2.HARD ");
Console.WriteLine("3.BACK TO MENU");
menu2 = Convert.ToInt32(Console.ReadLine());
}
Console.Clear();
}
while (menu1 == 3 | menu2 == 3 | menu == 2);
13.
14. if there is no possible move no number in the row or
coloumn, the game is over.
while(…….)
{
count = 0;
for (b = 0; b < 8; b++)
{
if (satir[cursor_y - 1, b] == -10)
count++;
}
if (count == 8)
break;
}
15. COMPUTER CAN FINISH THE GAME IF IT WIN.
for (b = 0; b < 8; b++)
{
count = 0;
for (d = 0; d < 8; d++)
{
if (satir[b, d] == -10 & satir[b, j] != -10)
count++;
if (count == 7)
{
cursor_y = b + 1;
break;
}
}
16. PROBLEMS ABOUT A.I
for (b = 0; b < 8; b++)
{
number1 = -20;
for (d = 0; d < 8; d++)
{
if ((number1 < satir[b, d]) & (satir[b, d] != -10) & (d != j))
{
number1 = satir[b, d];
e = b;
f = d;
}
}
if ((number2 < satir[b, j] - satir[e, f]) & (satir[b, j] != -10))
{
number2 = satir[b, j] - satir[e, f];
cursor_y = b + 1;
}
}