{"id":28100449,"url":"https://github.com/parisa-singh/hangman","last_synced_at":"2025-05-13T18:34:56.746Z","repository":{"id":263848971,"uuid":"891585766","full_name":"parisa-singh/hangman","owner":"parisa-singh","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-20T15:44:10.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-20T16:38:06.875Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parisa-singh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-20T15:40:02.000Z","updated_at":"2024-11-20T15:44:14.000Z","dependencies_parsed_at":"2024-11-20T16:38:13.406Z","dependency_job_id":"eb9f8235-6ccb-4f80-b68b-563f06817efc","html_url":"https://github.com/parisa-singh/hangman","commit_stats":null,"previous_names":["parisa-singh/hangman"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisa-singh%2Fhangman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisa-singh%2Fhangman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisa-singh%2Fhangman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisa-singh%2Fhangman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parisa-singh","download_url":"https://codeload.github.com/parisa-singh/hangman/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254003710,"owners_count":21997928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-05-13T18:34:56.299Z","updated_at":"2025-05-13T18:34:56.737Z","avatar_url":"https://github.com/parisa-singh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hangman Game\n\n## Overview\n\nThis is a Python implementation of the classic **Hangman** game, where the player tries to guess a randomly selected phrase, one letter at a time. The goal is to guess the phrase before the gallows are fully drawn (6 incorrect guesses).\n\n## Features\n- Random phrase selection from an external file (`phrases.txt`).\n- Interactive gameplay with input validation.\n- Displays the hangman figure as incorrect guesses are made.\n- Tracks guessed letters and reveals correctly guessed letters in the phrase.\n- Supports case-insensitive guessing.\n\n## How to Play\n\n1. When you start the game, you'll see a partially drawn gallows and the phrase represented as underscores (`_`), hiding unguessed letters.\n2. Guess one letter at a time by typing it in when prompted.\n   - Correct guesses reveal the letter in the phrase.\n   - Incorrect guesses add parts to the gallows.\n3. The game ends when:\n   - You guess the full phrase correctly, or\n   - You make 6 incorrect guesses, completing the gallows.\n\n## Requirements\n\n- Python 3.x\n\n3. **Run the Game**  \n   - Open a terminal or command prompt.\n   - Navigate to the directory containing the script.\n   - Execute the script:\n     ```\n     python hangman.py\n     ```\n\n## Example Gameplay\n\n```\n*** Welcome to Hangman ***\n+---+\n|   |\n|   \n|   \n|    \n|\n|_____\nIncorrect guesses made: 0/6\n\n____ __ _______\nLetters guessed: []\n\nPlease enter a letter: A\n...\n```\n\n---\n\n## Error Handling\n\n- If `phrases.txt` is missing, a default phrase will be used:  \n  `\"When you gaze long into the abyss, the abyss gazes also into you\"`\n- If `phrases.txt` is empty, the game will notify the user and terminate.\n\n## Contributions\n\nFeel free to submit issues or improvements to the code via pull requests.\n\n## License\n\nThis project is open-source and available under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparisa-singh%2Fhangman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparisa-singh%2Fhangman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparisa-singh%2Fhangman/lists"}