grantjenks / free-python-games

Free Python Games

Home Page:http://www.grantjenks.com/docs/freegames/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[guess.py] - add and display counter to guesses upon game ending

drocpdp opened this issue · comments

When user completes game successfully, display message displaying number of guesses it took to complete.
Include tests.

Message will be:
(if guesses > 1)
Congratulations! You guessed the right answer:[value]
It took you [number of guesses] guesses!

(if guesses == 1)
Congratulations! You guessed the right answer:[value]
It took you 1 guess!

If this issue is feasible, could you kindly assign to me? :-)

Printing the number of guesses is already one of the suggested exercises at the top.