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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The rivalry behind the world’s smallest chess program

27 点作者 rottyguy超过 9 年前

5 条评论

billforsternz超过 9 年前
You can't really talk about 492 bytes versus 472 bytes or whatever unless you precisely define the platform the code runs on, and the features required. To my mind castling and enpassant should be required, they are a fundamental part of the game. Also underpromotion and stalemate (if they don't implement castling, I'm guessing they take some other shortcuts). On the other hand, alphanumeric labels for ranks and files just mess up the rudimentary text console display and should be omitted. I would require rejection of all illegal move attempts by the human opponent. But I wouldn't require implementing 3 fold repetition, insufficient material or 50 move draws.
z0r超过 9 年前
Poudade wrote the 256 byte intro megapole which recently featured at Assembly 2015 (<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Z8Av7Sc7yGY" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=Z8Av7Sc7yGY</a>). Lot of drama for his online personas beyond this chess competition (which I&#x27;ve just wasted an hour reading about) but unquestionably an excellent size coder
sireat超过 9 年前
There was a long discussion on the validity of this (here on YC and on reddit) achievement when Poudade&#x27;s program was first released.<p>I still do not consider it a proper chess program as castling and en passant have been an integral part of chess rules for centuries.<p>So these programs are nice but they are not chess.<p>For this contest to have a relevance, make it simple: program must abide by the chess rules (per say FIDE or USCF) and also support UCI to avoid worrying about interfaces: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Universal_Chess_Interface" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Universal_Chess_Interface</a><p>That would make it a nice level playing field.<p>PS. Of course then some smartass would write:<p>import Crafty<p>import UCI<p>Crafty.Play(UCI.Handle)
shard超过 9 年前
This brings up the question of how chess engine size is related to playing ability. I couldn&#x27;t find an online comparison, does one exist?<p>As a corollary, does anything similar exist for go? People trying to write the smallest go engine?
pavel_lishin超过 9 年前
I wonder how many bytes would be required to add castling and en passant.