Alice Community  

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

Thread Tools Display Modes
Alice School Exam 4
Posts: n/a
Exclamation Alice School Exam 4 - 06-03-2008, 12:07 PM

I'll translate it from dutch, exactly as it is written in the question of my exam.

Step 8: end of the game

When all objects are gone, and the player is still there, then the game is ended and the player won. Make here use of 3 global variables from the type "boolean" wich indicate that an object (cone) is gone or that it isn't gone. You could name these variables like this:- Object1exists
- Object2exists
- Object3exists
At the beginning of the game the 3 objects still exist. So the beginvalue of these objects is: (I have to fill it in on my exam)
When an object dissapeares, the value of the variable of each object has to change in: (I have to fill it in on my exam)

Now make sure (with an event) that the whole time thanks to a function "checkIfThereAreAnyObjectsLeft" it is checked that there are any objects left. If there aren't any objects left, the player won. The end of the game is reached and again the score and the name of the player is showed.

PLEASE HELP ME!!! I know it's a big job but please!
Reply With Quote
Posts: n/a
Default 06-14-2008, 01:05 PM

i feel like helping you would be cheating
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.