Files
snake/include/snake.hpp
T
2025-08-21 09:17:37 -04:00

18 lines
411 B
C++

#ifndef SNAKE_HPP
#define SNAKE_HPP
#include <vector>
#include "point.hpp"
struct Snake {
Snake(int default_direction, int row, int col);
Point m_head;
std::vector<Point> m_tails;
int m_direction; // 1: Down, 2: Up, 3: Left, 4: Right
void create_tail(int row, int col); // Adds a new tail to m_tails at { row, col }
void get_new_tail_point(int tail_index, int direction);
};
#endif