Skip to content

luciangutu/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

tic-tac-toe

$ python ./run.py 
Wanna start first? [Y/n] n
1 2 3 
4 5 6 
7 8 9 
AI moves the piece x to 6
1 2 3 
4 5 x 
7 8 9 
Where do you want to place your piece o? 1
===========================
o 2 3 
4 5 x 
7 8 9 
AI moves the piece x to 3
o 2 x 
4 5 x 
7 8 9 
Where do you want to place your piece o? 9
===========================
o 2 x 
4 5 x 
7 8 o 
AI moves the piece x to 5
o 2 x 
4 x x 
7 8 o 
Where do you want to place your piece o? 4
===========================
o 2 x 
o x x 
7 8 o 
AI moves the piece x to 7
o 2 x 
o x x 
x 8 o 
Player x WON!