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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

One Million Chessboards

337 点作者 chunkles17 天前
<a href="https:&#x2F;&#x2F;eieio.games&#x2F;blog&#x2F;one-million-chessboards&#x2F;" rel="nofollow">https:&#x2F;&#x2F;eieio.games&#x2F;blog&#x2F;one-million-chessboards&#x2F;</a>

23 条评论

eieio16 天前
Ah hello! I made this :)<p>My blog describing it is pretty sparse, sorry about that. Happy to answer any questions that folks have about the architecture.<p>Not that it was necessary, but I got really into building this out as a single process that could handle many (10k+&#x2F;sec) moves for thousands of concurrent clients. I learned a whole lot! And I found golang to be a really good fit for this, since you mostly want to give tons and tons of threads concurrent access to a little bit of shared memory.
评论 #43827446 未加载
评论 #43826972 未加载
评论 #43826996 未加载
评论 #43847480 未加载
评论 #43940482 未加载
评论 #43843566 未加载
评论 #43835543 未加载
nomilk16 天前
Someone barricaded their king with about 40 rooks, I hopped in with a knight, and they immediately captured me (with their king), then plugged the gap with another rook so I couldn&#x27;t do it again. That was amusing lol.
mdaniel16 天前
&gt; You can move between boards.<p>Evidently <i>move</i> between boards but not <i>capture</i> between boards :-( It&#x27;s extra weird because it&#x27;s not that the movement isn&#x27;t projected (e.g. queen blue lines all point correctly across board boundaries just the lines always stop at every piece on the other board, regardless of color)<p>So, I guess as an exercise in scale, <i>well done!</i> As one million <i>chess</i> boards, caveat gamator
评论 #43828386 未加载
评论 #43831844 未加载
pavel_lishin17 天前
(Also submitted here: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43822992">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=43822992</a>)<p>Neat, though I expected every individual board to have &quot;turns&quot; - I didn&#x27;t expect that I could just pick a random board, liberate the black queen, and have her clean up every single white piece on the board without my &quot;opponent&quot; getting to do anything in return.
评论 #43826786 未加载
评论 #43826625 未加载
NelsonMinar16 天前
This game has gotten interesting, for instance people have figured out a single board with pieces filling the outside edges two squares deep is impervious.<p>I love how we&#x27;re seeing emergent gameplay. That&#x27;s the genius in eieio&#x27;s projects. He&#x27;s inventing game systems that on the surface seem simple, but at this mass scale they have interesting possibilities that people discover. And they&#x27;re entirely new and invented, so we have no idea what to expect until the community figures it out.
ryukoposting16 天前
Chasing people around is a lot of fun. Very enjoyable, if not for chess reasons.
pmontra16 天前
It works well on my Android phone with Firefox. Well done.
评论 #43830030 未加载
sltkr16 天前
It crashed for me:<p><pre><code> Uncaught TypeError: Cannot read properties of null (reading &#x27;type&#x27;) at $80b91fc9d2f468ec$export$4abc8fab4139dfcd (index.e2b13a6c.js:1:406898) at $c692b767326c99ec$var$PieceHandler.getMoveableSquares (index.e2b13a6c.js:4:4373) at index.e2b13a6c.js:4:13557 at oQ (index.e2b13a6c.js:1:60912) at o0 (index.e2b13a6c.js:1:61761) at oZ (index.e2b13a6c.js:1:60941) at Object.useState (index.e2b13a6c.js:1:72377) at Object.q (index.e2b13a6c.js:1:10352) at $a2d3bef833187ce9$export$474cd6ee072cf5a4 (index.e2b13a6c.js:4:12305) at oF (index.e2b13a6c.js:1:58673)</code></pre>
darepublic16 天前
I was only able to move the black pieces. And I was able to move black consecutively on the same board. So I didn&#x27;t fully understand. Are the rules being enforced or is it just updates.<p>I enjoyed the sc2 UI when selecting pieces
评论 #43829198 未加载
cheekyfleek16 天前
We definitely have some cheaters, playing as the other color. Thought I saw it last night but I know I saw it today. I think I saw vindictive use of it too, both times. One black fortress was destroyed and next thing you know the nearest white fortress found its pieces moving into the worst possible positions, often next to a waiting black bishop or rook. I&#x27;m not sure how exactly you handle the colors, but in a world where I can RDC onto a dozen computers on a half dozen continents in seconds I suppose this was inevitable.
maxmcd17 天前
If you missed it, there was a nice story around One Million Checkboxes: <a href="https:&#x2F;&#x2F;eieio.games&#x2F;blog&#x2F;the-secret-inside-one-million-checkboxes&#x2F;" rel="nofollow">https:&#x2F;&#x2F;eieio.games&#x2F;blog&#x2F;the-secret-inside-one-million-check...</a><p>I wonder if something similar will happen here.<p>@eieio please open source the Go code, would be fun to poke at.
评论 #43826788 未加载
评论 #43827549 未加载
sashank_150916 天前
I spent a good half an hour making an impenetrable fortress for black, hopefully it lasts till the end (it will unless someone in black breaks it)
felipemesquita13 天前
I&#x27;ve achieved what seems to be a stable structure outside the edges, <a href="https:&#x2F;&#x2F;onemillionchessboards.com&#x2F;#1347,3624" rel="nofollow">https:&#x2F;&#x2F;onemillionchessboards.com&#x2F;#1347,3624</a>
yayitswei16 天前
I predict this will evolve into bot warfare! For example, here&#x27;s a snippet to advance pawns: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;yayitswei&#x2F;442cd5128b2dbfbd95a101b70f445183" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;yayitswei&#x2F;442cd5128b2dbfbd95a101b70f...</a>
ChessviaAI16 天前
Really impressive engineering work her, especially running it all on a single server with in-memory board state and optimistic rollback.<p>I work in chess tech, but in a very different direction (structured games, coaching, serious play). It&#x27;s inspiring to see chess reimagined like this!
tantalor16 天前
I saw a black piece moving around very quickly. Is there a secret way to move without clicking twice?
评论 #43835133 未加载
NooneAtAll316 天前
I made a Promoted-32 queen<p>I won
评论 #43827042 未加载
GenshoTikamura16 天前
It&#x27;s interesting how the game will end. Will it end up in a deadlock, or in a fierce duel of two power pieces with hundreds of players behind each struggling to gain control concurrently?
评论 #43838014 未加载
评论 #43831727 未加载
Mr_Modulo16 天前
Do the boards regenerate at some point? If not, it seems like most of the pieces will be depleted after a while.
评论 #43828407 未加载
amelius16 天前
These days I keep wondering what a 4d or 3d chess board looks like.
评论 #43830246 未加载
fredo202516 天前
This was a strange game. I could only move the black pieces, and I could take the opponent’s king. What next?<p>Also, the skull button seemed to do a lot of damage and shake things up.
cheekyfleek7 天前
The bots are alive!
gitroom16 天前
insane seeing so many wild ideas happen at once - i keep wondering, stuff like this, what keeps people coming back and building even weirder moves over time you think