The Game of Nim

Math strategy game

Nim board

Check out the GitHub repository!

I coded the game of Nim in Python using the Pygame module. Two players take turns removing sticks from different piles. On their turn, each player must remove at least one stick from one of the piles, and may remove any number of additional sticks as long as they come from that same pile. The player that avoids removing the last stick is the winner.
[A/B/C/D] - Remove a stick from the corresponding pile
[>] - Pass the turn to the other player

Nim game screenshot