Java : question: pleased write a program that allows your

FIND A SOLUTION AT Academic Writers Bay


Question: Pleased write a program that allows your  computer program play the rock-paper-scissors-lizard-spock game against  itself. Refer to for more  information. 

In  this problem, the program simulates two players who play against each  other. The play continues until one of the computer-generated players  wins 4 times. Solve the problem using a class called  “RockPaperScissorLizardSpock”. Feel free to use as many other classes as  needed to make proper use of OOP design.

The  program should use multiple threads to simulate “simultaneous play”,  just as in the real game itself. Use multi-threading / concurrency  techniques to simulate the actual game’s simultaneous play method where  both players throw their hand at the same time for each iteration of the  game and then determine who wins this play.

In  this game, in every iteration, two random integers are generated in the  range of [1 to 5] – 1 refers to Rock. 2 refers to Paper. 3 refers to  Scissors. 4 refers to Lizard. 5 refers to Spock. 

For  exle, if the computer randomly generates integers 2 and 5 in the  first iteration, 2 is for the first player and 5 is for the second  player. 2 refers to Paper and 5 refers to Spock. Based on Rule 8 in the  following 10 rules, Paper (2) disproves Spock (5), so player 1 wins. 

Likewise,  continue the iterations until one player wins 4 times. All other  outcomes such as the “Spock vs. Spock” would be considered a draw. Also,  ensure that the play ends after a certain number of iterations. Use  custom Exceptions with try/catch and not accept any system error  message. 

rule 1: Scissor cut paper

rule 2: Paper covers rock

rule 3: Rock crushes lizard

rule 4: Lizard poisons Spock

rule 5: Spock smashes (or melts) scissor

rule 6: Scissor decapitate lizard

rule 7: Lizard eats paper

rule 8: Paper disproves Spock

rule 9: Spock vaporizes rock

rule 10: Rock breaks scissors


Order from Academic Writers Bay
Best Custom Essay Writing Services


Why Choose Us?

  • non-plagiarized Papers
  • 24/7 /365 Service Available
  • Affordable Prices
  • Any Paper, Urgency, and Subject
  • Will complete your papers in 6 hours
  • On-time Delivery
  • Money-back and Privacy guarantees
  • Unlimited Amendments upon request
  • Satisfaction guarantee

How It Works

  • Click on the “Place Your Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
  • Fill in your paper’s requirements in the "PAPER DETAILS" section.
  • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
  • Click “CREATE ACCOUNT ; SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
  • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.


AcademicWritersBay.comnbsp;is an easy-to-use and reliable service that is ready to assist you with your papers 24/7/ 365days a year. 99% of our customers are happy with their papers. Our team is efficient and will always tackle your essay needs comprehensively assuring you of excellent results. Feel free to ask them anything concerning your essay demands or Order. is a private company that offers academic support and assistance to students at all levels. Our mission is to provide proficient andnbsp;high quality academic servicesnbsp;to our highly esteemed clients. is equipped with competent andnbsp;proficient writersnbsp;to tackle all types of your academic needs, and provide you with excellent results. Most of our writers are holders ofnbsp;master's degreesnbsp;ornbsp;PhDs, which is an surety of excellent results to our clients. We provide assistance to students all over the world.
We provide high quality term papers, research papers, essays, proposals, theses and many others. Atnbsp;, you can be sure ofnbsp;excellent gradesnbsp;in your assignments and final exams.

error: Content is protected !!