Exemplo n.º 1
0
        private void TakeTurn(Player player)
        {
            Turn turn = new Turn(this.dice, player, this.gameBoard);
            turn.Take();

            this.currentRound.AddPlayerTurn(player);
        }
Exemplo n.º 2
0
 public void Initialize()
 {
     this.fakeDice = new FakeDice();
     this.player = new Player("Horse");
     this.board = new ClassicBoard();
     this.turn = new Turn(this.fakeDice, this.player, this.board);
 }
Exemplo n.º 3
0
 public JailTests()
 {
     player = new Player("Name", 1500);
     player.BuyingStrategy = new NeverBuyStrategy();
     goToJail = new GoToJail(ClassicBoard.GoToJailLocation, ClassicBoard.JailLocation);
     dice = new FakeDice();
     turn = new Turn(dice, player, new ClassicBoard());
 }
Exemplo n.º 4
0
        private void MovePlayer(Player currentPlayer, Turn turn)
        {
            movement.MovePlayer(currentPlayer, turn.GetLastRoll());

            ApplyEffectForCurrentPosition(currentPlayer, turn.GetLastRoll());
        }