Tic Tac Toe

Interactive game where you play against an unbeatable computer AI. Project was developed using SOLID agile practices and Test Driven Development where tests are written first. AI uses minimax algorithm.

Link to repo: https://github.com/Carpk/java-tic-tac-toe

Game

Simply click on box you would like to place your token, then jQuery sends an Ajax request to the backend that processes your move and returns a counter move.

Image of game board in action

Winner

Image of the AI's eventual win. The backend runs a minimax algorithm written in Java.

Image of AI winning the game

Tests

Created using test-driven development. Each method was tested in our JUnit test suite, including private methods that were tested as public then set to private and the tests were commented out.

Image of passing test