Skip to content

Commit 4a42dc3

Browse files
committed
[sokoban] add 2 new levels
1 parent 70c322f commit 4a42dc3

1 file changed

Lines changed: 50 additions & 2 deletions

File tree

sokoban_levels.h

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
#include "brick.h"
55

6-
#define SOKOBAN_MAX_NUMBER_OF_STORAGE_LOCATIONS 10
7-
#define SOKOBAN_LEVELS 3
6+
#define SOKOBAN_MAX_NUMBER_OF_STORAGE_LOCATIONS 12
7+
#define SOKOBAN_LEVELS 5
88

99
typedef struct {
1010
char x;
@@ -90,6 +90,54 @@ sokoban_level_t sokoban_levels[SOKOBAN_LEVELS] = { {
9090
{0, 0, 0, 0, 0, 1, 0, 0, 0, 1},
9191
{0, 0, 0, 0, 0, 1, 0, 0, 0, 1},
9292
{0, 0, 0, 0, 0, 1, 1, 1, 1, 1}}
93+
}, {
94+
6,
95+
{{6, 13}, {7, 13}, {8, 13}, {6, 14}, {7, 14}, {8, 14}},
96+
{1, 5},
97+
{{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
98+
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
99+
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
100+
{0, 0, 0, 0, 0, 0, 1, 1, 1, 1},
101+
{1, 1, 1, 1, 1, 1, 1, 0, 0, 1},
102+
{1, 0, 0, 0, 0, 0, 0, 2, 0, 1},
103+
{1, 0, 0, 0, 0, 2, 0, 0, 0, 1},
104+
{1, 0, 1, 1, 0, 1, 1, 1, 1, 1},
105+
{1, 0, 1, 0, 0, 1, 0, 0, 0, 0},
106+
{0, 0, 1, 0, 0, 1, 0, 0, 0, 0},
107+
{0, 2, 1, 0, 2, 1, 0, 0, 0, 0},
108+
{0, 0, 1, 0, 0, 1, 0, 0, 0, 0},
109+
{0, 2, 1, 0, 2, 1, 1, 1, 1, 1},
110+
{0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
111+
{0, 0, 0, 0, 0, 0, 0, 0, 0, 1},
112+
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
113+
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
114+
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
115+
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
116+
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}
117+
}, {
118+
12,
119+
{{4, 1}, {5, 1}, {4, 2}, {5, 2}, {1, 10}, {1, 11}, {8, 10}, {8, 11}, {1, 17}, {1, 18}, {8, 17}, {8, 18}},
120+
{4, 10},
121+
{{0, 0, 0, 1, 1, 1, 1, 0, 0, 0},
122+
{0, 0, 0, 1, 0, 0, 1, 0, 0, 0},
123+
{0, 0, 0, 1, 0, 0, 1, 0, 0, 0},
124+
{1, 1, 1, 1, 0, 0, 1, 1, 1, 1},
125+
{0, 2, 0, 0, 0, 0, 2, 0, 0, 0},
126+
{0, 0, 0, 2, 0, 0, 0, 0, 2, 0},
127+
{1, 1, 1, 1, 0, 0, 1, 1, 1, 1},
128+
{0, 0, 0, 1, 2, 0, 1, 0, 0, 0},
129+
{0, 0, 0, 1, 0, 0, 1, 0, 0, 0},
130+
{1, 1, 1, 1, 0, 2, 1, 1, 1, 1},
131+
{1, 0, 0, 0, 0, 0, 0, 0, 0, 1},
132+
{1, 0, 0, 0, 0, 0, 0, 0, 0, 1},
133+
{1, 1, 1, 1, 2, 0, 1, 1, 1, 1},
134+
{0, 0, 0, 1, 0, 0, 1, 0, 0, 0},
135+
{0, 0, 0, 1, 0, 2, 1, 0, 0, 0},
136+
{0, 0, 0, 1, 0, 0, 1, 0, 0, 0},
137+
{1, 1, 1, 1, 2, 0, 1, 1, 1, 1},
138+
{1, 0, 0, 2, 0, 0, 0, 0, 0, 1},
139+
{1, 0, 0, 0, 2, 0, 2, 0, 0, 1},
140+
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1}}
93141
} };
94142

95143
#endif /* _SOKOBAN_LEVELS_H_ */

0 commit comments

Comments
 (0)