Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Dear tutor please do code in c++ language and attached screen shots of console. Remember please don't copy code from chegg, Thanks. Positions (9> !1

Dear tutor please do code in c++ language and attached screen shots of console. Remember please don't copy code from chegg, Thanks.

image text in transcribedimage text in transcribedimage text in transcribed
Positions (9> !1 (2) (9> Positions (10) 12 11 (9) Player 1 Choose the bin to start: Player Choose the bin to start: Asking direction clarification and Player 1 gets another turn Positions (10) (3) (9) (3) (3) (3) (3) Player 1 Choose the bin to start: Which direction are you moving?(R/L): R Positions (3) (4) (10) (9> 11 Player 1 Choose the bin to start: 1 Positions (10) (9) 10 (1)Partitions marbles correctly Selects correct winner Appropriate ADTs 4+ ADTs o All data members private o Use of Member Functions Style: Comments, Indentation, Design Do not include . Global Variables Example Outputs: Game start Positions a (3) (3) I (?(6) Player Choose the bin to start: Player Choose the bin to start: Player 1 Choose the bin to start:Problem Description: Implement the previously described Mancala variant in C#+. Player 1 will be a human while the other will be a computer player. The computer player selects a hole following the following decision logic: If there is a hole with enough pieces to finish the turn in the computer player's end zone, select it. Otherwise select the hole on the right to left path with the greatest amount of marbles. If there are no marbles on that path then select the hole closest to the opponent's end zone. It is highly suggested, but not required, to pause the output after the computer makes a move to allow the user to interpret the output before more gets printed out. Look into cin.get(); The program should not allow the player to enter incorrect selections. The player cannot select a nonexistent hole, the end zones, or an empty hole. Look at the example output for an example for how to output the game board formatted in a nice way. You must tell the player what input is valid. For example, the example outputs show a board next to the game board showing how the bins are labeled. . Implement at least 4 ADTs Must Haves: Compilation Correct Output o Output Neatness Easy to interpret board Easy to interpret position labels Clear changes between turns o Correct placement of pieces Setup properly Follows proper path Skips opponent end zone o Correct moving of pieces " Original hole has marbles removed Each hole passed gains one marble o Correct turn taking with extra turns o Correct computer selection logic o Correct game ending

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_2

Step: 3

blur-text-image_3

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions

Question

Managing the brand

Answered: 1 week ago

Question

Be able to explain the state and local tax deduction:

Answered: 1 week ago