refactor: renamed snake to element and moved fruit to element. Removed a lot of unused functions and variables

This commit is contained in:
DarthMooMancer
2025-08-30 01:09:50 -04:00
parent d488f6464a
commit 96e5eb9930
15 changed files with 159 additions and 246 deletions
+2 -4
View File
@@ -2,7 +2,6 @@
#define POINT_HPP
#include <array>
#include <string>
#include "globals.hpp"
struct Point {
@@ -13,9 +12,8 @@ struct 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;
void set_new_point(int x, int y, int dir);
void clear(std::array<std::array<char, COL>, ROW> &board) const;
void set_new_point(int row, int col, int dir);
};
#endif // POINT_HPP