Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA PROGRAM The game of Mankala is played on a board like that illustrated below: Players sit on opposite sides with the large bin to

JAVA PROGRAM

The game of Mankala is played on a board like that illustrated below: Players sit on opposite sides with the large bin to a players right designated her home bin. On a turn, a player selects one of the six pits to remove the stones from and then sows the stones counterclockwise around the board, placing one stone in each pit including the players home bin (but excluding the opponents home bin). If the last stone lands in the players home bin, the player gets another turn. If the last stone lands in an empty pit on the players side of the board, the player takes all stones in the corresponding pit on the opponents side and places them in the players home bin. When a player cannot play, the game is over and all stones remaining in the opponents pits go to the opponents home bin. The winner is the player with the most stones in the players home bin at the end of the game. For example, if the bottom player plays first and chooses the fourth pit to play from, the board looks like: Since the last stone landed in the players home bin, the player takes nother turn. The player may choose the first pit this time in order to capture the opponents stones: The players turn is now over, and the opponent now has a turn. Create a Mankala application. The application should use simple characters to illustrate the board, and letters to identify the pits, similar to that shown below:

3 3 3 3 3 3

0 0

3 3 3 3 3 3

a b c d e f

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

Students also viewed these Databases questions