I've changed the code so the computer can play against itself. I gave each of the two computer players different weights for the evaluation. This is like having two human players with different playing styles.
Changed the game loop so that they play matches of twenty games against each other using their current weightings. The loser of a match changes their weightings by some small random amount. Then they play another match to see who wins.
I left it to play 5,000 matches to see if it improves. Over time, it ought to evolve into a better player.
No comments:
Post a Comment