using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Sandbox.Map { public class GameMap { public int length; public int width; public int[,] map; public GameMap(int length, int width) { this.length = length; this.width = width; map = new int[width, length]; } public void setMap() { for (int i = 0; i < width; i++) { for (int j = 0; j < length; j++) { if ((i == 0) || (i == width - 1) || (j == 0)) { map[i, j] = 1; // Стены 'строим' } else { map[i, j] = 0; // Строим 'пол' } } } } } }