Implementing and using MinMax with four in row (connect4) game
问题 I'm trying to implement the MinMax algorithm for four in a row (or connect4 or connect four) game. I think I got the idea of it, it should build a tree of possible boards up to a certain depth, evaluate them and return their score, then we just take the max of those scores. So, aiChooseCol() checks the score of every possible column by calling MinMax() and returns the column with the max score. Now I wasn't sure, is this the right way to call MinMax() ? Is it right to check temp = Math.Max