jjst / ultimate-tictactoe

An implementation of ultimate tictactoe in Elm
MIT License
15 stars 0 forks source link

AI: Randomise moves with same weight #20

Closed jjst closed 4 years ago

jjst commented 6 years ago

Currently when presented with choices with the same weight the AI will always play the first option

Impact

When in a given position the AI will always play the same series of moves. This makes the AI predictable. If a player finds a way to wind they can play this way over and over again.

jjst commented 4 years ago

Fixed in https://github.com/jjst/ultimate-tictactoe/commit/7a828bdb535297ef3b20da849c3549d011492aed#diff-6be22524409ba4f694cea561d582f183R57