public partial class Form1 : Form
{
Label[,] l = new Label[31, 28];
char[,] board;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
board = new char[,] {{'┌','-','-','-','-','-','-','-','-','-','-','-','-','┐','┌','-','-','-','-','-','-','-','-','-','-','-','-','┐'},
{'│','.','.','.','.','.','.','.','.','.','.','.','.','│','│','.','.','.','.','.','.','.','.','.','.','.','.','│'},
{'│','.','┌','-','-','┐','.','┌','-','-','-','┐','.','│','│','.','┌','-','-','-','┐','.','┌','-','-','┐','.','│'},
{'│','.','│',' ',' ','│','.','│',' ',' ',' ','│','.','│','│','.','│',' ',' ',' ','│','.','│',' ',' ','│','.','│'},
{'│','.','└','-','-','┘','.','└','-','-','-','┘','.','└','┘','.','└','-','-','-','┘','.','└','-','-','┘','.','│'},
{'│','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','│'},
{'│','.','┌','-','-','┐','.','┌','┐','.','┌','-','-','-','-','-','-','┐','.','┌','┐','.','┌','-','-','┐','.','│'},
{'│','.','└','-','-','┘','.','│','│','.','└','-','-','┐','┌','-','-','┘','.','│','│','.','└','-','-','┘','.','│'},
{'│','.','.','.','.','.','.','│','│','.','.','.','.','│','│','.','.','.','.','│','│','.','.','.','.','.','.','│'},
{'└','-','-','-','-','┐','.','│','└','-','-','┐',' ','│','│',' ','┌','-','-','┘','│','.','┌','-','-','-','-','┘'},
{' ',' ',' ',' ',' ','│','.','│','┌','-','-','┘',' ','└','┘',' ','└','-','-','┐','│','.','│',' ',' ',' ',' ',' '},
{' ',' ',' ',' ',' ','│','.','│','│',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','│','│','.','│',' ',' ',' ',' ',' '},
{' ',' ',' ',' ',' ','│','.','│','│',' ','┌','-','-',' ',' ','-','-','┐',' ','│','│','.','│',' ',' ',' ',' ',' '},
{'┌','-','-','-','-','┘','.','└','┘',' ','│',' ',' ',' ',' ',' ',' ','│',' ','└','┘','.','└','-','-','-','-','┐'},
{'│',' ',' ',' ',' ',' ','.',' ',' ',' ','│',' ',' ',' ',' ',' ',' ','│',' ',' ',' ','.',' ',' ',' ',' ',' ','│'},
{'└','-','-','-','-','┐','.','┌','┐',' ','│',' ',' ',' ',' ',' ',' ','│',' ','┌','┐','.','┌','-','-','-','-','┘'},
{' ',' ',' ',' ',' ','│','.','│','│',' ','└','-','-','-','-','-','-','┘',' ','│','│','.','│',' ',' ',' ',' ',' '},
{' ',' ',' ',' ',' ','│','.','│','│',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','│','│','.','│',' ',' ',' ',' ',' '},
{' ',' ',' ',' ',' ','│','.','│','│',' ','┌','-','-','-','-','-','-','┐',' ','│','│','.','│',' ',' ',' ',' ',' '},
{'┌','-','-','-','-','┘','.','└','┘',' ','└','-','-','┐','┌','-','-','┘',' ','└','┘','.','└','-','-','-','-','┐'},
{'│','.','.','.','.','.','.','.','.','.','.','.','.','│','│','.','.','.','.','.','.','.','.','.','.','.','.','│'},
{'│','.','┌','-','-','┐','.','┌','-','-','-','┐','.','│','│','.','┌','-','-','-','┐','.','┌','-','-','┐','.','│'},
{'│','.','└','-','┐','│','.','└','-','-','-','┘','.','└','┘','.','└','-','-','-','┘','.','│','┌','-','┘','.','│'},
{'│','.','.','.','│','│','.','.','.','.','.','.','.',' ',' ','.','.','.','.','.','.','.','│','│','.','.','.','│'},
{'└','-','┐','.','│','│','.','┌','┐','.','┌','-','-','-','-','-','-','┐','.','┌','┐','.','│','│','.','┌','-','┘'},
{'┌','-','┘','.','└','┘','.','│','│','.','└','-','-','┐','┌','-','-','┘','.','│','│','.','└','┘','.','└','-','┐'},
{'│','.','.','.','.','.','.','│','│','.','.','.','.','│','│','.','.','.','.','│','│','.','.','.','.','.','.','│'},
{'│','.','┌','-','-','-','-','┘','└','-','-','┐','.','│','│','.','┌','-','-','┘','└','-','-','-','-','┐','.','│'},
{'│','.','└','-','-','-','-','-','-','-','-','┘','.','└','┘','.','└','-','-','-','-','-','-','-','-','┘','.','│'},
{'│','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','.','│'},
{'└','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','-','┘'}};
int rowLength = board.GetLength(0);
int colLength = board.GetLength(1);
for (int i = 0; i < rowLength; i++)
{
for (int j = 0; j < colLength; j++)
{
l[i, j] = new Label();
l[i, j].Location = new System.Drawing.Point(10 + 12 * j, 10 + 12 * i);
l[i, j].Size = new System.Drawing.Size(12, 12);
this.Controls.Add(l[i, j]);
l[i, j].Text = Convert.ToString(board[i, j]);
}
}
}