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)); }
static IGameSquare SetPiece(Board gameBoard, int playerId, RollAttempt rollAttempt) { return(SetPiece(gameBoard, gameBoard.GetPlayer(playerId), rollAttempt)); }