feat(snake.hpp): adding a member argument for move history
This commit is contained in:
@@ -8,8 +8,10 @@
|
||||
struct Point {
|
||||
int m_row;
|
||||
int m_col;
|
||||
int m_direction;
|
||||
Point() {}
|
||||
Point(int x, int y) : m_row(x), m_col(y) {}
|
||||
Point(int x, int y, int dir) : m_row(x), m_col(y), m_direction(dir) {}
|
||||
|
||||
std::string to_string() const;
|
||||
void clear(std::array<std::array<char, COL>, ROW> &arr) const;
|
||||
|
||||
Reference in New Issue
Block a user