-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauto120.java
More file actions
52 lines (29 loc) · 1.12 KB
/
auto120.java
File metadata and controls
52 lines (29 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package Auto120;
public class auto120 {
public static void main(String[] args) {
int x_counter = 0;
int x_clockstop = 0;
int x_playerid = 0;
boolean x_gameover = false;
Game thisGame = new Game();
for (x_counter = 0; x_counter <= 10000; ++x_counter)
{
thisGame.g_logmove("------------------------------------------------------------" + Integer.toString(x_counter));
thisGame.g_logmove("Game Move: " + Integer.toString(x_counter));
x_playerid = thisGame.g_get_playerturn();
x_gameover = thisGame.g_player_action(x_playerid);
if (x_gameover ) {
x_clockstop = x_counter;
x_counter = 9999999;
}
thisGame.g_flip_player();
// if (x_counter % 250 == 0)
//{
// srand((unsigned int)time(NULL));
//}
}
//delete[] thisGame;
thisGame.g_displaylog();
System.out.print("\nFINAL MOVE: " + Integer.toString(x_clockstop) + "\n");
}
}