axle OS
x86_32 UNIX-like hobby OS
src
user
shell
programs
snake
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;
9
}
snake_player_t
;
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
snake_player
Definition:
snake.h:6
game_state
Definition:
snake.h:11
Generated by
1.8.14