Question:
So I have a game where you have to guess a number the code picks at random (I was looking at project ideas), before taking a look at the answer I want to know if there is a more efficient to store the if’s? I do think there might be a way to merge them into one single block and delete the others.Answer:
Just ask for the guess inside the loop. You can use afor
loop to iterate 4 times.If you have better answer, please add a comment about this, thank you!