Files
snake/include/point.hpp
T

19 lines
331 B
C++

#ifndef POINT_HPP
#define POINT_HPP
#include <array>
#include <string>
#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 to_string() const;
void clear(std::array<std::array<char, COL>, ROW> &arr) const;
};
#endif // POINT_HPP