feat: added door in the game (can't open right now)

This commit is contained in:
Theo Champion 2025-09-30 17:50:49 +02:00
parent 94f018d23b
commit ebd4b282cf
7 changed files with 272 additions and 9 deletions

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/17 14:18:13 by kcolin #+# #+# */
/* Updated: 2025/09/22 17:16:41 by tchampio ### ########.fr */
/* Updated: 2025/09/30 17:23:06 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -21,11 +21,13 @@
* J - Juggernog perk
* D - Double tap perk
* 2345678 - barricade and it's levels starting from 2 (every planks) to 8
* beware of zombies
* z - beware of zombies
* d - closed door
* i - open dooro
*/
bool has_forbidden_characters(char *line)
{
static const char *allowedchars = " 10234567NSEWMQJDz\n";
static const char *allowedchars = " 10234567NSEWMQJDzdi\n";
size_t strsize;
int i;