{"id":26552682,"url":"https://github.com/mirokrastanov/rockpaperscissors","last_synced_at":"2025-03-22T08:39:05.010Z","repository":{"id":92020932,"uuid":"546524936","full_name":"mirokrastanov/RockPaperScissors","owner":"mirokrastanov","description":"🪨📄✂️ Web-based JavaScript implementation of the popular \"Rock Paper Scissors\" game. (Small Project))","archived":false,"fork":false,"pushed_at":"2024-05-29T15:05:11.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-30T05:05:52.845Z","etag":null,"topics":["game","javascript","web"],"latest_commit_sha":null,"homepage":"https://app-library-13e36.web.app/apps/rps","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/mirokrastanov.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":"2022-10-06T08:06:04.000Z","updated_at":"2024-05-29T15:07:57.000Z","dependencies_parsed_at":"2024-05-29T17:31:45.360Z","dependency_job_id":null,"html_url":"https://github.com/mirokrastanov/RockPaperScissors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirokrastanov%2FRockPaperScissors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirokrastanov%2FRockPaperScissors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirokrastanov%2FRockPaperScissors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirokrastanov%2FRockPaperScissors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirokrastanov","download_url":"https://codeload.github.com/mirokrastanov/RockPaperScissors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244931585,"owners_count":20534009,"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":["game","javascript","web"],"created_at":"2025-03-22T08:39:04.398Z","updated_at":"2025-03-22T08:39:05.005Z","avatar_url":"https://github.com/mirokrastanov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RockPaperScissors\nA simple console-based JavaScript implementation of the \"Rock - Paper - Scissors\" game.\n\u003cp align=\"center\"\u003e\u003ca href=\"https://app-library-13e36.web.app/apps/rps\"\u003e\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/6/67/Rock-paper-scissors.svg/1200px-Rock-paper-scissors.svg.png\" alt=\"game-image\" height=\"500px\"\u003e\u003c/a\u003e\u003c/p\u003e\n\n## Live Demo\n[\u003cimg src=\"https://freepngimg.com/download/play_now_button/25403-5-play-now-button-transparent.png\" alt=\"run-button\" height=\"40px\" /\u003e](https://app-library-13e36.web.app/apps/rps)\n### The Demo is now part of my app library \n- Check out the [App Library](https://app-library-13e36.web.app/)\n\n## Description\n\u003ca href=\"https://en.wikipedia.org/wiki/Rock_paper_scissors\"\u003eRock - Paper - Scissors\u003c/a\u003e is a simple \u003cb\u003etwo player game\u003cb\u003e, where you and your opponent (the computer) simultaneously choose one of the following three options: \u003cb\u003e\"rock\", \"paper\" or \"scissors\". The rules are as follows:\n  - \u003cb\u003eRock beats scissors\u003c/b\u003e (the scissors get broken by the rock)\n  - \u003cb\u003eScissors beat paper\u003c/b\u003e (the paper gets cut by the scissors) \n  - \u003cb\u003ePaper beats rock\u003c/b\u003e (the rock gets covered by the paper)\nThe winner is the player whose choice beats the choice of his opponent. If both players choose the same option, the game ends with a draw.\n\n## Input \u0026 Output\n  - `rock` or `r`\n  - `paper` or `p`\n  - `scissors` or `s` \u003cbr /\u003e\n\nThe computer chooses a \u003cb\u003erandom option\u003c/b\u003e, then the \u003cb\u003ewinner\u003c/b\u003e is revealed.\n\n## Game Logic | Possible Scenarios\n  \n|YOU|COMPUTER|OUTCOME|\n| :--: | :--: | :--: |\n|rock|rock|Draw|\n|rock|paper|You lose|\n|rock|scissors|You win|\n|paper|rock|You win|\n|paper|paper|Draw|\n|paper|scissors|You lose|\n|scissors|rock|You lose|\n|scissors|paper|You win|\n|scissors|scissors|Draw|\n  \n  \n## Live Demo\n[\u003cimg src=\"https://freepngimg.com/download/play_now_button/25403-5-play-now-button-transparent.png\" alt=\"run-button\" height=\"40px\" /\u003e](https://app-library-13e36.web.app/apps/rps)\n  \n- [Original Source Code](https://github.com/mirokrastanov/RockPaperScissors)\n- [React Implementation Code for the App Library](https://github.com/mirokrastanov/app-library/tree/main/client/src/apps/rps)\n  \n  \n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirokrastanov%2Frockpaperscissors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirokrastanov%2Frockpaperscissors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirokrastanov%2Frockpaperscissors/lists"}