Beispiel #1
0
        }//end method StartGame

        public bool Turn(int M, int N)
        {
            Human.Attack(Cpu, M, N);

            if (Cpu.NumberOfShips == 0)
            {
                EndGame(true);
                return(true);
            }//end if


            Cpu.Attack(Human);

            if (Human.NumberOfShips == 0)
            {
                EndGame(false);
                return(true);
            } //end if
            return(false);
        }     //end method Turn