From 5fe910e2b0c3da70d34412d63fe0d9da8908f075 Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Wed, 18 Oct 2017 22:55:57 +0200 Subject: [PATCH] Added setPlayerID method to Player.java --- src/game/Game.java | 14 ++++++++++++++ src/player/Player.java | 1 + 2 files changed, 15 insertions(+) diff --git a/src/game/Game.java b/src/game/Game.java index 974eda6..78aaeb4 100644 --- a/src/game/Game.java +++ b/src/game/Game.java @@ -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 diff --git a/src/player/Player.java b/src/player/Player.java index f7d6016..414d4e1 100644 --- a/src/player/Player.java +++ b/src/player/Player.java @@ -4,4 +4,5 @@ public interface Player { public int move(int[][] game); public String getName(); + public setPlayerID(int id); }