A TicTacTie bot in C. Guarantees win or draw(I think so) This bot computes step for Computer ('C') against opponent ('O'). 'X' represents empty spots.
Example:
Input1
OOX
XCX
XCX
Output1
OOC
XCX
XCX
Input2
CCX
XOX
OXX
Output2
CCC
XOX
OXX
Input3
XOC
XXX
COX
Output3
XOC
XCX
COX
Input4
COC
OXX
XXX
Output4
COC
OCX
XXX