Assume computer is playing as C and the opponent is playing as O. The bot must be intelligent enough to win when provided an opportunity. X represents a cell that is not taken. Also assume that computer made the first move
for eg:
Input1
CCX
XOX
OXX
Output1
CCC
XOX
OXX
What i want to know is how to approach this problem. Is there a specific algorithm to follow?. If yes please clarify it to me!