Program.cs 799 Bytes
Newer Older
Andres Käver's avatar
Andres Käver committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using BattleShipBrain;
using BattleShipConsoleUI;

namespace BattleShipConsoleApp
{
    class Program
    {
        
        static void Main(string[] args)
        {
            Console.WriteLine("Hello Battleship!");
            var brain = new BSBrain(10,5);
            
            BSConsoleUI.DrawBoard(brain.GetBoard(0));
            
            var b = brain.GetBoard(0);
            
            b[0, 0].IsBomb = true;
            b[0, 0].IsShip = false;
            
            
            Console.WriteLine("+---+---+--------------");
            Console.WriteLine("| x | * |");
            Console.WriteLine("+---+---+---------------");
            Console.WriteLine("----------------------");

            BSConsoleUI.DrawBoard(brain.GetBoard(0));

        }
    }
}