{"id":27086713,"url":"https://github.com/jordanrobo/rock-paper-scissors","last_synced_at":"2025-10-12T13:08:36.550Z","repository":{"id":217760233,"uuid":"744293114","full_name":"JordanRobo/Rock-Paper-Scissors","owner":"JordanRobo","description":"This Python script runs a simple game of Rock, Paper, Scissors. The game is played between a human player and the computer.","archived":false,"fork":false,"pushed_at":"2024-01-17T23:16:33.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-18T06:07:00.383Z","etag":null,"topics":[],"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/JordanRobo.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}},"created_at":"2024-01-17T02:00:36.000Z","updated_at":"2024-01-18T06:07:03.908Z","dependencies_parsed_at":"2024-01-18T06:07:03.593Z","dependency_job_id":"878e9d0a-e2d5-4e59-94c0-d8b206f7b26e","html_url":"https://github.com/JordanRobo/Rock-Paper-Scissors","commit_stats":null,"previous_names":["jordanrobo/rock-paper-scissors"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanRobo%2FRock-Paper-Scissors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanRobo%2FRock-Paper-Scissors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanRobo%2FRock-Paper-Scissors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JordanRobo%2FRock-Paper-Scissors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JordanRobo","download_url":"https://codeload.github.com/JordanRobo/Rock-Paper-Scissors/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247440955,"owners_count":20939233,"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":[],"created_at":"2025-04-06T05:36:42.559Z","updated_at":"2025-10-12T13:08:31.491Z","avatar_url":"https://github.com/JordanRobo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rock, Paper, Scissors - Python Game\n\nThis is a Python game developed by me for my Certificate IV in Information Technology. This Python script runs a simple game of Rock, Paper, Scissors. The game is played between a human player and the computer.\n\nThe Game class is the main class that controls the game flow. It has the following methods:\n\n`__init__(self, player, computer)`: This method initializes a new game with a human player and a computer player.\n\n`computer_move(self)`: This method randomly selects a move for the computer player from the list of possible moves (Rock, Paper, or Scissors).\n\n`determine_winner(self)`: This method determines the winner of the game based on the rules of Rock, Paper, Scissors. If both players choose the same move, it's a tie. Otherwise, Rock beats Scissors, Scissors beat Paper, and Paper beats Rock.\n\n`play_game(self)`: This method runs the game. It first welcomes the player, then prompts the human player to choose a move and randomly selects a move for the computer player. It then prints the choices of both players, determines the winner, and prints the result. The result is also appended to a list of results and written to a file named \"Game_Results.txt\".\n\nThe Player class represents a player in the game. It has a playerMove method that prompts the human player to choose a move, and a choose_move method that sets the move for the computer player.\n\nThe game is started by creating instances of the Player and Game classes and calling the play_game method on the Game instance.\n\n## Installation\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/JordanRobo/Rock-Paper-Scissors.git\n    ```\n\n2. Navigate to the project directory:\n    ```bash\n    cd Rock-Paper-Scissors\n    ```\n\n3. Install the required dependencies:\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n## Usage\n\nTo run the game, execute the following command:\n    ```\n    python3 game.py\n    ```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordanrobo%2Frock-paper-scissors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjordanrobo%2Frock-paper-scissors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjordanrobo%2Frock-paper-scissors/lists"}