Hacker News new | past | comments | ask | show | jobs | submit login

Sorry very tangential.

One time I wrote something like this, and shared on reddit. Like you, I used minimax to solve tic tac toe. My comment was downvoted to oblivion and one highly upvoted person wrote:

> You don't need "AI" to solve tic tac toe, it's a solved problem!




Damn...

Even though it truly is a solved problem, it's much more intuitive (and fun) to implement a tic-tac-toe solver from scratch using minimax than any lookup tables heuristic.

Since it is a generic solution, I believe the minimax solver can also be easily modified to implement an "AI" player for that Roman version of the game as well, where pieces are removed.

By the way, using minimax was also one of that college task requirements!


And here's a picture of the solution. https://xkcd.com/832/

Could fit on a sheet of paper indeed.


Someone actually implemented a tic-tac-toe player in Reddit comments using character graphics and cross-comment links.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: