Tic-Tac-Toe Game Example 3

Game that ends in a tie

$ python3 tictactoe.py
-----------------------
Welcome to Tic-Tac-Toe!
-----------------------

Enter your choice like the numbers below:

 0 | 1 | 2
-----------
 3 | 4 | 5
-----------
 6 | 7 | 8

Computer chooses: 8

   |   |
-----------
   |   |
-----------
   |   | O

Enter 0-8 for your choice: 0

 X |   |
-----------
   |   |
-----------
   |   | O

Computer chooses: 5

 X |   |
-----------
   |   | O
-----------
   |   | O

Enter 0-8 for your choice: 2

 X |   | X
-----------
   |   | O
-----------
   |   | O

Computer chooses: 4

 X |   | X
-----------
   | O | O
-----------
   |   | O

Enter 0-8 for your choice: 3

 X |   | X
-----------
 X | O | O
-----------
   |   | O

Computer chooses: 6

 X |   | X
-----------
 X | O | O
-----------
 O |   | O

Enter 0-8 for your choice: 7

 X |   | X
-----------
 X | O | O
-----------
 O | X | O

Computer chooses: 1

 X | O | X
-----------
 X | O | O
-----------
 O | X | O


It was a draw.