{"id":23730034,"url":"https://github.com/dogaaydinn/rock-paper-scissors","last_synced_at":"2026-02-19T10:30:17.347Z","repository":{"id":250195982,"uuid":"833765679","full_name":"dogaaydinn/rock-paper-scissors","owner":"dogaaydinn","description":"Welcome to the Rock-Paper-Scissors Game!","archived":false,"fork":false,"pushed_at":"2024-08-07T16:59:17.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T02:31:24.817Z","etag":null,"topics":["console-game","csharp","csharp-console-game-rock-paper-scissors-game","game","learning-by-doing","rock-paper-scissors"],"latest_commit_sha":null,"homepage":"","language":"C#","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/dogaaydinn.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-07-25T17:45:30.000Z","updated_at":"2024-08-07T16:59:20.000Z","dependencies_parsed_at":"2024-08-07T19:56:45.044Z","dependency_job_id":"74531ded-21c7-45f3-84dc-4cbfeaeadda4","html_url":"https://github.com/dogaaydinn/rock-paper-scissors","commit_stats":null,"previous_names":["dogaaydinn/rock-paper-scissors"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogaaydinn%2Frock-paper-scissors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogaaydinn%2Frock-paper-scissors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogaaydinn%2Frock-paper-scissors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dogaaydinn%2Frock-paper-scissors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dogaaydinn","download_url":"https://codeload.github.com/dogaaydinn/rock-paper-scissors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239841737,"owners_count":19705979,"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":["console-game","csharp","csharp-console-game-rock-paper-scissors-game","game","learning-by-doing","rock-paper-scissors"],"created_at":"2024-12-31T02:30:16.229Z","updated_at":"2026-02-19T10:30:17.300Z","avatar_url":"https://github.com/dogaaydinn.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rock Paper Scissors\n\nThis project is a console-based Rock Paper Scissors game. Players can play against the computer or against each other.\n\n## Setup\n\n1. Clone or download this project to your computer.\n2. Open the project in Visual Studio or any C# IDE.\n3. Run the project.\n\n## How to Play\n\nWhen you start the game, you can choose from the following options:\n\n1. Play against the computer\n2. Play against a friend\n3. Exit\n\n### Playing Against the Computer\n\n1. Select \"Play against the computer\".\n2. Enter the number of rounds you want to play (between 1 and 30).\n3. The game will randomly decide who starts first.\n4. Choose rock (r), paper (p), or scissors (s) each round.\n5. The computer will make its choice, and the winner of each round will be displayed.\n6. The game continues until one player reaches the win condition.\n\n### Playing Against a Friend\n\n1. Select \"Play against a friend\".\n2. Enter the number of rounds you want to play (between 1 and 30).\n3. The game will randomly decide who starts first.\n4. Both players take turns choosing rock (r), paper (p), or scissors (s) each round.\n5. The winner of each round will be displayed.\n6. The game continues until one player reaches the win condition.\n\n### Exiting the Game\n\n1. Select \"Exit(3)\" to close the game.\n\n## Game Rules\n\n- Rock beats Scissors\n- Scissors beat Paper\n- Paper beats Rock\n\n## Code Overview\n\nThe main logic of the game is implemented in the following methods:\n\n- `PlayAgainstComputer`: Handles the game logic when playing against the computer.\n- `PlayAgainstFriend`: Handles the game logic when playing against a friend.\n- `GetPlayerChoice`: Gets the player's choice (rock, paper, or scissors).\n- `IsPlayerWinner`: Determines if a player is the winner of the round based on their choices.\n\nThe game uses an enum `Choice` to represent the possible choices (Rock, Paper, Scissors).\n\nEnjoy the game!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdogaaydinn%2Frock-paper-scissors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdogaaydinn%2Frock-paper-scissors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdogaaydinn%2Frock-paper-scissors/lists"}