Tic-Tac-Toe
CyanCoding (1415)

https://repl.it/@CyanCoding/Tic-Tac-Toe

As a fun side project, I built this awesome Tic-Tac-Toe game (with three AI levels) in May 2017.

You are viewing a single comment. View All
Govind05 (0)

Why it is tag impossible,I had beat it in my first attempt

CyanCoding (1415)

@govind05: I tagged it as impossible because until I had published it on the I built this challenge, nobody had ever beaten it before. I didn't even know it was possible! Now, I just leave it in there so that people think there's no way and keep trying until they figure it out.

Jeremiah32556 (0)

@govind05: I won too. Lol, I think the bot is not good with that spot

CyanCoding (1415)

@jeremiah32556: Sadly, it isn't that. It doesn't really have a choice since when it goes in the middle, it'd need to play twice to stop you (if you played on the end).

J7Luke (0)

@microwither The strategy used to beat the impossible computer is to choose a corner, then the opposite corner, then a third corner (or the middle if the computer has left it open). The way for a computer to tie a game that opens this way is to choose the corner opposite the one the player chose on the first move. From there, all the computer has to do is block any potential 3-in-a-row moves.

CyanCoding (1415)

@j7luke: Interesting! I'll fix this soon.