Skip to content

SubediBinod/JavaSwingRockPaperScissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Swing Rock Paper Scissors

This project is a simple implementation of the classic Rock Paper Scissors game using Java Swing for the graphical user interface.

Overview

The game allows players to choose between Rock, Paper, or Scissors, and then competes against the computer's randomly generated choice. The winner is determined based on the classic rules of the game:

  • Rock beats Scissors
  • Scissors beats Paper
  • Paper beats Rock

Screenshot:

Screenshot (289) Game Interface

Features

  • Graphical User Interface: The game features a user-friendly interface built with Java Swing components.
  • Player vs. Computer: Players compete against the computer, which randomly selects its move.

How to Play

  1. Starting the Game: Run the Java application to launch the Rock Paper Scissors game interface.

  2. Game Interface:

    • The game interface consists of buttons for the player to choose their move (Rock, Paper, or Scissors).
    • The computer's move is displayed on the screen.
  3. Gameplay:

    • Click on one of the buttons to select your move.
    • The computer randomly selects its move.
    • The winner of the round is determined based on the classic rules of Rock Paper Scissors.

Requirements

  • Java Development Kit (JDK) installed on your system.
  • An integrated development environment (IDE) such as Eclipse, IntelliJ IDEA, or NetBeans for running the Java application.

Getting Started

  1. Clone the repository to your local machine.
  2. Open the project in your preferred IDE.
  3. Compile and run the Main.java file to start the game.

Contribution

Contributions to the project are welcome! If you have any ideas for improvements or feature enhancements, feel free to submit a pull request.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages