mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2024-12-26 09:58:48 +01:00
beau
This commit is contained in:
parent
6cd428d31c
commit
81d4eca04b
1 changed files with 12 additions and 12 deletions
24
star.c
24
star.c
|
@ -269,26 +269,26 @@ enum {
|
|||
};
|
||||
|
||||
typedef enum {
|
||||
WALL ='#',
|
||||
BALL ='@',
|
||||
CUBE ='H',
|
||||
VOID =' ',
|
||||
GIFT ='x'
|
||||
WALL = '#',
|
||||
BALL = '@',
|
||||
CUBE = 'H',
|
||||
VOID = ' ',
|
||||
GIFT = 'x'
|
||||
} cell;
|
||||
|
||||
typedef enum {
|
||||
UP ='u',
|
||||
DOWN ='d',
|
||||
LEFT ='l',
|
||||
RIGHT ='r'
|
||||
UP = 'u',
|
||||
DOWN = 'd',
|
||||
LEFT = 'l',
|
||||
RIGHT = 'r'
|
||||
} direction;
|
||||
|
||||
struct state {
|
||||
char board[ LEVEL_HEIGHT * LEVEL_WIDTH ];
|
||||
char moving;
|
||||
int moves;
|
||||
int level;
|
||||
int nb_levels;
|
||||
int moves;
|
||||
int level;
|
||||
int nb_levels;
|
||||
};
|
||||
|
||||
int count_gifts( struct state *s )
|
||||
|
|
Loading…
Reference in a new issue