5 ms·
I'm curious why it's not deterministic. If I move E4, it seems to respond with one of three openings at random
by kayson 6y ago
I'm curious why it's not deterministic. If I move E4, it seems to respond with one of three openings at random
- cortesoft 6y agoYou can see the Math.random call in the source code: https://nanochess.org/chess4.html#sour https://nanochess.org/chess4.html#sour
- kayson 6y agoThat doesn't answer the question. Yes, it's random, but why? Is it just to avoid repeating move sequences so you can't replay the same game multiple times?
- ghayes 6y agoI assume it's making a value-weighted move. To keep things interesting, you might choose from several moves that have similar EVs, esp. since the system only looks 4 moves deep, so there's uncertainty around how much better a given move actually is.
- cortesoft 6y agoAh, then yes, likely for two reasons.. to prevent the exact same game from happening if you play the same moves, and also as a way to choose between equally weighted (in terms of expected value) moves
- deleted 6y ago[deleted]