{"id":25434527,"url":"https://github.com/databytesun/rock-paper-scissor","last_synced_at":"2026-04-26T22:31:22.502Z","repository":{"id":277553532,"uuid":"932791173","full_name":"DataByteSun/Rock-Paper-Scissor","owner":"DataByteSun","description":"This is an interactive Rock Paper Scissors game where the player competes against an AI opponent. Unlike traditional random AI selection, this game employs a smart AI that predicts the player's moves based on past choices and selects the best counter-move to win.","archived":false,"fork":false,"pushed_at":"2025-02-14T14:56:27.000Z","size":454,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T21:12:54.963Z","etag":null,"topics":["cvzone","game","opencv","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/DataByteSun.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-14T14:27:54.000Z","updated_at":"2025-02-14T14:56:30.000Z","dependencies_parsed_at":"2025-02-14T15:44:51.784Z","dependency_job_id":null,"html_url":"https://github.com/DataByteSun/Rock-Paper-Scissor","commit_stats":null,"previous_names":["databytesun/rock-paper-scissor"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DataByteSun/Rock-Paper-Scissor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataByteSun%2FRock-Paper-Scissor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataByteSun%2FRock-Paper-Scissor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataByteSun%2FRock-Paper-Scissor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataByteSun%2FRock-Paper-Scissor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DataByteSun","download_url":"https://codeload.github.com/DataByteSun/Rock-Paper-Scissor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DataByteSun%2FRock-Paper-Scissor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32315711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T21:09:39.134Z","status":"ssl_error","status_checked_at":"2026-04-26T21:09:21.240Z","response_time":129,"last_error":"SSL_read: 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":["cvzone","game","opencv","python"],"created_at":"2025-02-17T06:17:40.016Z","updated_at":"2026-04-26T22:31:22.273Z","avatar_url":"https://github.com/DataByteSun.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rock Paper Scissors - AI Smart Game\n\n## 📌 Project Description\n\nThis is an interactive **Rock Paper Scissors** game where the player competes against an AI opponent. Unlike traditional random AI selection, this game employs a **smart AI** that predicts the player's moves based on past choices and selects the best counter-move to win.\n\nThe game uses **hand gesture recognition** via the webcam, allowing players to play using real-time hand signals. The AI opponent dynamically adjusts its strategy, making the game more challenging and engaging.\n\n## 🛠 Features\n\n- 🎮 Hand Gesture Recognition: Play using your real-world hand gestures.\n\n- 🤖 AI Strategy: The AI predicts the player's next move using past choices.\n\n- 🎨 Real-Time Graphics: A visually appealing UI with smooth overlays.\n\n- 🏆 Scoring System: First to 10 points wins, with a fun popup announcement.\n\n- 🔄 Auto Restart: Once a player reaches 10 points, the game resets automatically.\n\n## 🎨 UI Preview\n\nThe game features an intuitive and visually appealing interface. Below is a screenshot of the game UI:\n![Alt text](Resources/BG.png)\n\n## 🚀 Installation\n\nTo run this project, install the required dependencies:\n```\npip install -r requirements.txt\n```\nEnsure you have a webcam enabled and functioning.\n\n## 🎯 How to Play\n\n1. Run the game using:\n```\npython Game.py\n```\n2. Use the following hand gestures:\n\n  - ✊ Rock → Close your fist\n\n  - ✋ Paper → Open all fingers\n\n  - ✌ Scissors → Show two fingers (index \u0026 middle)\n\n3. Press 's' to start the game.\n\n4. The AI will predict and counter your moves to make the game more competitive.\n\n5. The first to 10 points wins, and the game restarts automatically.\n\n6. Press 'q' anytime to quit.\n\n## 🔧 Dependencies\n\nThis project requires:\n\n- OpenCV\n\n- cvzone\n\n- HandDetector (from cvzone)\n\nMake sure all dependencies are installed from `requirements.txt` before running.\n\n## 🎉 Enjoy the Game!\n\nChallenge yourself and see if you can outsmart the AI! Have fun playing. 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabytesun%2Frock-paper-scissor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatabytesun%2Frock-paper-scissor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatabytesun%2Frock-paper-scissor/lists"}