April 24, 2018
You can find a possible solution to project #5 here: Project5. Compare those solutions with the one you obtained, and make sure you understand them. If you feel comfortable with them, have another look at the additional algorithms you were asked to think about.
Start by downloading an updated version of the Game
class: Game_V3.
In this project, the Game
class stayed the same (there were just two getters added, look for /* New code below, what is above is unchanged.*/
). The main difference is in the Program
class: it is now manipulating an array of Game
objects. Make sure you understand this code, and how arrays of objects are created.
The (ambitious) challenge remains the same as during lab 25: can you compute the average of each player? Try to tackle the problems in smaller chunks: