axle OS
x86_32 UNIX-like hobby OS
snake.h
1 #ifndef SNAKE_H
2 #define SNAKE_H
3 
4 #include <stdint.h>
5 
6 typedef struct snake_player {
7  uint8_t length;
8  int is_alive;
10 
11 typedef struct game_state {
12  snake_player_t* player;
13  char last_move;
14  uint8_t last_head_x;
15  uint8_t last_head_y;
16  int is_running;
17 } game_state_t;
18 
19 void play_snake(void);
20 
21 #endif
Definition: snake.h:6
Definition: snake.h:11