Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
since author is no longer active, resolving
Probably bcause it's easier to generate a a random sequence of points across games than a single full game. (Original author is inactive.)
Why allow more points to be scored after a game is over? The title talks about a the tennis game, not some sequence of points across games
Fixed.
I've added 3 random tests, any feedback will be appreciated
.
.
I'm new on code wars, can you help me how to make random tests?
Thank you, i've added the cases "Anna ADVANTAGE", "Anna WINS", "Bob 30, Anna 0
For the 0a, i've said in description that array wins is never empty
A big thank to you, i'll correct it
Initial code still contains the
two_oldest_age
comments; they should be removed.This is not tested thoroughly; the existing tests only contains test cases where Bob's score > Anna's score.
Similarly,
Anna ADVANTAGE
,Anna WINS
,Bob 30, Anna 0
and0a
are not tested.Needs random tests ;-)