Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help with a simple Java program for a Left, Center, Right dice game. Left Center Right (LCR) is a multiplayer dice game with

I need help with a simple Java program for a "Left, Center, Right" dice game.

Left Center Right (LCR) is a multiplayer dice game with a minimum of three players, but no limit on the number of players.

The goal is to win all of the chips.

For the "dice class"

There are three dice rolled each turn. Each die has the letters L, C, and R on it along with dots on the remaining three sides. These dice determine where the players chips will go.

  • For each L, the player must pass one chip to the player sitting to the left.
  • For each R, the player must pass one chip to the player sitting to the right.
  • For each C, the player must place one chip into the center pot and those chips are now out of play.
  • Dots are neutral and require no action to be taken for that die.

For the "Chips" class

  • Each player will start with three chips.
  • If a player only has one chip, he/she rolls only one die.
  • If a player has two chips left, he/she rolls two dice.
  • Once a player is out of chips, he/she is still in the game (as he/she may get chips passed to him/her), but passes the dice to the next player.

The winner is the last player with chips.

my class did this in Python and it was pretty easy but I would like to know how to do it in Java.

IM NOT LOOKING FOR THE TWO PLAYER "DICE GAME" THAT HAS ALREADY BEEN POSTED MULTIPLE TIMES! I AM LOOKING FOR A SIMPLE LCR DICE GAME PROGRAM FOR JAVA!!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 3 Lnai 9286

Authors: Albert Bifet ,Michael May ,Bianca Zadrozny ,Ricard Gavalda ,Dino Pedreschi ,Francesco Bonchi ,Jaime Cardoso ,Myra Spiliopoulou

1st Edition

3319234609, 978-3319234601

More Books

Students also viewed these Databases questions

Question

3-2 What is the impact of information systems on organizations?

Answered: 1 week ago

Question

=+2 How can the effectiveness of global virtual teams be improved?

Answered: 1 week ago

Question

=+1 What are the major issues related to international T&D?

Answered: 1 week ago