Merge branch 'master' of ssh://rexy712.chickenkiller.com:1995/var/git/repos/rexy712/our_dick

This commit is contained in:
rexy712 2020-08-15 13:59:50 -07:00
commit def1740b7d
2 changed files with 12 additions and 7 deletions

11
include/game_state.hpp Normal file
View File

@ -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

View File

@ -3,6 +3,7 @@
#include <ctime>
#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;