A collection of text-based games in Python.
Project description
Text Games
`text_games is a Python module that offers a collection of simple, text-based games for fun and learning.
Features
The module includes the following games:
- Hangman: Guess the hidden word letter by letter.
- Number Guesser: Guess a random number within a certain range.
- Rock-Paper-Scissors: Play against the computer.
- Riddle Game: Solve riddles within a limited number of attempts.
- Word Scramble: Unscramble the shuffled letters to form a word.
Installation
You can install the module via pip:
pip install text-games
USAGE
from text_games import games
# Play Hangman
games.hangman()
# Play Number Guesser
games.number_guesser()
# Play Rock-Paper-Scissors
games.rock_paper_scissors()
# Play Riddle Game
games.riddle_game()
# Play Word Scramble
games.word_scramble()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
text_games-0.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file text_games-0.1.0.tar.gz.
File metadata
- Download URL: text_games-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93c735edbdfa919fcce04b4daebbafb5b100c2dba8b9220dbdb72fd27eb6f6c9
|
|
| MD5 |
a610e1a9708f8ebc5a7f5fbd639f8a07
|
|
| BLAKE2b-256 |
ee196d4790b857ea79def4775f9a464c9e8e133a9b2481d13747333269dda67b
|
File details
Details for the file text_games-0.1.0-py3-none-any.whl.
File metadata
- Download URL: text_games-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ece4172ce348965be58d6a6635e4b676abc664269489ed2b9db12e31a297c82c
|
|
| MD5 |
908ae572a9271d0b3dfcbbb143a87278
|
|
| BLAKE2b-256 |
5ebf7407141e23c8454ba0f03968c0df546a405192907791ff1d53a76dfd3521
|