check_line works again

This commit is contained in:
DarthMooMancer
2025-11-06 20:12:16 -05:00
parent fccc07600a
commit ee6f003d31
4 changed files with 47 additions and 90 deletions
+10 -5
View File
@@ -6,10 +6,14 @@
class Window;
struct Player {
Player(char symbol, int id) : m_symbol(symbol), m_id(id) {};
char m_symbol;
int m_id;
bool on_line();
Player(char id) : id(id) {};
char id;
};
struct vec2 {
vec2(int x, int y) : x(x), y(y) {}
int x;
int y;
};
class Engine {
@@ -24,11 +28,12 @@ private:
Player player1;
Player player2;
Player *temp;
GameState() : player1('x', 1), player2('o', 2), temp { &player1 } {};
GameState() : player1('x'), player2('o'), temp { &player1 } {};
} state;
void get_current_player();
bool process_input();
bool exit_code();
bool check_line(char id);
};
#endif