DEV Community

Linusx
Linusx

Posted on

Made a TikTakToe AI in Python

So this is one of my first self-made projects, I made this AI in Python. It's not perfect but I haven't managed to beat it, if you can feel free to comment, maybe I can improve it.

Works by:

  1. Block wins by player if possible
  2. Finish own win if possible
  3. if middle available, mark it
  4. else mark random empty spot

Top comments (0)