Skip to content

A simple implementation of the classic Rock-Paper-Scissors game where a user can play against the computer. The game randomly selects an option for the computer, and the user inputs their choice.

Notifications You must be signed in to change notification settings

Akarshjha03/Rock-Paper-Scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 

Repository files navigation

โœŠโœ‹โœŒ๏ธ Rock, Paper, Scissors Game ๐ŸŽฎ

Welcome to the Rock, Paper, Scissors Game ๐ŸŽ‰, a simple and fun CLI-based game written in Kotlin! ๐Ÿš€ Test your luck and skills against the computer in this timeless classic! ๐Ÿค– vs ๐Ÿง‘โ€๐Ÿ’ป


โœจ Features

  • ๐Ÿชจ Rock, ๐Ÿ“„ Paper, โœ‚๏ธ Scissors game logic
  • ๐Ÿค– Play against the computer
  • ๐Ÿ•น๏ธ Interactive Command-Line Interface
  • ๐Ÿ“œ Clean and well-documented Kotlin code

๐Ÿš€ Getting Started

๐Ÿ“ฅ Clone the Repository

git clone https://github.com/yourusername/rock-paper-scissors-kotlin.git
cd rock-paper-scissors-kotlin

๐Ÿ› ๏ธ Requirements

  • A code editor like IntelliJ IDEA or a terminal.
  • Kotlin: Make sure Kotlin is installed. You can check by running:
kotlin -version

โ–ถ๏ธ How to Play

1.Run the program:

kotlinc RockPaperScissors.kt -include-runtime -d RockPaperScissors.jar
java -jar RockPaperScissors.jar
  1. Follow the instructions on the screen to make your move:

    • Type rock, paper, or scissors.
  2. The computer will randomly choose its move, and the winner will be displayed! ๐ŸŽ‰


๐Ÿค Contributing

Contributions are always welcome!
Feel free to fork this repository, make changes, and submit a pull request. ๐Ÿ™Œ

๐Ÿ“œ License

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

About

A simple implementation of the classic Rock-Paper-Scissors game where a user can play against the computer. The game randomly selects an option for the computer, and the user inputs their choice.

Topics

Resources

Stars

Watchers

Forks

Languages