# 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.
6. **Snake Game**: A simple terminal-based version of the classic Snake game.
7. **Tic-Tac-Toe**: Play Tic-Tac-Toe (Noughts and Crosses) against the computer or another player.
## Installation
You can install the module via `pip`:
`pip install text-games`
Usage
Each game is implemented in its own file within the `text_games` folder. You can import and use them individually as needed. Here's how you can play each game:
Hangman
`from text_games.hangman import run_hangman`
`run_hangman()`
Number Gusser
`from text_games.number_guesser import run_number_guesser`
`run_number_guesser()`
Rock Paper Scissor
`from text_games.rock_paper_scissor import run_rock_paper_scissors`
`run_rock_paper_scissors()`
Riddle game
`from text_games.riddle_game import run_riddle_game`
`run_riddle_game()`
Word Scrambler
`from text_games.word_scrambler import run_word_scrambler`
`run_word_scrambler()`
Snake Game
`from text_games.snake_game import run_snake_game`
`run_snake_game()`
Tic Tac Toe
`from text_games.tic_tac_toe import run_tic_tac_toe`
`run_tic_tac_toe()`
Raw data
{
"_id": null,
"home_page": "https://github.com/Sriganth-byte/Python_Text_Games",
"name": "text-games",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "games text-based python snake hangman tic-tac-toe puzzles",
"author": "Sriganth",
"author_email": "sriganthperiyannan@example.com",
"download_url": "https://files.pythonhosted.org/packages/7b/cc/51c1887692c8717587118db3d1a1ef211104b270e1e61d47ac03b4426926/text_games-0.2.3.tar.gz",
"platform": null,
"description": "# Text Games\r\n\r\n`text_games` is a Python module that offers a collection of simple, text-based games for fun and learning.\r\n\r\n## Features\r\n\r\nThe module includes the following games:\r\n1. **Hangman**: Guess the hidden word letter by letter.\r\n2. **Number Guesser**: Guess a random number within a certain range.\r\n3. **Rock-Paper-Scissors**: Play against the computer.\r\n4. **Riddle Game**: Solve riddles within a limited number of attempts.\r\n5. **Word Scramble**: Unscramble the shuffled letters to form a word.\r\n6. **Snake Game**: A simple terminal-based version of the classic Snake game.\r\n7. **Tic-Tac-Toe**: Play Tic-Tac-Toe (Noughts and Crosses) against the computer or another player.\r\n\r\n## Installation\r\n\r\nYou can install the module via `pip`:\r\n\r\n`pip install text-games`\r\n\r\nUsage\r\nEach game is implemented in its own file within the `text_games` folder. You can import and use them individually as needed. Here's how you can play each game:\r\n\r\nHangman\r\n`from text_games.hangman import run_hangman`\r\n`run_hangman()`\r\n\r\nNumber Gusser\r\n`from text_games.number_guesser import run_number_guesser`\r\n`run_number_guesser()`\r\n\r\nRock Paper Scissor\r\n`from text_games.rock_paper_scissor import run_rock_paper_scissors`\r\n`run_rock_paper_scissors()`\r\n\r\nRiddle game\r\n`from text_games.riddle_game import run_riddle_game`\r\n`run_riddle_game()`\r\n\r\nWord Scrambler\r\n`from text_games.word_scrambler import run_word_scrambler`\r\n`run_word_scrambler()`\r\n\r\nSnake Game\r\n`from text_games.snake_game import run_snake_game`\r\n`run_snake_game()`\r\n\r\nTic Tac Toe\r\n`from text_games.tic_tac_toe import run_tic_tac_toe`\r\n`run_tic_tac_toe()`\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A collection of text-based games in Python.",
"version": "0.2.3",
"project_urls": {
"Bug Tracker": "https://github.com/Sriganth-byte/Python_Text_Games/issues",
"Homepage": "https://github.com/Sriganth-byte/Python_Text_Games",
"Source Code": "https://github.com/Sriganth-byte/Python_Text_Games"
},
"split_keywords": [
"games",
"text-based",
"python",
"snake",
"hangman",
"tic-tac-toe",
"puzzles"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6f4989c8c6d381564cd0f489915e3335cb81b41328c0601cb95c13f6758520ed",
"md5": "7bfab6ce440aaf0b558bf140c9921246",
"sha256": "1a8db0927adb581ff93061800690cb1893e35ae02564058eed4df2e5972bdd3c"
},
"downloads": -1,
"filename": "text_games-0.2.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7bfab6ce440aaf0b558bf140c9921246",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 7567,
"upload_time": "2024-12-26T12:41:55",
"upload_time_iso_8601": "2024-12-26T12:41:55.940935Z",
"url": "https://files.pythonhosted.org/packages/6f/49/89c8c6d381564cd0f489915e3335cb81b41328c0601cb95c13f6758520ed/text_games-0.2.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7bcc51c1887692c8717587118db3d1a1ef211104b270e1e61d47ac03b4426926",
"md5": "fc5b55fa1372cf6b58a5b54241abe529",
"sha256": "c17e856b9c7e52f7bbf76f9105f9d378cfb721e722574fa3a614fe7b745452be"
},
"downloads": -1,
"filename": "text_games-0.2.3.tar.gz",
"has_sig": false,
"md5_digest": "fc5b55fa1372cf6b58a5b54241abe529",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 6885,
"upload_time": "2024-12-26T12:42:00",
"upload_time_iso_8601": "2024-12-26T12:42:00.896520Z",
"url": "https://files.pythonhosted.org/packages/7b/cc/51c1887692c8717587118db3d1a1ef211104b270e1e61d47ac03b4426926/text_games-0.2.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-26 12:42:00",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Sriganth-byte",
"github_project": "Python_Text_Games",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "text-games"
}