equal
deleted
inserted
replaced
11 /* #define DEBUG */ |
11 /* #define DEBUG */ |
12 |
12 |
13 enum |
13 enum |
14 { |
14 { |
15 ALARM_SECONDS=1, |
15 ALARM_SECONDS=1, |
16 MAX_X=50, |
16 MAX_X=13, |
17 MAX_Y=50, |
17 MAX_Y=13, |
18 MAX_MOVES=50, |
18 MAX_MOVES=10, |
19 MAX_STEPS=50, |
19 MAX_STEPS=50, |
20 MAX_BOXES=15 |
20 MAX_BOXES=10 |
21 }; |
21 }; |
22 |
22 |
23 |
23 |
24 enum logic |
24 enum logic |
25 { |
25 { |
77 /* Prototypes for unix i/o, processes |
77 /* Prototypes for unix i/o, processes |
78 * os.c */ |
78 * os.c */ |
79 void ReadMap(struct Map *M, char *FileName); |
79 void ReadMap(struct Map *M, char *FileName); |
80 void ShowMap (const struct Map *M); |
80 void ShowMap (const struct Map *M); |
81 void init_os(); |
81 void init_os(); |
82 void PrintMove(struct BoxMove b); |
82 void PrintMoves(const struct BoxMove *b, const int *steps, const int depth); |
83 void show_percent_and_map(); |
83 void show_percent_and_map(); |
|
84 void save_state(); |
|
85 int load_state(); |
|
86 void show_tries(const int d); |
84 |
87 |
85 /* Functions related to map solution |
88 /* Functions related to map solution |
86 * algorithm.c */ |
89 * algorithm.c */ |
87 int solve_map(const struct Map *origin); |
90 int solve_map(const struct Map *origin); |