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.
-
Compile the program: javac StonePaperScissor.java
-
Run the program: java StonePaperScissor
- 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
The full game logic is inside the StonePaperScissor.java file.