Skip to main content

Nim: matchstick game with an unbeatable AI in C

Student & OtherDateFeb 2015DurationTwo weeks
  • Unbeatable XOR AI
  • Board game mechanics
  • Photoshop HUD
  • Graphical & shell display

About the project​

This project is based on a very famous matchstick game, and was made in C with Epitech's MiniLibX graphics library.

The board has a certain number of matchstick lines. The two players take turns; on each turn, a player can take one or several matchsticks from a single line. The player who takes the last matchstick loses.

The goal of the project is to create a program you can play against. The basic version must generate a game board with n matchstick lines and offer a simple interface so that the user can play against the computer.