Example #1
0
 public void Set(Coord xy, int value)
 {
     if (xy.CheckBoard(size))
     {
         map[xy.x, xy.y] = value;
     }
 }
Example #2
0
 public int Get(Coord xy)
 {
     if (xy.CheckBoard(size))
     {
         return(map[xy.x, xy.y]);
     }
     return(0);
 }