Computer Science Canada Turing Concentration Game Help |
Author: | canadianeagle [ Tue Jan 21, 2014 7:59 pm ] | ||
Post subject: | Turing Concentration Game Help | ||
wow <Trying to make Concentration game in turing> wow <Don't know how to write an if statement for this situation. There are 16 different buttons and I need help figuring out : if one button is clicked, then another button is clicked, how do i check if the words flipped over are equal?> Describe what you have tried to solve this problem <> Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) <>
Please specify what version of Turing you are using <Turing 4.1.1> |
Author: | Zren [ Tue Jan 21, 2014 10:37 pm ] | ||||
Post subject: | RE:Turing Concentration Game Help | ||||
Quote: how do i check if the words flipped over are equal?
Equal ... what? equal colour? Turing's GUI module doesn't have a getter function for that. http://compsci.ca/holtsoft/doc/gui.html You could, however, store that data elsewhere.
EDIT: And because you seem like the type to copy paste functions. I'll give you a tip. Since you're going to be having a lot of buttons that do almost the same thing, try using another procedure with a parameter.
|