Jan-08-2023, 12:25 AM
(This post was last modified: Jan-08-2023, 09:56 AM by Yoriz.
Edit Reason: removed unnecessary quote of previous post
)
Great, thanks!
Could that algorithm work better if I switched diagonals with combinations (0, 2, 4, 6, 8) and (1, 3, 5, 7) as it's written in the code? I made that change because it's too easy to win with classic tic-tac-toe rules. This change makes the game more interesting.
Perhaps that the computer always tries to have 3 in a row vertical or horizontal so that I can't win it too easy if I change sides of the cube.
And, in the class Square, why do we need this area of triangle? What does that triangle represent?
Could that algorithm work better if I switched diagonals with combinations (0, 2, 4, 6, 8) and (1, 3, 5, 7) as it's written in the code? I made that change because it's too easy to win with classic tic-tac-toe rules. This change makes the game more interesting.
Perhaps that the computer always tries to have 3 in a row vertical or horizontal so that I can't win it too easy if I change sides of the cube.
And, in the class Square, why do we need this area of triangle? What does that triangle represent?