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 Lab
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
Set minimum number of sticks a player can toke to
Set total number of sticks to
Set current ployer to ployer
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.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
