From 6ee3306843963cb0603a8b091c095020911f21e9 Mon Sep 17 00:00:00 2001
From: Camil Staps
Date: Sat, 21 Feb 2015 15:55:16 +0100
Subject: fix for setcurrentcontestant
---
GuessANumber/Controller/build.xml | 4 ++--
.../Controller/src/nl/camilstaps/botleagues/MyGameController.java | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
(limited to 'GuessANumber/Controller')
diff --git a/GuessANumber/Controller/build.xml b/GuessANumber/Controller/build.xml
index 7e8a538..9fcf458 100644
--- a/GuessANumber/Controller/build.xml
+++ b/GuessANumber/Controller/build.xml
@@ -17,7 +17,7 @@
-
+
+ classname="nl.camilstaps.botleagues.MyGameController">
diff --git a/GuessANumber/Controller/src/nl/camilstaps/botleagues/MyGameController.java b/GuessANumber/Controller/src/nl/camilstaps/botleagues/MyGameController.java
index 1ba7658..bf83786 100644
--- a/GuessANumber/Controller/src/nl/camilstaps/botleagues/MyGameController.java
+++ b/GuessANumber/Controller/src/nl/camilstaps/botleagues/MyGameController.java
@@ -43,6 +43,7 @@ public class MyGameController extends RoundBasedGameController {
*/
public MyGameController(String[] bots) {
addBots(bots);
+ setCurrentContestant(getContestants().get(0));
Random rand = new Random();
int n = rand.nextInt(100) + 1;
--
cgit v1.2.3