Difference between revisions of "CSC111 Final Exam 2015"
Line 79: | Line 79: | ||
==Implementation== | ==Implementation== | ||
<br /> | <br /> | ||
+ | * Call your program '''final2.py''' | ||
* You '''must''' use objects to define the cars. | * You '''must''' use objects to define the cars. | ||
* The number of cars used by the program is fixed and does not grow as the game evolves. In the video, the number of cars is 3, but you can use more. When a car disappears on one end of the screen it reappears on the other side, after a short delay. The delay is up to you. | * The number of cars used by the program is fixed and does not grow as the game evolves. In the video, the number of cars is 3, but you can use more. When a car disappears on one end of the screen it reappears on the other side, after a short delay. The delay is up to you. | ||
Line 84: | Line 85: | ||
* The frog "dies," or loses a ''life point'' when it is run over by a car. You are free to determine the conditions for which the program will determine that the car is running over the frog. In the video the top or bottom of the frog can overlap slightly a car without triggering the program to detect an overlap. There is flexibility. | * The frog "dies," or loses a ''life point'' when it is run over by a car. You are free to determine the conditions for which the program will determine that the car is running over the frog. In the video the top or bottom of the frog can overlap slightly a car without triggering the program to detect an overlap. There is flexibility. | ||
* The program automatically brings the frog back down, to its initial position, when a car runs over it, or when the frog has fully crossed the road. | * The program automatically brings the frog back down, to its initial position, when a car runs over it, or when the frog has fully crossed the road. | ||
− | + | <br /> | |
− | + | ==Grading== | |
− | + | <br /> | |
+ | * Assuming that your program is well documented, and nicely organized, the following features will be worth various number of points. A grade of 100 will be given to a will documented and organized program that behaves similarly to the game illustrated in the YouTube video, but with two lanes of cars, one lane going left to right, one going right to left. The number of cars must remain constant, and cars disappearing on one end are made to reappear on the other side. | ||
+ | * Banner working correctly: 10 points | ||
+ | * Cars moving off the graphics window and reappearing on the other side: 10 points. | ||
+ | * Game stopping when the number of life points reaches 0: 10 points | ||
+ | * Frog and car intersection works well: 10 points | ||
+ | * Frog moved back to original position when run over, or when fully crossed: 10 points | ||
+ | * Frog moves up and down on mouse clicks: 10 points. | ||
+ | <br /> | ||
+ | ==Submission== | ||
+ | <br /> | ||
+ | * Submit your program in the Final Problem 2 area on Moodle. | ||