Could Anyone Help Solve Python Problem Thanks Game Sticks Going Revisit Favorite Childhood Q37152950

Could anyone help me solve this Python problem? Thanks

Game of Sticks

We are going to revisit our favorite childhood game. The game ofsticks. In this game, there is a heap of sticks between twoplayers. On each players turn they may pick up 1 to 3 sticks. Theplayer who has to pick up the final stick will be the loser.

Example Game

The game starts with 20 sticks on the board.

Greg takes 3 sticks, there are 17 remaining.

Marcia takes 2 sticks, there are 15 remaining.

Greg takes 1 sticks, there are 14 remaining.

Marcia takes 3 sticks, there are 11 remaining.

Greg takes 2 sticks, there are

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.