private void EnsureComputerMove(PlayerMoveModel playerMove)
        {
            if (!playerMove.PlayerType.Equals(PlayerType.Computer.ToString(), StringComparison.OrdinalIgnoreCase)) return;

            if (string.IsNullOrEmpty(playerMove.MoveName))
            {
                playerMove.MoveName = _gameEngine.GetRandomMoveName();
            }
        }
Ejemplo n.º 2
0
 public void GivenPlayer2WhoIsAAndPlaysMove(string playerType, string moveName)
 {
     _player2 = new PlayerMoveModel { PlayerType = playerType, MoveName = moveName };
 }