public void CreateOceanBoard_validateBoardTypeCreated()
        {
            BoardType  ocean      = BoardType.OceanBoard;
            OceanBoard oceanBoard = new OceanBoard();

            Assert.Equal(oceanBoard.BoardType, ocean);
        }
        public void DrawBoard_returnsCellCount()
        {
            OceanBoard oceanBoard = new OceanBoard();

            oceanBoard.DrawBoard();
            int cellCount = 100;

            Assert.Equal(oceanBoard.Cells.Count, cellCount);
        }
Exemplo n.º 3
0
 public Player(string name)
 {
     Name        = name;
     TargetBoard = new TargetBoard();
     OceanBoard  = new OceanBoard();
     Fleet       = new List <Ship>()
     {
         new Battleship(),
         new Carrier(),
         new Cruiser(),
         new Destroyer(),
         new Submarine()
     };
 }
 public void CreateBoard()
 {
     OceanBoard.DrawBoard();
     TargetBoard.DrawBoard();
 }
Exemplo n.º 5
0
 public void ClearBoard()
 {
     OceanBoard.Coor = new Dictionary <string, int>();
     OceanBoard.InitBoard();
 }