Lecture : clarity is worth fighting for

Hi there gamdev community. I’ve facing a certain issue in understanding how visual studio processes the ‘instructions’ given by the code.

the code i’ve written was giving me a problem when i was running it.
It went something like:

whats your guess?
donkey
whats your guess?
donkey
your guess was: donkey
whats your guess?
donkey
whats your guess?
donkey
your guess was: donkey.

So what im trying to say is that it works correctly on alternative tries.
However if i were to remove GetGuess(); on line 38. everything works perfectly fine.
However it just bothers me that the Getguess on line 38 is nt require because the thought im having right now is that it has to process Getguess first before it processes giving back the guess.

Thank you

Privacy & Terms