{"id":18744965,"url":"https://github.com/rkstudio585/rock-paper-scissors-c","last_synced_at":"2025-08-21T14:05:21.364Z","repository":{"id":256885418,"uuid":"850561875","full_name":"rkstudio585/rock-paper-scissors-C","owner":"rkstudio585","description":"A simple Rock, Paper, Scissors game implemented in C. Play against the computer by choosing Rock, Paper, or Scissors. The game displays choices and announces the winner, providing a clear and interactive experience. Easy to compile and run on any system with a C compiler.","archived":false,"fork":false,"pushed_at":"2024-09-01T06:18:35.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-28T20:14:13.989Z","etag":null,"topics":["c","c-program","c-script","cprogramming","paper","program","programming","rk","rk-studio","rock","rock-paper-scissors-c","scissors"],"latest_commit_sha":null,"homepage":"https://github.com/mdriyadkhan585","language":"C","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/rkstudio585.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-01T06:09:26.000Z","updated_at":"2024-09-01T06:40:35.000Z","dependencies_parsed_at":"2024-09-13T16:23:13.890Z","dependency_job_id":"49f27e6c-d685-47ac-b924-2b2cbd9ad890","html_url":"https://github.com/rkstudio585/rock-paper-scissors-C","commit_stats":null,"previous_names":["rkstudio585/rock-paper-scissors-c"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2Frock-paper-scissors-C","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2Frock-paper-scissors-C/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2Frock-paper-scissors-C/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rkstudio585%2Frock-paper-scissors-C/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rkstudio585","download_url":"https://codeload.github.com/rkstudio585/rock-paper-scissors-C/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239627247,"owners_count":19670844,"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":["c","c-program","c-script","cprogramming","paper","program","programming","rk","rk-studio","rock","rock-paper-scissors-c","scissors"],"created_at":"2024-11-07T16:16:28.678Z","updated_at":"2025-02-19T08:52:06.745Z","avatar_url":"https://github.com/rkstudio585.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Certainly! Here’s a detailed README # Rock, Paper, Scissors Game 🪨📄✂️\n---\n[In Python](https://github.com/mdriyadkhan585/rock-paper-scissors-python)\n\n![Logo](logo.svg)\n\n---\nWelcome to the Rock, Paper, Scissors game! This is a simple command-line game where you play against the computer. Choose Rock, Paper, or Scissors, and see who wins!\n\n## Table of Contents 📚\n\n1. [Introduction](#introduction)\n2. [Features](#features)\n3. [How to Run](#how-to-run)\n4. [Gameplay Instructions](#gameplay-instructions)\n5. [Code Explanation](#code-explanation)\n\n\n## Introduction\n\nThis project is a basic implementation of the Rock, Paper, Scissors game in C. It demonstrates fundamental concepts such as user input, random number generation, and simple decision-making.\n\n## Features 🌟\n\n- Play Rock, Paper, Scissors against the computer 🤖\n- Clear and informative output 💬\n- Randomized computer choices 🎲\n- Simple and easy-to-understand code 🧩\n\n## How to Run 🚀\n\n1. **Clone the Repository:**\n   ```bash\n   git clone https://github.com/mdriyadkhan585/rock-paper-scissors-C.git\n   ```\n\n2. **Navigate to the Project Directory:**\n   ```bash\n   cd rock-paper-scissors-C\n   ```\n\n3. **Compile the Code:**\n   Use a C compiler like `gcc`:\n   ```bash\n   gcc -o rock_paper_scissors rock_paper_scissors.c\n   ```\n\n4. **Run the Program:**\n   ```bash\n   ./rock_paper_scissors\n   ```\n\n## Gameplay Instructions 🎮\n\n1. **Start the Game:**\n   After running the program, you’ll be prompted to enter your choice.\n\n2. **Enter Your Choice:**\n   - Type `0` for Rock 🪨\n   - Type `1` for Paper 📄\n   - Type `2` for Scissors ✂️\n\n3. **View the Results:**\n   The program will display the computer's choice and the result of the game (win, lose, or tie).\n\n4. **Play Again:**\n   You can run the program again to play another round.\n\n## Code Explanation 🛠️\n\n1. **Getting the Computer's Choice:**\n   ```c\n   int getComputerChoice() {\n       return rand() % 3; // 0 = Rock, 1 = Paper, 2 = Scissors\n   }\n   ```\n\n2. **Determining the Winner:**\n   ```c\n   void determineWinner(int playerChoice, int computerChoice) {\n       // Compares choices and prints the result\n   }\n   ```\n\n3. **User Input and Validation:**\n   - Prompts the user to enter their choice\n   - Validates the input to ensure it's between 0 and 2\n\n4. **Formatted Output:**\n   - Displays user and computer choices\n   - Announces the result in a clear and engaging format\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkstudio585%2Frock-paper-scissors-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frkstudio585%2Frock-paper-scissors-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frkstudio585%2Frock-paper-scissors-c/lists"}