Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Turing game help. How to store answers from mouse click
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
saraassim98




PostPosted: Sun Jan 19, 2014 2:20 pm   Post subject: Turing game help. How to store answers from mouse click

My game is exactly like 4 pics 1 word. im making a game where you have to guess the word that goes with the two pictures. You get twelve letters to pick from. when you pick a letter it is put in a box as letter you picked to solve the word. I How can i store the letters that the user picked and make sure that they dont go in the same box.
does any one know how to do this???
Sponsor
Sponsor
Sponsor
sponsor
Raknarg




PostPosted: Sun Jan 19, 2014 2:39 pm   Post subject: RE:Turing game help. How to store answers from mouse click

Just use a string. Start with an empty string:

var answer : string := ""

If they pick the letter a, add that to the string.

answer += "a"

If they want to erase the answer:

answer := ""
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: