private void TakeTurn(Player player) { Turn turn = new Turn(this.dice, player, this.gameBoard); turn.Take(); this.currentRound.AddPlayerTurn(player); }
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); }
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()); }
private void MovePlayer(Player currentPlayer, Turn turn) { movement.MovePlayer(currentPlayer, turn.GetLastRoll()); ApplyEffectForCurrentPosition(currentPlayer, turn.GetLastRoll()); }