{"id":28100451,"url":"https://github.com/parisa-singh/wordle","last_synced_at":"2026-08-03T03:31:12.514Z","repository":{"id":263853607,"uuid":"891596715","full_name":"parisa-singh/wordle","owner":"parisa-singh","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-20T16:06:39.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T06:05:43.570Z","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-20T16:01:12.000Z","updated_at":"2025-02-14T03:19:37.000Z","dependencies_parsed_at":"2024-11-20T17:18:48.631Z","dependency_job_id":"e98ccf36-d620-425a-a756-8b5427a28817","html_url":"https://github.com/parisa-singh/wordle","commit_stats":null,"previous_names":["parisa-singh/wordle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/parisa-singh/wordle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisa-singh%2Fwordle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisa-singh%2Fwordle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisa-singh%2Fwordle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisa-singh%2Fwordle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parisa-singh","download_url":"https://codeload.github.com/parisa-singh/wordle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parisa-singh%2Fwordle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":36216798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-08-03T02:00:06.975Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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:57.070Z","updated_at":"2026-08-03T03:31:12.498Z","avatar_url":"https://github.com/parisa-singh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Word Guessing Game\n\n## Overview\n\nThis Python program is a simple word-guessing game where the player attempts to guess a randomly selected word from a predefined list. The game provides feedback on each guess, indicating whether each letter in the guess matches the solution in the correct position.\n\n## Features\n\n1. **Interactive Gameplay**  \n   - Players are prompted to guess a 5-letter word.\n   - Feedback is given for each guess with visual indicators.\n2. **Feedback System**  \n   - **🟢**: Correct letter in the correct position.\n   - **🔴**: Incorrect letter or wrong position.\n3. **Random Word Selection**  \n   - The solution word is randomly chosen from a predefined list of common words.\n4. **Victory Condition**  \n   - If the player guesses the word correctly, the game ends with a congratulatory message.\n5. **Attempts Limit**  \n   - Players have up to 6 attempts to guess the word. If unsuccessful, the solution is revealed.\n     \n## Requirements\n\n- Python 3.x\n\n## How to Play\n\n1. **Run the Game**  \n   Execute the script in a terminal or an IDE.\n\n2. **Guess the Word**  \n   - You will be prompted to guess a 5-letter word.\n   - Input your guess and press **Enter**.\n\n3. **Interpret the Feedback**  \n   - Each letter in your guess will receive feedback:\n     - **🟢**: Correct letter in the correct position.\n     - **🔴**: Incorrect letter or wrong position.\n\n4. **Win or Lose**  \n   - If you guess the word correctly, you win!\n   - If you fail after 6 attempts, the solution is revealed.\n\n## Functions Explained\n\n### **Core Functions**\n\n1. **`get_guess()`**  \n   Prompts the user to input a guess and converts it to uppercase for uniformity.\n\n2. **`print_word(word)`**  \n   Displays the guessed word with each letter separated by a space.\n\n3. **`exact_match_compare(solution, guess)`**  \n   Compares the player's guess with the solution and returns a string of indicators:\n   - **🟢** for correct matches.\n   - **🔴** for incorrect matches.\n\n4. **`one_turn(solution)`**  \n   Executes one turn of the game:\n   - Prompts the user for a guess.\n   - Displays the guess and feedback.\n   - Checks if the guess matches the solution and ends the game if correct.\n\n5. **`make_solution()`**  \n   Randomly selects a word from a predefined list of 10 words.\n\n## Example Gameplay\n\n### Start of Game\n```\nWhat word is this?: FIRST\nF I R S T\n🔴🔴🔴🔴🟢\n```\n\n### After Multiple Guesses\n```\nWhat word is this?: OTHER\nO T H E R\n🟢🟢🟢🔴🔴\n```\n\n### Win Scenario\n```\nWhat word is this?: WHICH\nW H I C H\n🟢🟢🟢🟢🟢\nCongratulations!\n```\n\n### Loss Scenario\n```\nWord was \"AFTER\", better luck next time.\n```\n\n## Customization\n\n1. **Word List**  \n   Modify the list in `make_solution()` to include more or different words:\n   ```python\n   words = [\"WHICH\", \"THEIR\", \"THERE\", \"WOULD\", \"OTHER\", \"THESE\", \"ABOUT\", \"FIRST\", \"COULD\", \"AFTER\"]\n   ```\n\n2. **Word Length**  \n   This program supports only 5-letter words. Update the word list and adjust the logic in functions if you want to support other lengths.\n\n## Contributions\n\nFeel free to fork this repository, suggest improvements, or report any issues.\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%2Fwordle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparisa-singh%2Fwordle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparisa-singh%2Fwordle/lists"}