Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/builde7b0b/java-mini-project---rps
An Implementation of Rock, Paper Scissors Game in Java
https://github.com/builde7b0b/java-mini-project---rps
Last synced: 16 days ago
JSON representation
An Implementation of Rock, Paper Scissors Game in Java
- Host: GitHub
- URL: https://github.com/builde7b0b/java-mini-project---rps
- Owner: builde7b0b
- Created: 2023-04-13T15:43:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-13T21:55:01.000Z (almost 2 years ago)
- Last Synced: 2024-11-23T13:15:56.581Z (3 months ago)
- Language: Java
- Size: 342 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Java-Mini-Project---RPS
## Description
This is a Java implementation of the classic game "rock-paper-scissors". The game has a main menu with options to enter two players or play against the computer. When playing against another human, players can take turns playing rock, paper, or scissors. When playing against the computer, the computer will randomly choose its move. The winner of each round is determined according to the rules of the game: rock beats scissors, scissors beats paper, and paper beats rock. The game continues until a player reaches a specified number of points, at which point the winner is declared.## Table of Contents
- Wireframe
- Installation
- Usage
- Contributing
- License## Wireframe / Class Diagram
![WIREFRAME](img.png "WIREFRAME")### classes and methods
- Main Class: Game
- Class two: Player (abstract)
- Class Three: Computer (sub-class)
- Main Methods: Winner(), play(), choose()
- Secondary Methods: getName(), setName(), getChoice()[2]## Installation
To run the game, you will need to have Java installed on your computer. You can download Java [here].Once you have Java installed, you can download the source code for the game from the GitHub repository and compile it using your favorite Java compiler.
## Usage
To start the game, run the compiled Java file from the command line. You will be prompted to select whether you want to play against another player or the computer. Follow the on-screen instructions to play the game.## Contributing
Contributions to the project are welcome! If you would like to contribute, please fork the repository and submit a pull request.