Alice Community  

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

Reply
 
Thread Tools Display Modes
Lab 4 Help with score part of assignment
Old
Mauricio
Member
 
Status: Offline
Posts: 14
Join Date: Aug 2016
Default Lab 4 Help with score part of assignment - 11-14-2016, 09:37 PM

I am at a total and complete loss as far as the scoring part of Lab 4, I have an if/Else statement inside a While loop with the instructions for the rings to fall and a variable that counts. The program counts not in order and with out catching the rings, however I cannot seem to get the program to only count when I try to catch the ring. I am not looking for the solution, just perhaps so direction perhaps some thoughts as far as how to go about get the count to work. The two variables that I have for the score are number variables one that is called scoredRings and missedRings. Any help that anyone can provide would be very much appreciated. Thank you.
   
Reply With Quote
Ring score
Old
chickentree
Super Moderator
 
Status: Offline
Posts: 211
Join Date: Dec 2012
Location: Frosno, Ca
Default Ring score - 11-14-2016, 10:08 PM

Quote:
Originally Posted by Mauricio View Post
I am at a total and complete loss as far as the scoring part of Lab 4, I have an if/Else statement inside a While loop with the instructions for the rings to fall and a variable that counts. The program counts not in order and with out catching the rings, however I cannot seem to get the program to only count when I try to catch the ring. I am not looking for the solution, just perhaps so direction perhaps some thoughts as far as how to go about get the count to work. The two variables that I have for the score are number variables one that is called scoredRings and missedRings. Any help that anyone can provide would be very much appreciated. Thank you.
1) Please don't double post.
2) If I understand what you are looking for the best way I can think of is to set up events that will be triggered when a ring is either caught or missed and update the appropriate count.
Another way might be to add variables to each ring to keep track of whether the ring was caught or missed and check the status. Lists would be good for this.

Mark


Mark Henwood
mhenwood@ieee.org
   
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.