View Single Post
Old Nov 16th, 2006, 8:38 PM   #21
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 852
Rep Power: 4 The Dark is on a distinguished road
Its probably easiest to do it in main. You already have access to the rounds count and the last result. You would just need to have variables for the minimum guesses, maximum guesses and total guesses. Then just divide the total guesses by the number of rounds for the average.

If you want to do it in the correct() function, then you will have to store the data in global variables, or pass them in through the playOneRound function.
The Dark is offline   Reply With Quote