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

shuru11

Language: Layout:
- ] Show input
Absolute running time: 0.21 sec, cpu time: 0.17 sec, memory peak: 7 Mb, absolute service time: 0,21 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 | -     1 | 2 | 3
x | - | -     4 | 5 | 6
- | - | -     7 | 8 | 9
Now O's turn.
Choose a position from 1-9

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

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

x | o | o     1 | 2 | 3
x | x | -     4 | 5 | 6
o | - | x     7 | 8 | 9
X won

    
                
Advertise here.