Gamma God
06-09-2009, 05:23 PM
how do i ask the user of my alice world for their input like for Hangman like guessing?:confused:
ttkrakus
06-10-2009, 11:34 PM
Please find attached an example that uses the "ask user for string" function to request text data from the person executing the Alice world.
The animation shows Penguin getting closer to the camera and asking for a password (which is penguin). Whatever the user enters it is stored in a world variable called world.answer. A while loop is then used to validate this password (basically, if the password entered is not penguin, then it asks again for a password).
Once the right information is provided, the penguin turns and walks away.