refactor: add game state abstraction

This commit is contained in:
2026-09-27 11:37:08 -07:00
parent bfdf3ad573
commit bdaf00129d
3 changed files with 147 additions and 68 deletions
+17
View File
@@ -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