示例#1
0
        private void TakeTurn(Player player)
        {
            Turn turn = new Turn(this.dice, player, this.gameBoard);
            turn.Take();

            this.currentRound.AddPlayerTurn(player);
        }
示例#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);
 }
示例#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());
 }
示例#4
0
        private void MovePlayer(Player currentPlayer, Turn turn)
        {
            movement.MovePlayer(currentPlayer, turn.GetLastRoll());

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