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