Where to go now
You should prove yourself creating an offensive play strategy. Defensive play only tries to block the human player, without trying to beat it. It tries to draw. Try to make the computer more aggressive trying to block the human player and at the same time connecting more discs. This can be done in three steps:
- Watch if there are winning moves. If there is a winning column, simply play that column and don't care about the human player.
- If there aren't winning moves, and playing defensively you get only one column in
aiMovesarray, that is there's a move which will cause the most damage to a human player, play that column.
- If there aren't winning moves and playing defensively you get more than one column in
aiMovesarray, don't pick ...