Even complicated and confusing topics will be easily developed and covered if you request our help writing an essay. Place an order today!

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.

Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code “Newclient”

The post Rectangular Peg Solitaire in Python appeared first on Savvy Essay Writers.


Rectangular Peg Solitaire in Python was first posted on July 4, 2020 at 10:31 am.

©2020 “Savvy Essay Writers”. Use of this feed is for personal non-commercial use only. If you are not reading this article in your feed reader, then the site is guilty of copyright infringement. Please contact me at
[email protected]

Source link

"Get 15%discount on your first 3 orderswith us"
Use the following coupon
"FIRST15"

testimonials icon
Overview: Discuss and define key items in an SLA, the use of predictive analytics and how an IT manager might use such analytics, how to mitigate v...
testimonials icon
Simple Online Captcha Typing JobsEnter Minimum 10000 Captchas to Receive PaymentWeekly Basis PaymentFor More Informati...
testimonials icon
Marketing Plan Due Monday, April 27, 2015.Throughout this class you have examined a product of the...
testimonials icon
Need to do a business assignment. I will attach a file to this post, it'll have all the information and questions. Please try to do them on you...
testimonials icon
Running Head: GOOD AND BAD VISUALIZATIONGOOD AND BAD VISUALIZATIONStudents NameProfessors NameCourse NameDate1GOOD AND BAD VISUALIZATIONData visualiz...
testimonials icon
University of Modern SciencesStudent Name: ……………………………………College of BusinessStudent ID: …...
testimonials icon
k-3>1 or k-3<-1...
testimonials icon
 First of ALL ::::   Rhetorical Analysis Essay Outline A. INTRODUCTION:  Add an introduction that includes:...
testimonials icon
/*! elementor - v3.6.5 - 27-04-2022 */ .elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading...
testimonials icon
Prepare a paper and summarize key developments in macroeconomic history. Specifically, what are the similarities and differences betwee...
testimonials icon
INSTRUCTIONS: THIS ASSIGNMENT IS WORTH 20 POINTS Write your name and submission date on the docum...

Other samples, services and questions:

Calculate Price

When you use PaperHelp, you save one valuable — TIME

You can spend it for more important things than paper writing.

Approx. price
$65
Order a paper. Study better. Sleep tight. Calculate Price!
Created with Sketch.
Calculate Price
Approx. price
$65