tk_gtn.py

tk_gtn.py is a graphical version of Guess the Number, with a bar indicating the range of numbers remaining and another bar graph color coded to show the number of guesses left.

I like this layout much better than my earlier efforts since I finally figured out how to move the Canvas around (compare the spacing in this one to the earlier ones).  It’s awkward but it works. In this version you won’t win every time because I only give 6 or 9 guesses.  So often it comes down to 50/50 on the final guess, making it a better game. There is also some error trapping for invalid data and for out of range guesses, which were really fouling up my bar graph before I fixed it.