This is a version of Tic Tac Toe on two platforms:
This was originally written as a C program and then simplified and ported to assembly to be run as a testROM test case for the PCXU Phase II Electrical CharROM, mostly as a joke.I have some notes which explain the algorithm really well
I also have a tool which calculates all legal game positions: