I made something that did stats on this a few months ago see it here https://barronwasteland.wordpress.com/2014/08/04/random-move...
Chess: Who will win in this riveting game of Math.random() vs. Math.random()?
81–90 of 131 posts
Re: Chess: Who will win in this riveting game of Math.random() vs. Math.random()?
#82Never thought this comment would end up on HN when I wrote it ;) I remember writing this example and being mesmerized watching the games progress. I think I made an alternate version that speed up the time and opened a handful of browser tabs to watch the games. Most of them do end up in insufficient piece draws or the 50-move rule. Glad to see others are enjoying it :)
I also made an alternate version which runs faster, and I added some code to count games. About an hour on Chrome got me to this point:
44 white wins.
415 ties.
41 black wins.
500 games played.
EDIT: Another hour, and the stats are now: 74 white wins.
847 ties.
79 black wins.
1000 games played.Re: Chess: Who will win in this riveting game of Math.random() vs. Math.random()?
#83Earlier quoted context omitted.
Does it matter if there is an advantage to playing white vs black if both players are playing completely randomly? It should only really matter if there is an advantage when both players are playing optimally.
if completely random, you may prove that there is an empirical advantage to starting the game without taking in account the level of any player, because two players playing randomly should be equivalent. I'm not entirely sure, though.
Re: Chess: Who will win in this riveting game of Math.random() vs. Math.random()?
#84One thing that is on my (way too long) list of things to try is n-gram chess. 1-gram chess would, for every move from black, have a dictionary of (following move, win probability) pairs, and it would pick one that is legal using the win probabilities to generate a distribution (if there is a sure win, almost always pick it; if there is a move that always lost before, pick it very rarely) You can start this of with em…
How is this different from an opening tree?
It would also be used in end games.
Re: Chess: Who will win in this riveting game of Math.random() vs. Math.random()?
#85Earlier quoted context omitted.
It's not just random vs random. Two extremely weak players will take hours to finish a won game, because the player with the major material advantage does not know how to win! When teaching kids, it's not uncommon to, after teaching them how to move all the pieces, spend time teaching them how to perform the most basic of mates: KQ vs K, KRR vs K, KR vs K. Only after those three are mastered we have a good opportunit…
I still don't know how to checkmate with two bishops. I mean, I've read how to do it, but if you stuck me in an endgame situation, I'd probably draw. Luckily, I have never actually had an endgame with a king and two bishops versus a king. Same thing with king, knight, and bishop.
Re: Chess: Who will win in this riveting game of Math.random() vs. Math.random()?
#86Because check mate is a very small subset of possible moves at the end game, I'm guessing the vast majority of games will end(?) with 2 kings moving around randomly for all of time. This assumes most games will make it past the hump of mid game where its possible the king's motion will be limited and a checkmate can erroneously happen, I suspect this is a rare case as well. On a side note I wonder what kind of useful…
Re: Chess: Who will win in this riveting game of Math.random() vs. Math.random()?
#87I found myself getting mad at Math.random() pretty quickly. "Argh, you just got to promote two pawns, and you made them both black bishops!?!? I oughta fire you and hire an LFSR!"
Re: Chess: Who will win in this riveting game of Math.random() vs. Math.random()?
#88Earlier quoted context omitted.
Does it matter if there is an advantage to playing white vs black if both players are playing completely randomly? It should only really matter if there is an advantage when both players are playing optimally.
if completely random, you may prove that there is an empirical advantage to starting the game without taking in account the level of any player, because two players playing randomly should be equivalent. I'm not entirely sure, though.
Re: Chess: Who will win in this riveting game of Math.random() vs. Math.random()?
#89Earlier quoted context omitted.
This is a drawn game according to the rules of chess, since checkmate is impossible. Other draw conditions include: * Stalemate (=The side to move has no legal moves) * 50 moves in a row without any permanent changes happening ("permanent changes" means a pawn moving or a piece being captured) * Exactly the same game state occurs for the third time ("game state" is whose turn it is + status of castling ability + stat…
As I understand it, the threefold repetition rule does not mandate a draw, it just allows either player to claim a draw upon occurrence.
Re: Chess: Who will win in this riveting game of Math.random() vs. Math.random()?
#90Earlier quoted context omitted.
It's not just random vs random. Two extremely weak players will take hours to finish a won game, because the player with the major material advantage does not know how to win! When teaching kids, it's not uncommon to, after teaching them how to move all the pieces, spend time teaching them how to perform the most basic of mates: KQ vs K, KRR vs K, KR vs K. Only after those three are mastered we have a good opportunit…
This feels almost like a metaphor for teaching young people about anything... step 1:learn to play a game and the rules. Step 2: learn the implied rules for winning, and how to know when you are winning.