Rock Paper Scissors Game

Rock Paper Scissors-also known as "Roshambo" and Jack en poy-is a very simple game. There are two players in the simplest version. Each player chooses one of the three choices, rock, paper or scissors, with the hope of beating what the other player chose. As shown in the adjacent diagram, scissors beats (cuts) paper; paper beats (covers) rock; rock beats (crushes) scissors.

Program Requirements

Create a simple Rock-Paper-Scissors game (between 2 players) with a JavaFX UI. Create this game as a networked game. Create a RPSServer.java that is the server program that handles the game logic and controls all game sessions. It waits for connections from players and pairs them up to play a game. It should create a separate thread for each game session. Also create a RPSClient.java that is the client program handling player moves (with JavaFX UI). It should initiate a connection with the server and then play the game once assigned to a game session. Each game session includes playing 5 turns and then declaring the winner. After that, ask the players if they want to play again or quit. The client program receives the game configuration from the server and updates its UI with the points. No game logic checking should happen on the client side. It should all be done on the server side. Use the tic-tac-toe example provided in the course shell as a starting point and example.

  • Continue to make use of good Object-Oriented design
  • Make sure you provide appropriate Exception Handling (using try-catch blocks) throughout the program
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.