Skip to content

NITHIN0710/Interactive-Games-in-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Interactive Games in Java

This repository contains simple, beginner-friendly interactive programs written in Java.
Currently, it includes:

  1. Rock, Paper, Scissors โ€” Play a "Best of 5" game against the computer.
  2. Simple Calculator โ€” Perform basic arithmetic operations.

๐Ÿ“Œ Features

Rock, Paper, Scissors

  • Best of 5 rounds format.
  • Input validation (prevents invalid choices).
  • Displays scores after each round.
  • Option to play multiple matches.

Simple Calculator

  • Supports addition, subtraction, multiplication, division, and modulus.
  • Handles invalid operations.
  • Prevents division/modulus by zero.
  • Continuous mode until the user chooses to exit.

๐Ÿ›  How to Run

Clone the repository, compile the Java files, and run the desired program:

git clone https://github.com/<your-username>/Interactive-Games-Java.git
cd Interactive-Games-Java
javac RockPaperScissor.java SimpleCalculator.java
java RockPaperScissor   # To play Rock, Paper, Scissors
java SimpleCalculator   # To use the Calculator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages