Skip to content

Latest commit

 

History

History
64 lines (35 loc) · 1.94 KB

README.md

File metadata and controls

64 lines (35 loc) · 1.94 KB

Rock_Paper_Scissor

Welcome to the Rock Paper Scissors game repository! This project is a simple implementation of the classic game "Rock Paper Scissors" written in C programming language. The game allows a user to play against the computer, providing a fun way to practice C programming and basic game logic.

Features

User vs Computer Gameplay: Play Rock Paper Scissors against the computer.

Randomized Computer Choices: The computer makes random choices to ensure fair gameplay.

Clear User Interface: Simple and intuitive command-line interface.

Score Tracking: Keeps track of wins, losses, and draws.

Getting Started

Prerequisites:

To compile and run this project, you need:

  1. A C compiler (e.g., GCC)/Visual Studio Code (or any other text editor/IDE)

  2. Basic knowledge of C programming

How to Play

The program will prompt you to enter your choice: Rock, Paper, or Scissors.

The computer will randomly select its choice.

The winner is determined based on the standard rules of Rock Paper Scissors:

Rock crushes Scissors

Scissors cuts Paper

Paper covers Rock

The game will display the results and update the score.

Code Structure

rock_paper_scissors.c: The main source file containing the game logic and user interface.

README.md: This file, providing an overview and instructions for the repository.

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, feel free to fork the repository and create a pull request.

Fork the repository

Create a new branch (git checkout -b feature-branch)

Commit your changes (git commit -m 'Add some feature')

Push to the branch (git push origin feature-branch)

Open a pull request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Inspiration for this project came from the classic game "Rock Paper Scissors".

Thanks to the open-source community for the tools and resources that made this project possible.