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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How to Build a Chess Engine and Fail

134 点作者 xlinux6 个月前

10 条评论

janalsncm6 个月前
I am curious why the author chose a genetic algorithm rather than standard backprop to distill the evil. Logistic regression seems like a pretty reasonable choice and it’ll be a lot faster than a genetic algorithm. Add an L1 penalty for sparsity.<p>In the past I’ve tried distilling not just the eval function but the outcome of the search (something like depth 20) in a neural net. It kind of works, but not very well until the net is pretty big. Deepmind did something similar.
评论 #42186607 未加载
vunderba6 个月前
As part of my undergrad work, I used similar principles to the article (steady state genetic algorithms) to create a bot capable of playing Reversi where the fitness function was loosely defined as a set of &quot;weights&quot; on each square across the 8x8 board. These were used as part of the evaluation function in the classic minimax algorithm.<p>We trained over the course of 5-6 days, and the end generation was capable of beating an intermediate player but got completely destroyed by experts. It was a fun project!
评论 #42192041 未加载
senthilnayagam6 个月前
I built a list of simple games in pygame with code and solver generated by AI.<p>Have implemented 2048, Minesweeper, Sudoku and chess. First three are single player games have made good progress.<p>I still don&#x27;t understand UCI interface and have not thought through chess solving. Hope will take another try this weekend<p><a href="https:&#x2F;&#x2F;github.com&#x2F;muonium-ai&#x2F;simplegames">https:&#x2F;&#x2F;github.com&#x2F;muonium-ai&#x2F;simplegames</a>
skeltoac6 个月前
I especially enjoyed the link to The Bitter Lesson by Rich Sutton, which I hadn&#x27;t read before. Now I wonder what &quot;discoveries&quot; have been built into today&#x27;s AI models and how they might come to be detrimental.<p><a href="http:&#x2F;&#x2F;www.incompleteideas.net&#x2F;IncIdeas&#x2F;BitterLesson.html" rel="nofollow">http:&#x2F;&#x2F;www.incompleteideas.net&#x2F;IncIdeas&#x2F;BitterLesson.html</a>
评论 #42188177 未加载
评论 #42187972 未加载
zelphirkalt6 个月前
All this I guess comes after laying the ground work, like implementing a bitboard representation or something else, and implementing the logic for being able to tell, whether a move is valid or invalid. That in itself is already a lot of work. iiuc the idea here is &quot;merely&quot; writing the engine, and take everything else as a given.
评论 #42185441 未加载
snickerbockers6 个月前
This is something that&#x27;s been on my bucket list for a while now, although I&#x27;d do it using &quot;normal&quot; programming instead of DL.<p>i feel like if you can bruteforce every possible board configuration for the next 3 turns and then make the move that leads to more desirable outcomes, that ought to be enough to thrash most amateurs. Probably not good enough to beat somebody who actually understands chess tactics on a deeper level, but I expect most non-masters are just &quot;winging it&quot; and making things up as they go along, so a machine that can think farther ahead than you would win more often than not.<p>But like I said, this is all just me fantasizing about a project I haven&#x27;t even started yet so my hypothesis could easily be wrong.
评论 #42187747 未加载
评论 #42187226 未加载
评论 #42188789 未加载
binarymax6 个月前
Doesn’t look like failure to me - looks like a fun project that disproved your distillation hypothesis!<p>Great write up and thanks for sharing.
评论 #42189029 未加载
bob10296 个月前
&gt; To be exact every participant has a maximum of 1024 tokens at his disposal to craft the best chess bot they can.<p>I&#x27;d be quite tempted to try linear genetic programming with a variant of a Brainfuck-style UTM for this kind of constraint. Assuming 1024 tokens = 1024 bytes = 1024 instructions, I think there is <i>some</i> degree of performance that is feasible.<p>This is really interesting to me because hand-coding BF to do something like chess is absolutely beyond me. I wouldn&#x27;t even know where to begin. A LGP-coded BF program would almost certainly outperform anything I could design with my own hands.
评论 #42187482 未加载
deadbabe6 个月前
Why build a chess engine these days, just use an LLM?
评论 #42187948 未加载
评论 #42187631 未加载
评论 #42187635 未加载
评论 #42188822 未加载
vikhack6 个月前
I don&#x27;t really know how to do that but I&#x27;m really putting in my effort