refactor: add game state abstraction
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#ifndef GAMESTATE_H
|
||||
#define GAMESTATE_H
|
||||
|
||||
void init_game_state();
|
||||
|
||||
// Gets the word at the current element. Will always return a valid non-null pointer to first char of the word
|
||||
char *get_curr_word();
|
||||
|
||||
char get_curr_letter();
|
||||
int get_curr_letter_index();
|
||||
|
||||
int get_wins();
|
||||
|
||||
// handle either going to the next letter or next word if at the end
|
||||
void next();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user