moving things around
This commit is contained in:
+5
-6
@@ -2,21 +2,20 @@
|
||||
|
||||
#include <array>
|
||||
#include <string>
|
||||
#include <ncurses.h>
|
||||
|
||||
class Engine {
|
||||
public:
|
||||
Engine();
|
||||
~Engine();
|
||||
~Engine() { endwin(); }
|
||||
void run();
|
||||
|
||||
private:
|
||||
char p1 { 'x' }, p2 { 'o' }, temp { p1 };
|
||||
std::string status;
|
||||
std::array<char, 9> view;
|
||||
void draw_display() const;
|
||||
char p1 { 'x' };
|
||||
char p2 { 'o' };
|
||||
char temp { p1 };
|
||||
bool process_input();
|
||||
bool check_game_over();
|
||||
bool check_line(char id) const;
|
||||
bool update_status();
|
||||
bool process_input();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user