Exemple #1
0
 static void Spiel()
 {
     GameLogic.setNames();
     Spielfeld.clearsea();
     Schiffe.placeship();
     GameLogic.attack();
     Spielfeld.drawsea();
     Console.ReadLine();
 }
        //Schiffplatzierung auf dem Wasser
        static public void placeship()
        {
            Spielfeld.setshipsonSea(ship);

            ship[1, 5] = Convert.ToString(ship1);
            ship[2, 5] = Convert.ToString(ship1);
            ship[3, 5] = Convert.ToString(ship1);

            ship[6, 3] = Convert.ToString(ship2);
            ship[6, 4] = Convert.ToString(ship2);
            ship[6, 5] = Convert.ToString(ship2);
            ship[6, 6] = Convert.ToString(ship2);
            ship[6, 7] = Convert.ToString(ship2);
            //sea[1, 5] = Convert.ToString(ship1);
            //sea[2, 5] = Convert.ToString(ship1);
            //sea[3, 5] = Convert.ToString(ship1);

            //sea[6, 3] = Convert.ToString(ship2);
            //sea[6, 4] = Convert.ToString(ship2);
            //sea[6, 5] = Convert.ToString(ship2);
            //sea[6, 6] = Convert.ToString(ship2);
            //sea[6, 7] = Convert.ToString(ship2);
        }