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.

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

Database Concepts

Authors: David M. Kroenke, David J. Auer

7th edition

133544621, 133544626, 0-13-354462-1, 978-0133544626

More Books

Students also viewed these Databases questions

Question

Are layers of support identified for students who struggle?

Answered: 1 week ago