Skip to main content

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:

  1. Hangman: Guess the hidden word letter by letter.
  2. Number Guesser: Guess a random number within a certain range.
  3. Rock-Paper-Scissors: Play against the computer.
  4. Riddle Game: Solve riddles within a limited number of attempts.
  5. 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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

text_games-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for text_games-0.1.0.tar.gz
Algorithm Hash digest
SHA256 93c735edbdfa919fcce04b4daebbafb5b100c2dba8b9220dbdb72fd27eb6f6c9
MD5 a610e1a9708f8ebc5a7f5fbd639f8a07
BLAKE2b-256 ee196d4790b857ea79def4775f9a464c9e8e133a9b2481d13747333269dda67b

See more details on using hashes here.

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

Hashes for text_games-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ece4172ce348965be58d6a6635e4b676abc664269489ed2b9db12e31a297c82c
MD5 908ae572a9271d0b3dfcbbb143a87278
BLAKE2b-256 5ebf7407141e23c8454ba0f03968c0df546a405192907791ff1d53a76dfd3521

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page