0

How can I check the button text?

The point of the game is to switch the letters until it arranges a single word, in this case “sailboat”. How can I check to see if the text equals the right sequence? https://code.sololearn.com/WTtvrA1WW3zM/?ref=app

12th Jun 2018, 9:10 PM
Tence Sailor
Tence Sailor - avatar
3 Réponses
+ 1
flag?
12th Jun 2018, 10:14 PM
Tence Sailor
Tence Sailor - avatar
0
There is more way to do this.. First one that i think its store a flag that describe if n-th button contain right text. Then you have to store an array of this flag and loop on it every time that an button is pressed and if all flag are true, then all text is correct
12th Jun 2018, 9:41 PM
KrOW
KrOW - avatar