7 lines
84 B
C++
7 lines
84 B
C++
#include "grid.h"
|
|
|
|
int calculateIndex(int x, int y)
|
|
{
|
|
return x + y * COLUMNS;
|
|
}
|