Let AI refactor everything and see if it breaks.

This commit is contained in:
2026-03-29 00:59:27 +01:00
parent 561b99b710
commit b873ac24ca
11 changed files with 656 additions and 576 deletions

13
include/game_logic.h Normal file
View File

@@ -0,0 +1,13 @@
#ifndef GAME_LOGIC_H
#define GAME_LOGIC_H
#include "game_state.h"
void update_snake(GameState &state);
bool check_collision_self(GameState &state);
bool check_collision_apples(GameState &state);
bool check_collision_apples_rotten(GameState &state);
void spawn_apples(GameState &state);
void spawn_apples_rotten(GameState &state);
#endif