#ifndef GAME_H_INCLUDED #define GAME_H_INCLUDED #include "snake.h" /** * Initialize the game state * @return initialized game state */ struct state* init_game(); /** * Render the current game state to the screen * @param state the game state to render */ void render_game(struct state* state); /** * Handle input and update game state * @param state the game state to update * @return 0 if game should continue, non-zero if should exit */ int handle_input(struct state* state); /** * Clean up and free game resources * @param state the game state to free */ void cleanup_game(struct state* state); /** * Run the main game loop */ void run_game(); #endif // GAME_H_INCLUDED