simplifying by hardcoding

This commit is contained in:
DarthMooMancer
2025-11-13 01:16:24 -05:00
parent d8cf03ddb3
commit c1fb582c0e
2 changed files with 40 additions and 59 deletions
+8 -13
View File
@@ -1,33 +1,28 @@
#ifndef ENGINE_HPP
#define ENGINE_HPP
#include <map>
#include <array>
#include <ncurses.h>
constexpr int ROW = 5;
constexpr int COL = 5;
struct vec2 {
int x, y;
vec2(int x, int y) : x(x), y(y) {}
auto operator <=> (const vec2&) const = default;
};
constexpr int ROW = 3;
constexpr int COL = 3;
struct Window {
Window();
std::map<vec2, char> view;
void draw_display();
std::array<char, ROW * COL> view;
void draw_display() const;
};
class Engine {
public:
Engine();
~Engine();
~Engine() { endwin(); };
void run();
private:
struct Player {
Player(char id) : id(id) {};
char id;
const char id;
};
Window win;