So, I am stumped. I am trying to write the AI for the next version of tic tac toe and I cant figure out how the AI should choose its move. More specifically, how can the AI identify the human player has two out of three in a row and make its next move to block it. If anyone can help me out with Ideas id be happy to send them the code.
I am kind of a noob when it comes to programing so I am not the best problem solver yet.
thanks in advance.
|