Added setPlayerID method to Player.java
This commit is contained in:
parent
6d58286d3b
commit
5fe910e2b0
|
@ -69,6 +69,20 @@ public class Game {
|
||||||
this.gameOn = false;
|
this.gameOn = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// /**
|
||||||
|
// * Simulates n games.
|
||||||
|
// *
|
||||||
|
// * @param runs The number of games to simulate.
|
||||||
|
// */
|
||||||
|
// public static void simulate(int runs) {
|
||||||
|
// Player p1 = new MaurizioAI();
|
||||||
|
// Player p2 = new MalteAI();
|
||||||
|
// for (int i = 0; i < runs; i++) {
|
||||||
|
// Game g = new Game(p1, p2);
|
||||||
|
// g.start
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start a game.
|
* Start a game.
|
||||||
* @param output determines, whether game info etc. gets printed to the console
|
* @param output determines, whether game info etc. gets printed to the console
|
||||||
|
|
|
@ -4,4 +4,5 @@ public interface Player {
|
||||||
|
|
||||||
public int move(int[][] game);
|
public int move(int[][] game);
|
||||||
public String getName();
|
public String getName();
|
||||||
|
public setPlayerID(int id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue