Exemplo n.º 1
0
        public ShootResult Shoot(IPlayer player, IRef referee)
        {
            string shootPos = player.getMove("Enter a position to shoot: ");

            if (!referee.isValidShot(shootPos, player, this))
            {
                return(ShootResult.Invalid);
            }
            board[shootPos].changeState(Player.None);
            return(ShootResult.Done);
        }