A Python game that generates numbers 1-100 in a random, non-repeating sequence using either a GUI button (tkinter) or command-line input, cycling through all numbers before restarting with a new random order.
A Python game that generates numbers from 1 to 100 in a random, non-repeating sequence. Available in two versions: GUI (tkinter) and command-line.
- Generates numbers 1-100 in a random order
- Ensures all numbers are used before repeating
- Two interfaces:
- GUI version: Click a button to see the next number
- CLI version: Enter 'n' for next number, 'q' to quit
- Python 3.x
- tkinter (usually included with Python) for GUI version
- Clone the repository
- Run either:
python number_game_gui.pyfor GUI versionpython number_game_cli.pyfor command-line version
- GUI: Click "Generate Number" button
- CLI: Type 'n' for next number, 'q' to exit
- Sequence resets with a new random order after all 100 numbers are used
number_game_gui.py: GUI version with button interfacenumber_game_cli.py: Command-line version with text input