diff options
| author | The Vu | 2015-02-21 15:45:16 +0100 |
|---|---|---|
| committer | The Vu | 2015-02-21 15:45:16 +0100 |
| commit | 0d5ea2a152723097885a353ff715ff91a178ddd3 (patch) | |
| tree | 7a37de644a341c33354dcf236e075cc0e0fc7624 /src/nl/camilstaps | |
| parent | deleted turn-class (diff) | |
round based game
Diffstat (limited to 'src/nl/camilstaps')
| -rw-r--r-- | src/nl/camilstaps/botleagues/roundbasedgame/Move.java | 5 | ||||
| -rw-r--r-- | src/nl/camilstaps/botleagues/roundbasedgame/RoundBasedGameController.java | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/nl/camilstaps/botleagues/roundbasedgame/Move.java b/src/nl/camilstaps/botleagues/roundbasedgame/Move.java new file mode 100644 index 0000000..5e03707 --- /dev/null +++ b/src/nl/camilstaps/botleagues/roundbasedgame/Move.java @@ -0,0 +1,5 @@ +package nl.camilstaps.botleagues.roundbasedgame; + +public class Move { + +} diff --git a/src/nl/camilstaps/botleagues/roundbasedgame/RoundBasedGameController.java b/src/nl/camilstaps/botleagues/roundbasedgame/RoundBasedGameController.java new file mode 100644 index 0000000..a3690bd --- /dev/null +++ b/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) ; + +} |
