Added setPlayerID method to Player.java

This commit is contained in:
Malte Tammena 2017-10-18 22:55:57 +02:00
parent 6d58286d3b
commit 5fe910e2b0
2 changed files with 15 additions and 0 deletions

View file

@ -69,6 +69,20 @@ public class Game {
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.
* @param output determines, whether game info etc. gets printed to the console

View file

@ -4,4 +4,5 @@ public interface Player {
public int move(int[][] game);
public String getName();
public setPlayerID(int id);
}