Skip to content

A game of Rock, Paper, Scissors that can be played by multiple players and has a threaded structure

Notifications You must be signed in to change notification settings

swhasans/RPS---Game

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rock, Paper, Scissors Game (Java/JavaFX)

A multithreaded and multiplayer game that allows players to play against each other in real-time. This game is a group project and it uses a graphical user interface (GUI) design. It is a networked game that uses network programming such as sockets, RMI, Web Sockets, etc. This game allows at least two players on different computers to play.

Table of Contents

  1. Introduction
  2. Requirements
  3. How to Play
  4. Design and Implementation
  5. Future Improvements
  6. Limitations
  7. Acknowledgements

Introduction

This game is a simple implementation of the classic game of Rock, Paper, Scissors, built using Java and JavaFX. The game features multithreading and multiplayer capabilities, allowing players to play against each other in real-time. It is a group project that uses a graphical user interface (GUI) design and it is a networked game that uses network programming such as sockets, RMI, Web Sockets, etc.

Requirements

  • Java 8 or higher
  • JavaFX 8 or higher

How to Play

  1. Download the game files from GitHub
  2. Open the game in your preferred Java IDE
  3. Run the game by executing the Main.java file
  4. Once the game window opens, select "Join Game" to enter the game lobby
  5. Wait for other players to join the lobby
  6. Once all players are ready, select "Start Game" to begin playing
  7. Select your choice of Rock, Paper, or Scissors by clicking on the corresponding button
  8. The game will automatically determine the winner and display the results on the screen
  9. The game will continue until all players have played their rounds
  10. Once the game is over, select "Quit Game" to exit the game

Design and Implementation

The game is built using Java and JavaFX, utilizing multithreading and socket programming for multiplayer capabilities. The game utilizes a client-server architecture, where the server manages the game state and communicates with the clients. It is a networked game that uses network programming such as sockets, RMI, Web Sockets, etc.

Gameplay

  • The game follows the basic rules of the classic game of Rock, Paper, Scissors.
  • Players can join a game lobby and wait for other players to join.
  • Once all players are ready, the game starts and each player selects their choice of Rock, Paper, or Scissors by clicking on the corresponding button.
  • The game automatically determines the winner and displays the results on the screen.
  • The game continues until all players have played their rounds.
  • Once the game is over, players can quit the game and return to the lobby.

Future Improvements

  • Implement a chat feature for players to communicate with each other during the game
  • Add support for more players in a single game
  • Add additional game modes, such as a tournament mode
  • Implement a save/load feature to allow players to save their progress and continue playing later.

Limitations

  • The game is only compatible with Windows operating systems as it is an executable file.
  • The game is only accessible within a local network and does not support online play.
  • The game does not feature advanced or visually stunning animation.

Acknowledgements

Shane Abraham

Shane Abraham

Alan Charly

Alan Charly

Hamdan Ashraf

Hamdan Ashraf

About

A game of Rock, Paper, Scissors that can be played by multiple players and has a threaded structure

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%