Tic Tac Toe AI
richtan (119)

I made this a few months ago during my free time. Not sure if this counts as a bot, but you can also play with another human.

You are viewing a single comment. View All

I got an error ;(. I'll write it over here:
Traceback (most recent call last):
File "python", line 456
elif int(self.ct1) - 1 in [0, 2, 6, 8] and not self.board[{0:8,8:0,2:6,6:2,1:"X",3:"X",4:"X",5:"X",7:"X"}[int(self.ct1) - 1]] in self.xos:
SyntaxError: invalid syntax"

richtan (119)

@matti12: sorry i was adding something at that time. it should work now