diff --git a/include/game_state.hpp b/include/game_state.hpp new file mode 100644 index 0000000..3f6fe15 --- /dev/null +++ b/include/game_state.hpp @@ -0,0 +1,11 @@ +#ifndef OUR_DICK_GAME_STATE_HPP +#define OUR_DICK_GAME_STATE_HPP + +#define TILE_COUNT 9 + +struct game_state { + int turn; + char board[TILE_COUNT]; +}; + +#endif diff --git a/src/main.cpp b/src/main.cpp index 5eedc9d..c127171 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,6 +3,7 @@ #include #include "render.hpp" +#include "game_state.hpp" // 0 | 1 | 2 // --------- @@ -10,13 +11,6 @@ // --------- // 6 | 7 | 8 -#define TILE_COUNT 9 - -struct game_state { - int turn; - char board[TILE_COUNT]; -}; - int get_player_input(){ //TODO get player input return rand()%9;