fix: (tail) fixed where tail index 0 is on top of the head
This commit is contained in:
+2
-1
@@ -7,9 +7,10 @@ struct Fruit {
|
||||
Fruit();
|
||||
int unsigned m_row;
|
||||
int unsigned m_col;
|
||||
int unsigned m_total_eaten;
|
||||
Point m_point;
|
||||
|
||||
void create_point();
|
||||
void reset(std::array<std::array<char, COL>, ROW> &arr, int row, int col, int &score, int &count);
|
||||
void reset(std::array<std::array<char, COL>, ROW> &arr, int row, int col, int &score);
|
||||
};
|
||||
#endif // FRUIT_HPP
|
||||
|
||||
Reference in New Issue
Block a user