+1(316)4441378

+44-141-628-6690

Rectangular Peg Solitaire in Python

Cracker Barrel restaurants typically set out a free table game called Peg Triangle Solitaire.

For this assignment, you will implement a similar game that we shall call DigiPeg Solitaire. In DigiPeg Solitaire, the user can specify how many rows [1-9] and how many columns [1-9] the board should have.

In DigiPeg Solitaire, pegs can jump over an adjacent peg into an empty space. The jumping peg, the adjacent peg, and the empty space must be in a straight line as in Peg Triangle Solitaire. The potential direction for a peg to jump is over, under, left, or right.
When a jump is made the adjacent peg (the peg that was jumped over) is removed.
The game is over when no more moves are possible.

When 2 or fewer pegs remain when the game ends, the message You’re a DigiPeg Genius!

When 3 or 4 pegs remain, the message Not too shabby, rookie.

When 5 or 6 pegs remain, the message That’s nothing to write home about.

When 7 or more pegs remain, the message You’re a DigiPeg Igno-Ra-Moose.
+——————————————————————————————————————-+
10 points. The game_over method is correct. (All or nothing.)

10 points. The final_message method is correct. (3 points off for each incorrect case up to 10 points.)

40 points. The legal_move method returns True correctly. (5 points off for not identifying a legal jump in each of the eight directions.)

20 points. The legal_move method returns False correctly. (10 points off for each type of illegal jump that is identified as a legal one up to 20 points.)

10 points. The make_move method is correct. (All of nothing.)

10 points – The methods you write are properly commented, easy to understand and do not contain unnecessary code. (3 points for each type of improvement up to 10 points.)
+——————————————————————————————————————-+
Attached is the code you’re required to start from.  Do not change anything that’s underneath the “The four missing methods go here. Do not modify anything else.” comment.

Also attached are sample transcripts that the program needs to be able to match.

 

You can place an order similar to this with us. You are assured of an authentic custom paper delivered within the given deadline besides our 24/7 customer support all through.

 

Latest completed orders:

# topic title discipline academic level pages delivered
6
Writer's choice
Business
University
2
1 hour 32 min
7
Wise Approach to
Philosophy
College
2
2 hours 19 min
8
1980's and 1990
History
College
3
2 hours 20 min
9
pick the best topic
Finance
School
2
2 hours 27 min
10
finance for leisure
Finance
University
12
2 hours 36 min
[order_calculator]