tablica 2d do 1D
int array[width * height];
int SetElement(int row, int col, int value)
{
array[width * row + col] = value;
}
Spotless Snake
int array[width * height];
int SetElement(int row, int col, int value)
{
array[width * row + col] = value;
}