Are you a mastermind?

Hey there, i was just doing some code and found a mind blowing bug, maybe i’m just too dumb and it’s obvious but still… Why not turning it as a kind of intellectual game?

Context: It’s a two player fighting game, there is the player script and AI script, they share a string variable who is only writted by player script when he die.

What’s happening: If i try to call a condition on the IA script cheking if there is text in it and launch the game, the player instantly kill the AI with one punch, without even pressing one key. Pretty funny when it happen.

So… how did the code could be interpreted by the computer to act that weird?

This is not a bug I try to solve here, just something i’d like to share for making fun of our so logical and also stupid, loved machine. Share your thought about it, seriously, or not… and feel free to share weird situation you got while coding to!

In answer to your thread title: Yes, I am a mastermind.

2 Likes

I’m not :c

I would love to put “mastermind” title on my resume, but I have no proof of it currently. Can you send me a test to determine if I am a mastermind or not?

It’s pretty obvious what is happening. I don’t even need to see the code, or really even have a detailed explanation of the problem. Check line 31 again, then review lines 13-17. The answer should jump out at you immediately.

1 Like

yes.

Yes. Are you not amazed enough I could affect your fight game prior to this thread even appearing?

1 Like