Commit 267bf95a authored by Fabian Jakob Sauer's avatar Fabian Jakob Sauer

Cleaned main class.

parent 8cd7c3cf
...@@ -19,10 +19,10 @@ public class MainClass { ...@@ -19,10 +19,10 @@ public class MainClass {
public static void RunSimulation() public static void RunSimulation()
{ {
// USER INPUT // USER INPUT
int numGames = 1; int numGames = 10000;
Player p1 = new OptimizeTurnPlayerDefault(); Player p1 = new RandomPlayer();
Player p2 = new OptimizeTurnPlayer(false); Player p2 = new OptimizeTurnPlayer();
Statistics stats = new Statistics(p1, p2); Statistics stats = new Statistics(p1, p2);
Random rand = new Random(); Random rand = new Random();
...@@ -60,7 +60,7 @@ public class MainClass { ...@@ -60,7 +60,7 @@ public class MainClass {
Player winner = game.simulate(); // run games simulation Player winner = game.simulate(); // run games simulation
//game.getHistory().printHistory(); //game.getHistory().printHistory();
stats.TrackGame(winner, game.getHistory()); stats.TrackGame(winner, game.getHistory());
System.out.println(p1.getName() + ": " + ((OptimizeTurnPlayerDefault)p1).GetCntTurns() + " | " +p2.getName() + ": " +((OptimizeTurnPlayer)p2).GetCntTurns()); //System.out.println(p1.getName() + ": " + ((OptimizeTurnPlayerDefault)p1).GetCntTurns() + " | " +p2.getName() + ": " +((OptimizeTurnPlayer)p2).GetCntTurns());
} }
stats.PrintStats(); stats.PrintStats();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment