Alice Community

Alice Community (
-   How do I...? (
-   -   Yes/No Function Issues (

yammie1122 04-25-2012 11: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 09: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 01:48 PM


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 03:33 PM.

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