Merge pull request #565 from ribtips/main

modified the AI logic to make it a bit more difficult to win based on tic-tac-toe game theory
This commit is contained in:
Jeff Atwood
2022-02-11 10:14:27 -08:00
committed by GitHub

View File

@@ -110,7 +110,7 @@ sub check_for_corners {
@precedence=(1,9,7,3,5,2,4,6,8);
}
else {
@precedence=(5,1,9,7,3,2,4,6,8);
@precedence=(5,2,4,6,8,1,9,7,3);
}
foreach my $move (@precedence) {
my $validity=&check_occupation($move);