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

shuru10

Language: Layout:
- ] Show input
Absolute running time: 0.31 sec, cpu time: 0.21 sec, memory peak: 7 Mb, absolute service time: 0,31 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

    
                
stackse - search stackoverflow differently