pollei / TicTacToe-java

TicTacToe game for SFCC CS141
GNU General Public License v3.0
0 stars 0 forks source link

Bob needs weighted probability that favors blocking and winning #3

Closed pollei closed 2 years ago

pollei commented 2 years ago

The code to detect near wins is in place. Wire up Bob so that he has higher chance to win when on cusp and to otherwise block opponent when they are on cusp of winning.

pollei commented 2 years ago

https://github.com/pollei/TicTacToe-java/commit/2dbfb267c1ee6b7538075040b539faadcb6f7452 closes issue