I discovered a bug in the game I had written on Tic Tac Toe. When the board is in a
certain state, the system did not take the obvious winning move. It still won the
game, but with an extra move required. This article details how to write a failing
unit test to reproduce the issue and how to update the minimax …
This is the fourth part in this trilogy! - with a brief interlude last week for an
introduction to the Minimax algorithm. This article builds on the App from part 1
and 2, which allows two players to play Tic Tac Toe. In this article we will
implement the minimax algorithm to determin the best move for the computer to …
This creates the View for Tic Tac Toe app utilising the Model and ViewModel created
in part 1. More unit tests are added as functionality is required and then the code
to get the tests to pass is implemented.
Test Driven Development is a process of writing unit tests for software before
writing the code to get those tests to pass. Many of us struggle to write the tests
before we write the software, but this has gotten easier in Xcode over the years.
This article demonstrate an approach for implementing a simple version of …