Skip to content

kevinThulnith/C-rock-paper-scissor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ C-Rock-Paper-Scissors โœŠ๐Ÿ“„โœ‚๏ธ

A simple yet fun Rock-Paper-Scissors game written in C! ๐Ÿ–ฅ๏ธ๐Ÿš€

๐ŸŽฒ How to Play

1๏ธโƒฃ Run the executable: RPS.exe
2๏ธโƒฃ Enter your name when prompted. ๐Ÿ“ 3๏ธโƒฃ Choose your move by entering the corresponding number:

  • โœŠ 1 for Rock
  • ๐Ÿ“„ 2 for Paper
  • โœ‚๏ธ 3 for Scissors
  • โŒ 4 to Quit the game 4๏ธโƒฃ The computer will randomly pick its move. ๐Ÿค– 5๏ธโƒฃ The result of the round will be displayed. ๐ŸŽ‰ 6๏ธโƒฃ You can choose to play another round or exit. ๐Ÿ”

๐Ÿ† Game Rules

  • โœŠ Rock beats โœ‚๏ธ Scissors
  • โœ‚๏ธ Scissors beats ๐Ÿ“„ Paper
  • ๐Ÿ“„ Paper beats โœŠ Rock
  • If both players choose the same move, it's a tie! ๐Ÿค

โš™๏ธ Compilation

To compile the game, use the following command: ๐Ÿ› ๏ธ

gcc -o RPS RPS.c

๐Ÿ’ก Features

  • Simple and lightweight game written in C. โšก
  • Interactive user input with name entry. ๐Ÿ“
  • Randomized computer opponent for unpredictable gameplay. ๐ŸŽฒ
  • Instant results after each round. ๐Ÿ…
  • Option to play multiple rounds or exit anytime. ๐Ÿ”

๐Ÿ“Œ Future Enhancements

We plan to make the game even more exciting with the following features:

  • ๐Ÿ”Š Sound effects for a more immersive experience.
  • ๐ŸŽจ Improved UI with ASCII graphics.
  • ๐Ÿ“Š A scoreboard to keep track of wins and losses.
  • ๐Ÿค– AI difficulty levels to challenge different skill levels.

๐Ÿค Contributing

We welcome contributions to make this game even better! If you'd like to contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Commit your changes with clear messages.
  4. Push the changes and create a pull request.

๐Ÿ“œ License

This project is licensed under the MIT License. Feel free to use and modify it as you like! ๐Ÿš€

Now you're all set to play! Have fun! ๐ŸŽฎ๐Ÿ˜

About

Rock Paper Scissor with C coding language, fully optimized code.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages