aboutsummaryrefslogtreecommitdiff
path: root/GameController
diff options
context:
space:
mode:
authorThe Vu2015-02-21 15:45:16 +0100
committerThe Vu2015-02-21 15:45:16 +0100
commit763008c63c09dda4b7b31dadb6cc268cb92ff9f5 (patch)
tree1267537e1da2bdfb3ed1225d74246d3c087d0292 /GameController
parentdeleted turn-class (diff)
round based game
Diffstat (limited to 'GameController')
-rw-r--r--GameController/src/nl/camilstaps/botleagues/roundbasedgame/Move.java5
-rw-r--r--GameController/src/nl/camilstaps/botleagues/roundbasedgame/RoundBasedGameController.java17
2 files changed, 22 insertions, 0 deletions
diff --git a/GameController/src/nl/camilstaps/botleagues/roundbasedgame/Move.java b/GameController/src/nl/camilstaps/botleagues/roundbasedgame/Move.java
new file mode 100644
index 0000000..5e03707
--- /dev/null
+++ b/GameController/src/nl/camilstaps/botleagues/roundbasedgame/Move.java
@@ -0,0 +1,5 @@
+package nl.camilstaps.botleagues.roundbasedgame;
+
+public class Move {
+
+}
diff --git a/GameController/src/nl/camilstaps/botleagues/roundbasedgame/RoundBasedGameController.java b/GameController/src/nl/camilstaps/botleagues/roundbasedgame/RoundBasedGameController.java
new file mode 100644
index 0000000..a3690bd
--- /dev/null
+++ b/GameController/src/nl/camilstaps/botleagues/roundbasedgame/RoundBasedGameController.java
@@ -0,0 +1,17 @@
+package nl.camilstaps.botleagues.roundbasedgame;
+
+import nl.camilstaps.botleagues.Contestant;
+import nl.camilstaps.botleagues.GameController;
+
+public abstract class RoundBasedGameController extends GameController {
+
+ public void run() {
+ while (getNextContestant() != null)
+ nextTurn(getNextContestant());
+ System.out.println(getWinner());
+
+ }
+
+ public abstract Move nextTurn(Contestant contestant) ;
+
+}