Exemplo n.º 1
0
 /// <summary>
 /// Add the ship on the grid
 /// </summary>
 /// <param name="shipCase"></param>
 public void AddShip(casePlatform[] shipCase)
 {
     foreach (casePlatform c in shipCase)
     {
         //this.Board[((int)(c.X/40)-1)*10+(int)(c.Y/40)-1] = c;
         this.Board.Remove(c);
         this.Board.Add(c);
     }
 }