You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might be possible to optimize the move evaluation function by simply recording the previous move position (in 2D index of the board) and check the horizontal, vertical, left & right diagonal lines that only intersect from that point. This approach aims to identify if a straight line of X's or O's has already been formed in these directions, thus determining the game's outcome, instead of exhaustively checking the entire board (each rows, each columns, and each major and minor left and right diagonals).
The text was updated successfully, but these errors were encountered:
It might be possible to optimize the move evaluation function by simply recording the previous move position (in 2D index of the board) and check the horizontal, vertical, left & right diagonal lines that only intersect from that point. This approach aims to identify if a straight line of X's or O's has already been formed in these directions, thus determining the game's outcome, instead of exhaustively checking the entire board (each rows, each columns, and each major and minor left and right diagonals).
The text was updated successfully, but these errors were encountered: