feat: fruits, globals, input, snake, point, window

This commit is contained in:
DarthMooMancer
2025-05-09 21:30:19 -04:00
parent 636ebae6a3
commit cdcffc40ea
13 changed files with 231 additions and 57 deletions
+18
View File
@@ -0,0 +1,18 @@
#ifndef POINT_HPP
#define POINT_HPP
#include <array>
#include "globals.hpp"
struct Point {
int m_row;
int m_col;
Point() {}
Point(int x, int y) : m_row(x), m_col(y) {}
std::string get_point() const;
void clear(std::array<std::array<char, COL>, ROW> &arr) const;
std::pair<int, int> get_point(int direction, int row, int col);
};
#endif // POINT_HPP