Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Yes/No Function Issues (http://www.alice.org/community/showthread.php?t=8418)

yammie1122 04-25-2012 10:58 PM

Yes/No Function Issues
 
I have programmed a Monty game with a car as a prize. After the user selects a door, I have it to program to open one of the other doors, which has a monkey behind it, then ask the user whether they want to switch their decision or not.

The problem that I'm running into is how to program Alice, if the user selects Yes to do one thing and if the user selects No to do another thing. I figured I would use If/Else statement but can't figure out to say if yes was selected or if no was selected.

Right now it doesn't matter if you select yes or no, the program will open the door originally selected.

Thanks in advance.

dakota95 04-26-2012 08:13 AM

1 Attachment(s)
Here is an example. Go to the double ferris wheel thing and it will ask you if you want to get on or not. The ferris wheel is the only ride that works because I never finished it

yammie1122 04-26-2012 12:48 PM

Thanks.

After looking at the coding in your problem and some Google searches I was able to figure it out.


All times are GMT -5. The time now is 10:21 AM.

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.