Alice Community  

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

Reply
 
Thread Tools Display Modes
Old
claymca
Guest
 
Status:
Posts: n/a
Default 12-11-2009, 08:36 PM

correct. I have the cubes set up as variables(world) and could not get the number variable to track the list. I have posted the game.
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 12-12-2009, 12:07 AM

If the only way the number of cubes changes is when the players take cubes away, then you must have some method which lets both the player and the computer (or second player) take cubes away, right? So you must have a method for this, some part of your Alice world allows this. In this method, you can have the number of cubes taken away be subtracted from the cube tracking variable so that the number variable is always equal to the number of cubes on the board. Then , with the addition of a "when a variable changes" event which tracks when that variable changes and checks to see if it's < 4 each time (and shows the 3d text if it is), you should be fine.


(')>
   
Reply With Quote
Help! Project due at 1:00 PM!
Old
claymca
Guest
 
Status:
Posts: n/a
Default Help! Project due at 1:00 PM! - 12-14-2009, 02:45 AM

after some trial and error I now need the text to announce which player is the winner specifically. please see program attached
Attached Files
File Type: a2w p3mca.a2w (1.34 MB, 1 views)
   
Reply With Quote
Reply

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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.