aboutsummaryrefslogtreecommitdiff
path: root/GameController/src
diff options
context:
space:
mode:
Diffstat (limited to 'GameController/src')
-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) ;
+
+}