TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Probabilistic Chess

2 点作者 marcsto211 个月前
A fun new variant of chess that adds probabilities into the mix. The rules are simple:<p>* Each square on the board has a probability of successfully moving to it. * A happy-face dice roll means the move was successful. Otherwise, the move isn&#x27;t played and it&#x27;s the opponent&#x27;s turn to play. * You win by capturing the opponent&#x27;s king.<p>For example, if you attempt to move a pawn from e2 to e4 and e4 has a 60% success probability, you will see a dice roll animation. The dice will have a 60% chance of landing on a happy face and a 40% chance of landing on a sad face. If it lands on a happy face, the move succeeds. If it lands on a sad face, the move fails, the pawn returns to e2, and it&#x27;s now the opponent’s turn.<p>There are some interesting changes to chess that comes from having move probabilities: * Checkmate does not win the game; capturing the king does since there&#x27;s no guarantee that capturing the king will succeed. * You can make moves while your king is in check. * You can make moves that put your king in check. This is a gamble but it can make sense if the king is on a low probability square.<p>AI Opponent I tried a few different approaches. The best one so far is a probability-aware alpha-beta search which uses a combination of expectation maximization and stockfish to play. Everything is implemented in client-side Javascript and WebAssembly.<p>I put more details on how it works in this blog post: <a href="https:&#x2F;&#x2F;marc.ai&#x2F;probabilistic-chess.html" rel="nofollow">https:&#x2F;&#x2F;marc.ai&#x2F;probabilistic-chess.html</a><p>Developing Probabilistic Chess has been a lot of fun. My dad and I have spent over 30 years working on programming projects together and a big part of that was focused on ML and applying it to chess so building a new variant of chess together has been great.<p>I&#x27;d love some feedback on this game.<p>This was inspired by Cameron Sun&#x27;s excellent probabilistic tic tac toe that he posted on HN recently.

暂无评论

暂无评论