In a 1989 Scientific American article , professor and mathematician A. K. Dewdney describes a completely non-electronic Tinkertoy machine that could play Tic Tac Toe.

Continued here:
1989 Scientific American: Tinkertoy Machine Plays Tic Tac Toe