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