savitch.h 573 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef SAVITCH_H
  2. #define SAVITCH_H
  3. #include "sokoban.h"
  4. #define MAX_BOX 10
  5. typedef struct{
  6. char level[LEVEL_SIZE];
  7. int w;
  8. int h;
  9. int pusher; //pusher position
  10. }RNODE;
  11. //
  12. void box_init_config(int *box, int nbox);
  13. int box_next_config(int *box, int nbox, int nsquare);
  14. void box_printf(int *box, int nbox);
  15. //
  16. int level_compare_box(char *lvl1, char *lvl2, int wh, int *box);
  17. void level_find_corner_2(char *lvl, char * g, char *corner, int wh, int w);
  18. //
  19. int savitch(RNODE *r1, RNODE *r2, int n,int k);
  20. //
  21. int sokoban_savitch(SOKOBAN *skb, int n);
  22. #endif