Hello all, its wonderful day.
I am trying to make a simple game as following:
1.) On start of layout, generate a random number and store it in a global variable
2.) Show that number and then asked the user to say the number in Spanish
3.) I want to validate they said the number correctly (WHATS THE BEST WAY TO DO THIS?)
My thought here was to somehow store all the words which I would use in the game in a table or database of sorts and then check against that value but not sure how to do that.
I also thought about storing the correct values as global variables but that sounds really inefficient
4.) Once they get the number correct, generate a new number and repeat (whats the best way to do this?)
I tried to create a global variable which checked whether the answer was correct but then not sure how to loop or increment in an event driven way.
I am grateful for the help!!!
Thank you