diff options
-rw-r--r-- | src/jrummikub/model/GameState.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/jrummikub/model/GameState.java b/src/jrummikub/model/GameState.java index 83aeff6..17b3ed0 100644 --- a/src/jrummikub/model/GameState.java +++ b/src/jrummikub/model/GameState.java @@ -1,5 +1,6 @@ package jrummikub.model; +import java.util.ArrayList; import java.util.List; /** Class managing the overall and momentary GameState */ @@ -9,14 +10,17 @@ public class GameState { private int activePlayer; private StoneHeap gameHeap; + public GameState() { + this.players=new ArrayList<Player>(); + } + /** Changes the activePlayer to the next {@link Player} in the list */ public void nextPlayer() { } public Player activePlayer() { - // TODO implement this - return null; + } } |