Ejemplo n.º 1
0
        static IGameSquare SetPiece(Board gameBoard, Player player, RollAttempt rollAttempt)
        {
            ushort newPosition = player.SetPosition(rollAttempt.TotalValue);

            if (player.PassedGo)
            {
                player.Pay(GameRules.AmountRecievedWhenPassedGo);
            }

            return(gameBoard.GetGameSquare(newPosition));
        }
Ejemplo n.º 2
0
 static IGameSquare SetPiece(Board gameBoard, int playerId, RollAttempt rollAttempt)
 {
     return(SetPiece(gameBoard, gameBoard.GetPlayer(playerId), rollAttempt));
 }