This commit is contained in:
kinou-p 2022-02-14 01:12:34 +01:00
parent 5b206e7e9b
commit 8d0ee0aed9
12 changed files with 91 additions and 9 deletions

10
map/bad_name.be Normal file
View File

@ -0,0 +1,10 @@
1111111111111
1E110C00C0001
1000000011001
10C011CC01C01
100011C001C01
10C000C000C01
100001C001C01
1000100C01C01
1P0001C000C01
1111111111111

0
map/empty_map.ber Normal file
View File

6
map/impossible.ber Normal file
View File

@ -0,0 +1,6 @@
111111111111111111
1CEEEEEEEEEEEEEEE1
1EE000000000000001
10C0000000C0000001
10000C0000000000P1
111111111111111111

View File

@ -1,10 +1,10 @@
1111111111111 1111111111111
1E110C00C0001 1E110C00C0001
1000P01011001 1000000011001
10C011C001C01 10C011CC01C01
10C011C001C01 100011C001C01
10C011C001C01 10C000C000C01
10C011C001C01 100001C001C01
10C011C001C01 1000100C01C01
10C011C001C01 1P0001C000C01
1111111111111 1111111111111

10
map/no_exit.ber Normal file
View File

@ -0,0 +1,10 @@
1111111111111
10110C00C0001
1000000011001
10C011CC01C01
100011C001C01
10C000C000C01
100001C001C01
1000100C01C01
1P0001C000C01
1111111111111

10
map/no_item.ber Normal file
View File

@ -0,0 +1,10 @@
1111111111111
1E11000000001
1000000011001
1000110001001
1000110001001
1000000000001
1000010001001
1000100001001
1P00010000001
1111111111111

10
map/no_player.ber Normal file
View File

@ -0,0 +1,10 @@
1111111111111
1E110C00C0001
1000000011001
10C011CC01C01
100011C001C01
10C000C000C01
100001C001C01
1000100C01C01
100001C000C01
1111111111111

10
map/not_close.ber Normal file
View File

@ -0,0 +1,10 @@
1111111111111
1E110C00C0001
1000000011001
10C011CC01C01
100011C001C01
10C000C000C00
100001C001C01
1000100C01C01
1P0001C000C01
1111111111111

13
map/tall.ber Normal file
View File

@ -0,0 +1,13 @@
111
1P1
1C1
1C1
1C1
1C1
1C1
1C1
1C1
1C1
1C1
1E1
111

10
map/two_player.ber Normal file
View File

@ -0,0 +1,10 @@
1111111111111
1E110C00C0001
1000000011001
10C011CC01C01
100011C001C01
10C000C000C01
100001C001C01
1000100C01C01
1PP001C000C01
1111111111111

3
map/wide.ber Normal file
View File

@ -0,0 +1,3 @@
111111111111111111111
1ECCCCCCCCCCCCCCCCCP1
111111111111111111111

View File

@ -6,7 +6,7 @@
/* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */ /* By: apommier <apommier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/13 22:26:34 by apommier #+# #+# */ /* Created: 2022/02/13 22:26:34 by apommier #+# #+# */
/* Updated: 2022/02/13 23:47:44 by apommier ### ########.fr */ /* Updated: 2022/02/14 00:58:23 by apommier ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -74,7 +74,7 @@ int is_item(char **map)
i = 1; i = 1;
while (map[j][i]) while (map[j][i])
{ {
if (map[j][i++] == 'E') if (map[j][i++] == 'C')
item++; item++;
} }
j++; j++;