Closed baronmog closed 14 years ago
Huh. The diff doesn't really display very well.
I've fixed the formatting of the diff by prepending 4 spaces per line... will look at the actual patch soon
It turns out the program was correct, just the terminology was confusing.
I've renamed "games" to "matches" throughout the first chapter, and hope it's less surprising now.
Running the example code with the specified data produces the following output:
Ana has won 2 games and 8 sets Dave has won 2 games and 6 sets Charlie has won 1 games and 4 sets Beth has won 1 games and 4 sets
It seems that the values for won games and sets are being swapped. The following changes appear to fix the issue.