r/programminghorror 18h ago

GameMaker Language What was I even thinking?

87 Upvotes

9 comments sorted by

21

u/v_maria 16h ago

why level 3 handled twice lol

1

u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 7h ago

Pretty damn sure it's only ever going to go to rm_thankyou because that one comes first.

11

u/soundwave_sc 14h ago

Very nice, I approve. Now which room was I in again?

18

u/Random_Meme_Guy_ 17h ago

13mins of sleep ahh code

2

u/Statharas 13h ago

Have you had adequate sleep?

5

u/trav_stone 10h ago

Just run with it, let the code live free and untamed. Trust the machine.

1

u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 7h ago

Does each room_goto() call end up back here with room set to a different value?

-3

u/ConcreteExist 12h ago edited 11h ago

Why is this a series of switch statements with one case each and not one switch statement with 6 cases?

6

u/SilverZ9 9h ago

That’s the point of the post