{"id":27404660,"url":"https://github.com/tanner-tyra/unfair-hangman","last_synced_at":"2026-05-03T05:44:50.431Z","repository":{"id":285633109,"uuid":"958823462","full_name":"Tanner-Tyra/Unfair-Hangman","owner":"Tanner-Tyra","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-01T20:32:00.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T05:41:57.511Z","etag":null,"topics":["chatgpt-api","flask","html","python"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Tanner-Tyra.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-04-01T20:25:27.000Z","updated_at":"2025-04-01T20:43:11.000Z","dependencies_parsed_at":"2025-04-01T21:43:02.354Z","dependency_job_id":null,"html_url":"https://github.com/Tanner-Tyra/Unfair-Hangman","commit_stats":null,"previous_names":["tanner-tyra/unfair-hangman"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tanner-Tyra/Unfair-Hangman","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tanner-Tyra%2FUnfair-Hangman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tanner-Tyra%2FUnfair-Hangman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tanner-Tyra%2FUnfair-Hangman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tanner-Tyra%2FUnfair-Hangman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tanner-Tyra","download_url":"https://codeload.github.com/Tanner-Tyra/Unfair-Hangman/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tanner-Tyra%2FUnfair-Hangman/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32559716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T03:21:47.309Z","status":"ssl_error","status_checked_at":"2026-05-03T03:21:43.884Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chatgpt-api","flask","html","python"],"created_at":"2025-04-14T05:39:33.988Z","updated_at":"2026-05-03T05:44:50.426Z","avatar_url":"https://github.com/Tanner-Tyra.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unfair Hangman\n\nA playful twist on the classic Hangman game — featuring **AI-generated words**, a **web interface**, and a **desktop wrapper**.  \n\n## Description\n\nUnfair Hangman takes the traditional Hangman experience and adds a few surprises:  \n\n- Words are **randomly generated in multiple languages** (English, Spanish, Latin, Old Norse, Hawaiian, and more).  \n- Accents and special characters are removed so anyone can play with a standard keyboard format.  \n- Wrong guesses may **reset your progress**, keeping the game interesting.  \n- A **clever AI** responds to incorrect guesses with witty messages.  \n- Is the game **actually over** if you lose?  \n- Play it in a **browser** or through a **desktop window** thanks to Tkinter + PyWebView.  \n\n## Features\n\n- **AI-generated words** in dozens of languages  \n- **Accent stripping and normalization** for challenging gameplay  \n- **Witty AI responses** for wrong guesses  \n- **Web-based interface** built with Flask  \n- **Desktop wrapper** using Tkinter + PyWebView  \n- **Dynamic hangman drawing** that updates as you play  \n\n## Tech Stack\n\n- **Python 3.11+**  \n- **Flask** – Web server and API  \n- **OpenAI GPT API** – Word generation and witty feedback  \n- **Tkinter + PyWebView** – Desktop app wrapper  \n- **HTML/CSS/JavaScript** – Frontend  \n\n## How It Works\n\n1. **Word Generation:**  \n   - On server start, a random word is selected in a random language via OpenAI GPT.  \n   - Accents and special characters are removed for a clean gameplay experience.  \n\n2. **Gameplay Logic:**  \n   - Players guess one letter at a time.  \n   - Correct guesses reveal letters; incorrect guesses:  \n     - Reduce attempts left  \n     - Reset current guesses (optional, part of the game’s charm)  \n     - Trigger a **playful AI response**  \n   - The game lets you continue guessing even after attempts run out, so the experience stays engaging.  \n\n3. **Desktop Launch:**  \n   - Tkinter + PyWebView opens a window pointing to the Flask web server.  \n   - The desktop version behaves like the browser version, offering a smooth standalone experience.  \n\n4. **Game End:**  \n   - **Win:** All letters are guessed  \n   - **Lose:** Attempts run out, but the game still lets you try — keeping it fun and unpredictable.  \n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourusername/unfair-hangman.git\n   cd unfair-hangman\n2. Install dependencies:\n   ```\n   pip install flask openai pywebview\n3. Set your OpenAI API key in main.py\n   ```\n   openai.api_key = \"your_api_key_here\"\n4. Run the game\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanner-tyra%2Funfair-hangman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftanner-tyra%2Funfair-hangman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftanner-tyra%2Funfair-hangman/lists"}