}
System.out.print("\nEasy\t");
int[] wins = new int[players.length];
for(int i=0; i<1000; i++) {
GameState game = NativeGameState.createEasyGame();
for(int p=0; p<players.length; p++) {
players[p].solve(game);
if(game.getState()==State.WIN) wins[p]++;
game.restart();
}
}
for(int w : wins) System.out.print("\t\t"+w);
System.out.print("\nIntermediate");
wins = new int[players.length];
for(int i=0; i<1000; i++) {
GameState game = NativeGameState.createIntermediateGame();
for(int p=0; p<players.length; p++) {
players[p].solve(game);
if(game.getState()==State.WIN) wins[p]++;
game.restart();
}
}
for(int w : wins) System.out.print("\t\t"+w);
System.out.print("\nAdvanced");
wins = new int[players.length];
for(int i=0; i<1000; i++) {
GameState game = NativeGameState.createAdvancedGame();
for(int p=0; p<players.length; p++) {
players[p].solve(game);
if(game.getState()==State.WIN) wins[p]++;
game.restart();
}
}
for(int w : wins) System.out.print("\t\t"+w);
System.out.println("\n"+(System.currentTimeMillis()-t0));