{"id":19302671,"url":"https://github.com/netbr3ak/rock-paper-scissors","last_synced_at":"2025-08-02T13:06:43.992Z","repository":{"id":242117512,"uuid":"808705757","full_name":"NetBr3ak/rock-paper-scissors","owner":"NetBr3ak","description":"🪨📄✂️ Enjoy the classic Rock Paper Scissors game against the computer! Built with HTML and JavaScript, this project lets you play 5 rounds and see who emerges victorious. Have fun challenging yourself in this timeless game!","archived":false,"fork":false,"pushed_at":"2024-11-23T02:38:44.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T01:51:17.717Z","etag":null,"topics":["github-pages","html5","interactive-game","javascript","strategy-game"],"latest_commit_sha":null,"homepage":"https://NetBr3ak.github.io/rock-paper-scissors/","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/NetBr3ak.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-05-31T16:30:09.000Z","updated_at":"2024-11-23T02:38:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"b9a38ebe-09f0-4837-b4a6-0897662c517f","html_url":"https://github.com/NetBr3ak/rock-paper-scissors","commit_stats":null,"previous_names":["t3ac0d3/rock-paper-scissors","netbr3ak/rock-paper-scissors"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/NetBr3ak/rock-paper-scissors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetBr3ak%2Frock-paper-scissors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetBr3ak%2Frock-paper-scissors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetBr3ak%2Frock-paper-scissors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetBr3ak%2Frock-paper-scissors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NetBr3ak","download_url":"https://codeload.github.com/NetBr3ak/rock-paper-scissors/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NetBr3ak%2Frock-paper-scissors/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262762438,"owners_count":23360327,"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":["github-pages","html5","interactive-game","javascript","strategy-game"],"created_at":"2024-11-09T23:23:17.090Z","updated_at":"2025-06-30T11:04:14.504Z","avatar_url":"https://github.com/NetBr3ak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🪨📄✂️ Rock Paper Scissors Game\n\nWelcome to the **Rock Paper Scissors Game**! This simple, classic game lets you challenge the computer in a fun and interactive way using HTML and JavaScript. Get ready for some competition!\n\n## 🚀 Getting Started\n\n1. Open the HTML file in your web browser 🌐.\n2. Follow the prompts to enter your choices 🗳️.\n3. Play five rounds against the computer and see who comes out on top! 🏆\n\nAlternatively, you can access the game directly on GitHub Pages from my repository:\n\n- Visit the [GitHub Pages of the game](https://NetBr3ak.github.io/rock-paper-scissors/) to play it online.\n\nThis link will take users directly to the hosted version of your game, making it easily accessible without the need for local setup.\n\n## 📂 Project Structure\n\n- **index.html**: Loads the game 🎮.\n- **script.js**: Contains the game logic 🧠.\n- **README.md**: Provides project information ℹ️.\n- **LICENSE**: Contains the project's licensing information 🔖.\n\n## 📜 Game Rules\n\n1. Choose **Rock**, **Paper**, or **Scissors** ✊📄✂️.\n2. The computer makes a random choice 🤖.\n3. Determine the winner of each round:\n    - **Rock** beats **Scissors** ✊ \u003e ✂️\n    - **Paper** beats **Rock** 📄 \u003e ✊\n    - **Scissors** beats **Paper** ✂️ \u003e 📄\n4. Play 5 rounds. The player with the highest score wins! 🥇\n\n## 📝 Code Overview\n\n### Variables\n\n- `let humanScore = 0;`: Tracks the player's score 🎯.\n- `let computerScore = 0;`: Tracks the computer's score 💻.\n\n### Functions\n\n- `getComputerChoice()`: Returns the computer's random choice 🤖.\n- `getHumanChoice()`: Prompts and returns the player's choice 🗳️.\n- `playRound(humanChoice, computerChoice)`: Determines the round winner and updates scores 🏁.\n- `playGame()`: Runs the game for 5 rounds and declares the overall winner 🏆.\n\n### Example Output\n\n```javascript\nYou: Rock\nComputer: Scissors\nYou win this round!\nRock beats Scissors - Point for you\nCurrent match result: 1 - 0\n...\nComputer wins this tournament!\n```\n\n## 🎨 Styling\n\nConsole messages use basic styling for clarity:\n\n- Green for player wins 🟢\n- Yellow for draws 🟡\n- Red for computer wins 🔴\n\n```javascript\nconsole.log('%c You win this tournament! ', 'background: #222; color: #bada55');\nconsole.log('%c Draw, nobody wins this tournament! ', 'background: #222; color: #ffff00');\nconsole.log('%c Computer wins this tournament! ', 'background: #222; color: #ff4500');\n```\n\n## 🤝 Contributing\n\nTo contribute, fork the repository and submit a pull request. Your suggestions and improvements are welcomed with open arms! 🤗\n\n## 📄 License\n\nThis project is open-source under the MIT License.\n\n---\n\n### Author\n\nCreated with ❤️ by T3aC0d3. Have any questions or feedback? Feel free to reach out!\n\n---\n\nLet the games begin! 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetbr3ak%2Frock-paper-scissors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetbr3ak%2Frock-paper-scissors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetbr3ak%2Frock-paper-scissors/lists"}