made with Python3
executable made with pyinstaller
- p: [p]lay the game.
- r: read the game's [r]ule/help.
- a: read [a]bout page.
- q: to [q]uit.
- easy: number ranges from 1 to 10. you have 5 chances to guess the number.
- medium: number ranges from 1 to 100. you have 7 chances to guess the number.
- hard: number ranges from -500 to 500. you have 10 chances to guess the number.
the explanation that stuck with me was the one from of the "finding David" part of CS50 2020 Lecture 0.
the basic idea is to target the number in the middle of the range.
ie: if it's from 1-10, you should start with 5. see if it's a higher or lower number than the correct number, then you repeat the process until you win.