Skip to content

bhushanbhutada03/StonePaperScissor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Stone Paper Scissor (Java)

A simple Java console program where the user selects Stone (1), Paper (2), or Scissor (3).
The computer generates a random choice, and the game displays the final result: Win, Lose, or Draw.

How to Run

  1. Compile the program: javac StonePaperScissor.java

  2. Run the program: java StonePaperScissor

Features

  • User input (1(Stone), 2(Paper), or 3(Scissor))
  • Computer random choice using the Random class
  • Complete game logic: Win / Lose / Draw
  • Beginner-friendly Java project

Code

The full game logic is inside the StonePaperScissor.java file.

Releases

No releases published

Packages

 
 
 

Contributors

Languages