Question: CSCI 1 5 1 1 - Lab 5 2 . The game is Pick Up Sticks. Below is the pseudo code for the problem. Implement

CSCI 1511- Lab 5
2. The game is "Pick Up Sticks". Below is the pseudo code for the problem. Implement the problem using Python code.
Set maximum number of sticks a player can take to 4
Set minimum number of sticks a player can toke to 1
Set total number of sticks to 13
Set current ployer to ployer 1
Display game instructions
While there are still sticks in pile
Ask current ployer how mony sticls he or she wonts
Whife current plover asks to toke more thon wumber of stiok lefit or more than maximum or less than minimum
Ask current ployer how mony sticks he or she wants
Reduce number of sticks in pile by number of sticks current ployer asked to toke
Ino sticksleft
current ployer wins
Make current ployer other player
See the figure on the next page for a simulation.
 CSCI 1511- Lab 5 2. The game is "Pick Up Sticks".

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!