removing the map

This commit is contained in:
DarthMooMancer
2025-11-07 12:46:26 -05:00
parent e44ec1c0e5
commit 438b029381
2 changed files with 21 additions and 34 deletions
+4 -10
View File
@@ -1,7 +1,6 @@
#ifndef ELEMENTS_HPP
#define ELEMENTS_HPP
#include <memory>
#include <array>
constexpr int ROW = 5;
@@ -26,21 +25,16 @@ public:
void run();
private:
std::unique_ptr<Window> win;
Window win;
struct Player {
Player(char id) : id(id) {};
char id;
};
const std::array<vec2, 9> map;
struct GameState {
Player player1;
Player player2;
Player *temp;
GameState() : player1('x'), player2('o'), temp { &player1 } {};
} state;
Player player1 { 'x' };
Player player2 { 'o' };
Player *temp { &player1 };
bool process_input();
bool exit_code();
bool check_line(char id);