We have a discussion on using std::pair
or some own struct for Snake game column and row.
Do we need to create something like that:
struct { int row; int col;} ... cell.row, cell.col;
Or use:
std::pair<int, int> ... cell.first, cell.second;
We have a discussion on using std::pair
or some own struct for Snake game column and row.
Do we need to create something like that:
struct { int row; int col;} ... cell.row, cell.col;
Or use:
std::pair<int, int> ... cell.first, cell.second;