Set up a little tic-tac-toe exhibition after watching WarGames again. Two copies of my program can play each other. Hands off the console, big audience of one, i.e. me with the last of the popcorn. On the third move I am informed that the computer wants the same square again.
I saved space by rotating the board and keeping the smallest board string as the lookup key. Stored move is an integer from 0 to 8. If it was an empty cell when I stored it why does it come back full?