4 ms·
Show HN: Play against well-known chess players' openings
Hi, this is my first HN submission so please forgive the rough edges.
For this project gathered chess positions from some well-known chess players with a lot of games. (Usually ~25k games and 1M+ positions. The most for any player was GM Aman Hambleton with 1.8M positions indexed.)
With each board position I create a probability distribution of moves the player has made from that position. Then, I simply draw from that distribution (with sampling temperature) to choose a move. As long as there's at least one game with a given position, you can keep playing.
You'll see that it's pretty easy to get "out of book", where you've reached a novel position. It is possible to indirectly model a player's behavior throughout the game, so we can guess what moves a player might make in that position. But that's a bit more than a weekend project and a bit more involved than a lookup table.
- raydiatian 4y agoYou should add a Niemann opponent option that just reroutes users to the Twitter login page.
- berinateni 4y agoLol I did consider that and the stockfish github repo
- coolness 4y agoEric Rosen accepted my Stafford gambit! [1] ps. Is there an option to play black? [1] https://www.youtube.com/watch?v=eIecRRl1cfc https://www.youtube.com/watch?v=eIecRRl1cfc