In this project I made a 2 player game.

This is a game I made for a school project. You can either play against the computer or another person. There are 2 difficulty modes when you play against the computer, Easy and Hard. The game begins by generating a pile of stones with a random number of stones in it. Next it chooses a player to begin the game. The goal of the game is to force your opponent to remove the last stone from the pile. The player who removes the last stone loses. To view the source code, please click here.

Below is an example game where the automated player won in easy mode.
Below is an example game where the automated player lost in easy mode.
Below is an example game where the automated player won in hard mode.