Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Buoy List, Boooyyyyy.
Junior Member
Status: Offline
Posts: 5
Join Date: Dec 2013
Location: Louisiana
Default Buoy List, Boooyyyyy. - 01-11-2014, 07:20 PM

"To determine when the game is over, you need a way to know when all the buoys have been picked up. To track the buoys that have been picked up, create a second world-level list, this one named picked UpBuoys and leave it empty. In the pickUpBuoy method, create a statement that adds the picked up buoy to the pickedUpBuoys list. Create a world-level method named checkIfGameIsOver and call it every time a buoy is picked up. When the size of pickedUpBuoys is equal to seven, the player wins the game and a 3D text object is used to display "You did it!".

Taken from Learning to program with Alice, 3rd Ed. by Wanda P Dann, Stephen Cooper, and Randy Pausch.

So, here's the issue. I've completed the majority of the assignment. Now comes the tricky part, I need to be able to add a +1, to the pickedUpBuoys list whenever I pick up a buoy, and this is driving me insane. Where is my program going wrong, I'd like some perspective, not a laid out list of what to do.
Attached Files
File Type: a2w pick up all buoys.a2w (838.7 KB, 72 views)
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.