{"id":23360203,"url":"https://github.com/shivlalsharma/rock-paper-scissors","last_synced_at":"2026-04-12T09:38:52.101Z","repository":{"id":265501466,"uuid":"896105762","full_name":"shivlalsharma/rock-paper-scissors","owner":"shivlalsharma","description":"A modern web-based implementation of the classic Rock-Paper-Scissors game with interactive features, real-time scoring, and persistent data storage.","archived":false,"fork":false,"pushed_at":"2024-11-30T05:39:51.000Z","size":307,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"javascript","last_synced_at":"2025-07-27T15:55:43.289Z","etag":null,"topics":["browser-game","css","game","html","interactive-game","javascript","rock-paper-scissors","web-development"],"latest_commit_sha":null,"homepage":"https://rock-paper-scissors30.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shivlalsharma.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-29T14:57:07.000Z","updated_at":"2024-11-30T05:39:54.000Z","dependencies_parsed_at":"2025-04-07T20:49:30.432Z","dependency_job_id":"fc3efe3a-8c17-422e-b64d-e8cb7f731af7","html_url":"https://github.com/shivlalsharma/rock-paper-scissors","commit_stats":null,"previous_names":["shivlalsharma/rock-paper-scissors"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shivlalsharma/rock-paper-scissors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivlalsharma%2Frock-paper-scissors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivlalsharma%2Frock-paper-scissors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivlalsharma%2Frock-paper-scissors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivlalsharma%2Frock-paper-scissors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shivlalsharma","download_url":"https://codeload.github.com/shivlalsharma/rock-paper-scissors/tar.gz/refs/heads/javascript","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shivlalsharma%2Frock-paper-scissors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31710792,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T06:22:27.080Z","status":"ssl_error","status_checked_at":"2026-04-12T06:21:52.710Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["browser-game","css","game","html","interactive-game","javascript","rock-paper-scissors","web-development"],"created_at":"2024-12-21T11:13:22.014Z","updated_at":"2026-04-12T09:38:52.073Z","avatar_url":"https://github.com/shivlalsharma.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rock-Paper-Scissors Game 🎮\n\nA modern and interactive implementation of the classic **Rock-Paper-Scissors** game. Play against the computer, view real-time results, and enjoy a seamless experience with persistent score tracking and a clean user interface.\n\n## 📝 Overview\nThis project demonstrates a well-structured and feature-rich web-based game, designed to showcase:\n- Interactive gameplay mechanics.\n- Dynamic updates with JavaScript.\n- Persistent data storage using `localStorage`.\n\nDeployed version: [Rock-Paper-Scissors Game](https://rock-paper-scissors30.netlify.app/)\n\n---\n\n## 🚀 Features\n- **User Interaction**: \n  - Players choose from Rock, Paper, or Scissors via interactive icons.\n- **Real-Time Score Updates**:\n  - Tracks scores for both the user and the computer.\n- **Outcome Display**:\n  - Highlights win, loss, or draw with custom messages and dynamic colors.\n- **Score Persistence**:\n  - Scores are saved locally, ensuring continuity even after refreshing the page.\n- **Reset Functionality**:\n  - A \"Clear History\" button allows players to reset their scores for a fresh start.\n\n---\n\n## 🛠️ Technologies Used\n- **HTML**: Provides the structure for the game interface.\n- **CSS**: Enhances the game with a visually appealing design.\n- **JavaScript**: Powers the game logic, interactivity, and local storage management.\n\n---\n\n## 🎯 How It Works\n1. **Game Logic**:\n   - Users select a choice: Rock, Paper, or Scissors.\n   - The computer makes a random choice.\n   - The winner is determined based on standard game rules:\n     - Rock beats Scissors.\n     - Paper beats Rock.\n     - Scissors beat Paper.\n   - A dynamic message displays the result along with the choices made.\n\n2. **Score Management**:\n   - Scores for both the user and the computer are updated in real-time.\n   - Scores are stored in `localStorage` to ensure persistence.\n\n3. **Reset Functionality**:\n   - The \"Clear History\" button clears stored scores and resets the game.\n\n## Installation\n\nfollow these steps to run the Rock Paper Scissors locally:\n\n1. **Clone the repository**:\n    ```bash\n    git clone https://github.com/shivlalsharma/rock-paper-scissors.git\n    cd rock-paper-scissors\n    ```\n\n2. **Open the `index.html` file in your browser**.\n\n   Alternatively, you can set up a local server (e.g., using **VS Code Live Server**) to view the game in your browser.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Author\n\nCreated and deployed by **Shivlal Sharma**.  \n- **GitHub**: [Shivlal Sharma's GitHub](https://github.com/shivlalsharma)\n- **LinkedIn**: [Shivlal Sharma's LinkedIn](https://www.linkedin.com/in/shivlal-sharma-56ba5a284/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivlalsharma%2Frock-paper-scissors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshivlalsharma%2Frock-paper-scissors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshivlalsharma%2Frock-paper-scissors/lists"}