Skip to content
Browse files

Foundation for gameUpdate loop to handle events.

  • Loading branch information...
1 parent 0a9df97 commit 3bd0383a83a7922ba745925ba82d877d24f6cdef @feltnerm committed
Showing with 6 additions and 5 deletions.
  1. +6 −5 src/Game/Game.java
View
11 src/Game/Game.java
@@ -8,6 +8,7 @@
import java.util.ListIterator;
import Board.Board;
+import Board.Space;
import Config.Config;
import Dice.Dice;
import Player.Player;
@@ -121,12 +122,12 @@ private void gameUpdate()
//update game state
if (this.players.size() == 1)
{
-
+ // winner!
+ }
+
+ else {
+ handlSpace(this.board.getSpace(this.current_player.position));
}
- //if (this.current_player.isJailed())
- //
- //handle jail
- //}
}

0 comments on commit 3bd0383

Please sign in to comment.
Something went wrong with that request. Please try again.