Two Games: - Hunt: Find the ball that weighs different - Sort: Organize the balls from lightest to heaviest How to Play: Hunt - Click Green Flag to start - Slide the BallCount to change number of options to weigh - Click Hunt - Move balls to the two scale pans. - Click on Girl to weigh the items. - Repeat: move balls and weigh, as needed - Found the ball that's different? Place it on the "Light" or "Heavy" button. - Click "Check" to see if you are right! How to Play: Sort - Click Green Flag to start - Slide the BallCount to change number of options to weigh - Click Sort - Place balls on scales in any pattern desired. - Click on Girl to weigh them. - Place the balls horizontally in order from light to heavy (anywhere on screen...left to right is what matters) - Click Check to see if you are right Notice how many times you use the scale by looking at the "Scale Used" counter.
Thanks to original author. Code was modified to add the "Sort" game and clean up. Variables all converted to English. Written for a HS CS intro class to study complexity of different sort algorithms.