Inspired by Salvatore Sanfilippo
educational video on
how matchboxes can learn to play tic-tac-toe,
here is a web-based implementation using the original Donald Michie approach, extended to have a configurable grid and strike sizes.
It is possible to start with an untrained machine or play against a pre-trained one by loading training data.
For each played move, all possible counter-moves will be shown, with their scores (probability of being played). The more games are played,
the better the machine becomes by refining these scores.
To train the machine you can enable the Autoplay mode, to automatically play games at fast pace and watch the machine performance improve over time.