Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

shuru16

Language: Layout:
- ] Show input
Absolute running time: 0.21 sec, cpu time: 0.19 sec, memory peak: 7 Mb, absolute service time: 0,22 sec 
edit mode |  history  | discussion
Tic tac toe
X's Turn.
Choose a position from 1-9

x | - | -     1 | 2 | 3
- | - | -     4 | 5 | 6
- | - | -     7 | 8 | 9
Now O's turn.
Choose a position from 1-9

x | o | -     1 | 2 | 3
- | - | -     4 | 5 | 6
- | - | -     7 | 8 | 9
Now X's turn.
Choose a position from 1-9

x | o | x     1 | 2 | 3
- | - | -     4 | 5 | 6
- | - | -     7 | 8 | 9
Now O's turn.
Choose a position from 1-9

x | o | x     1 | 2 | 3
o | - | -     4 | 5 | 6
- | - | -     7 | 8 | 9
Now X's turn.
Choose a position from 1-9

x | o | x     1 | 2 | 3
o | - | x     4 | 5 | 6
- | - | -     7 | 8 | 9
player x you are playing nice
Now O's turn.
Choose a position from 1-9

x | o | x     1 | 2 | 3
o | o | x     4 | 5 | 6
- | - | -     7 | 8 | 9
player o you are playing nice
Now X's turn.
Choose a position from 1-9

x | o | x     1 | 2 | 3
o | o | x     4 | 5 | 6
x | - | -     7 | 8 | 9
player x you are playing nice
Now O's turn.
Choose a position from 1-9

x | o | x     1 | 2 | 3
o | o | x     4 | 5 | 6
x | - | o     7 | 8 | 9
player o you are playing nice
Now X's turn.
Choose a position from 1-9

x | o | x     1 | 2 | 3
o | o | x     4 | 5 | 6
x | x | o     7 | 8 | 9
player x you are playing nice
1
2
3
4
6
5
7
9
8