Share your repls and programming experiences

← Back to all posts
IMPOSSIBLE TIC TAC TOE
tarunp (3)

You will never beat this bot
https://repl.it/@tarunp/TIC-TAC-TOE

Comments
hotnewtop
Bunnytoes (146)

I think you meant import not timport

bpak23 (0)

I beat it.

Would you like to play again? [Y/N] Y
How many players [1-2]: 1
Player Value [X or O]: X

|| 1 2 3
|| 4 5 6
||_ 7 8 9
Your turn [1-9]: 2

|X| 1 2 3
|O| 4 5 6
||_ 7 8 9
Your turn [1-9]: 9

|X| 1 2 3
|O|O 4 5 6
|_|X 7 8 9
Your turn [1-9]: 4

|X| 1 2 3
X|O|O 4 5 6
_|O|X 7 8 9
Your turn [1-9]: 1

X|X|O 1 2 3
X|O|O 4 5 6
_|O|X 7 8 9
Your turn [1-9]: 7

X|X|O
X|O|O
X|O|X
Congratulations! You beat the bot! Did you cheat?

Would you like to play again? [Y/N]

AlbertJanssens (0)

Python 2.7.10 (default, Jul 14 2015, 19:46:27)
[GCC 4.8.2] on linux

Welcome to Tic Tac Toe!
On your turn, type in 1-9 to place your piece on that spot

How many players [1-2]: 1
Player Value [X or O]: X
_|| 1 2 3 _|| 4 5 6 _|| 7 8 9
Your turn [1-9]: 5
_|| 1 2 3
O|X| 4 5 6 _||_ 7 8 9
Your turn [1-9]: 9

O|| 1 2 3
O|X| 4 5 6 _||X 7 8 9
Your turn [1-9]: 7

O|| 1 2 3
O|X|_ 4 5 6
X|O|X 7 8 9
Your turn [1-9]: 3

O||X
O|X|

X|O|X
Congratulations! You beat the bot! Did you cheat?

Would you like to play again? [Y/N]

tarunp (3)

did you change the win chance