Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Yes/No Function Issues
Junior Member
Status: Offline
Posts: 11
Join Date: Mar 2012
Default Yes/No Function Issues - 04-25-2012, 11:58 PM

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.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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