I've made a Connect Four game. The first move is made by the player and the second by the computer. Currently, the computer moves randomly; its moves are generated by C++'s random number generator rand()
. I'd like to build a basic AI that tries to win or prevent the player from winning.
How can I go about doing this?
No comments:
Post a Comment