{"id":26760331,"url":"https://github.com/hsur05/python_guessing_game","last_synced_at":"2025-07-27T11:37:22.302Z","repository":{"id":278292203,"uuid":"934510611","full_name":"hsur05/python_guessing_game","owner":"hsur05","description":"Python Hangman game for CS50 class","archived":false,"fork":false,"pushed_at":"2025-03-21T03:42:52.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T17:35:42.800Z","etag":null,"topics":["debugging-tool","if","loops","python"],"latest_commit_sha":null,"homepage":"","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/hsur05.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":"2025-02-18T00:37:08.000Z","updated_at":"2025-03-21T03:42:55.000Z","dependencies_parsed_at":"2025-02-19T02:23:29.533Z","dependency_job_id":"daf1c9e0-d02b-4465-be0b-dc4e2438d6d2","html_url":"https://github.com/hsur05/python_guessing_game","commit_stats":null,"previous_names":["hsur05/cs50p_project","hsur05/python_guessing_game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hsur05/python_guessing_game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsur05%2Fpython_guessing_game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsur05%2Fpython_guessing_game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsur05%2Fpython_guessing_game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsur05%2Fpython_guessing_game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hsur05","download_url":"https://codeload.github.com/hsur05/python_guessing_game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsur05%2Fpython_guessing_game/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262774188,"owners_count":23362269,"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":["debugging-tool","if","loops","python"],"created_at":"2025-03-28T17:31:36.508Z","updated_at":"2025-06-30T12:35:14.395Z","avatar_url":"https://github.com/hsur05.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Word Guessing Game\n\nWelcome to my hangman game!- a simple command-line word guessing game built with Python. Players have 5 attempts to guess a randomly selected word by suggesting letters one at a time.\n\n## How to Play\n\n1. The game randomly selects a word from its vocabulary\n2. You get 5 attempts to guess the word\n3. Enter one letter at a time\n4. If your guess is correct, all instances of that letter are revealed\n5. If your guess is incorrect, you lose an attempt\n6. You win by correctly guessing all letters in the word\n7. You lose if you run out of attempts\n\n## Features\n\n- Random word selection from a predefined vocabulary\n- Input validation for letter guesses\n- Tracking of previously guessed letters\n- Visual representation of word progress using underscores\n- Game ends when the player wins or runs out of attempts\n\n## Requirements\n\n- Python 3.x\n\n## Installation\n\n1. Clone this repository or download the `project_final.py` file\n2. No additional dependencies are required\n\n## Usage\n\nRun the game using Python:\n\n```bash\npython project_final.py\n```\n\n## Game Mechanics\n\n- Words are randomly selected from a predefined list\n- Each letter is represented by an underscore \"_\"\n- Correctly guessed letters replace their corresponding underscores\n- The game tracks letters you've already guessed\n- You cannot guess the same letter twice\n\n## Word List\n\nThe game includes the following words: (You can add as many as you like!)\n- test\n- obfuscate\n- funny\n- computers\n- coding\n- python\n- matrix\n- programming\n- iphone\n- macbook\n- screen\n\n## Example Gameplay\n\n```\n_ _ _ _ _ _\nEnter an alphabet: a\nletters used so far: ['a']\nThis letter is not in the word! You have 4 attempts left.\nEnter an alphabet: p\nletters used so far: ['a', 'p']\np _ _ _ _ _\nEnter an alphabet: y\nletters used so far: ['a', 'p', 'y']\np y _ _ _ _\n...\nCongratulations! You got the word!\n```\n\n## Customization\n\nTo add more words to the game, edit the `vocab` list in the `select_vocab()` function.\n\n## License\n\nThis project is available for open use.\n\n## Author\n\nRoy Hsu\n\n## Acknowledgments\n\nInspired by the classic Hangman game\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsur05%2Fpython_guessing_game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhsur05%2Fpython_guessing_game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsur05%2Fpython_guessing_game/lists"}