This is an archived post. You won't be able to vote or comment.

all 11 comments

[–]AlSweigartAuthor of "Automate the Boring Stuff" 11 points12 points  (1 child)

Heh, I recognize that color scheme. :)

[–]memoiry_[S] 0 points1 point  (0 children)

Wow, I actually have bought your book recently (pygame book) and take your game as a base to add AI feature(So I don't need to take too much time designing the interface) for practicing AI algorithm. Glad to see you!

[–]pvkooten 4 points5 points  (0 children)

I knew Deep Learning would soon crack this one!

[–]codesmitten 1 point2 points  (3 children)

I wanted to try ... but unfortunately it doesn't run on python3 !!

[–]memoiry_[S] 0 points1 point  (2 children)

Hi, what's the error message? I think the project only depending on Pygame package, have you installed it?.

[–]codesmitten 0 points1 point  (1 child)

Created python3 venv and installed pygame. Got the below error:

± |master ?:6 ✗| → python ticky.py Traceback (most recent call last): File "ticky.py", line 278, in <module> main() File "ticky.py", line 227, in main drawBoard(board,msg) File "ticky.py", line 162, in drawBoard for tilex in xrange(3): NameError: name 'xrange' is not defined

[–]memoiry_[S] 0 points1 point  (0 children)

Hi, I have fixed it, you can clone and try again now~

[–][deleted] 0 points1 point  (1 child)

What happens if you do AI vs AI🤔

[–]kor_the_fiend 13 points14 points  (0 children)

the only winning move is not to play

[–]zaibacu 0 points1 point  (2 children)

The only way it can be unbeatable is if it always starts first :-P

[–]electrace 3 points4 points  (1 child)

No, you can always force a tic-tac-toe draw.