Learning to Play Tic-Tac-Toe with Jax

by antogninion 1/4/2026, 5:09 AMwith 7 comments

by empath75on 1/4/2026, 11:36 AM

You can build a machine that plays perfect tic-tac-toe with 300 matchboxes.

https://en.wikipedia.org/wiki/Matchbox_Educable_Noughts_and_...

by quibonoon 1/9/2026, 5:14 PM

Nice. I notice that the author has some other interesting posts. I like this one on the James–Stein estimator [0] and this one [1] on day length variations.

[0] https://joe-antognini.github.io/machine-learning/steins-para... [1] https://joe-antognini.github.io/astronomy/daylight

By the way I think there's a missing factor of rho in the numerator in [1] in the sample transformation section. Should be rho^2

by domoritzon 1/4/2026, 11:49 AM

Google produced a podcast introducing ML concepts with the same game a few years ago. https://pair.withgoogle.com/thehardway/

by d56470on 1/4/2026, 8:18 AM

very cool. I love seeing a fully-written-out solution like this, thanks

by atulvion 1/4/2026, 9:00 AM

Beautiful. I'll use this to train an AI on a few of my fave games