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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Chessboardify – Make the grid a chessboard

95 点作者 mapehe将近 9 年前

11 条评论

jtokoph将近 9 年前
Neat variation on LightsOut (<a href="http:&#x2F;&#x2F;chenglou.github.io&#x2F;react-lights-out&#x2F;" rel="nofollow">http:&#x2F;&#x2F;chenglou.github.io&#x2F;react-lights-out&#x2F;</a>). I had some trouble since the rules for which lights toggle are slightly different with this one:<p>Classic lights out only toggles the light you press and the 4 lights in the 4 cardinal directions. I was surprised how baked into my brain that was and how much trouble I had getting my brain to adapt.
评论 #12230144 未加载
评论 #12229316 未加载
rustyfe将近 9 年前
My only complaint is that the alert box prevents seeing the final board. It&#x27;d be nice to get to actually see my beautiful chessboard creations.
评论 #12228971 未加载
评论 #12237372 未加载
评论 #12228564 未加载
评论 #12228567 未加载
mapehe将近 9 年前
I wanted to sketch this idea of a puzzle game that I came up with while on a walk. It turned out to roll pretty well though it couldn&#x27;t be any more minimal.<p>Simple things are pretty powerful sometimes, don&#x27;t you think?
评论 #12228504 未加载
alxv将近 9 年前
Like Lights Out, this game can be solved using Gaussian elimination over Z&#x2F;2 (integers modulo 2). This means the order of the tiles you press do not matter, and that you can solve the board by forming the desired pattern row by row.
评论 #12230561 未加载
评论 #12229847 未加载
RodgerTheGreat将近 9 年前
Cool! I was inspired to write an implementation of the game in K: <a href="http:&#x2F;&#x2F;johnearnest.github.io&#x2F;ok&#x2F;ike&#x2F;ike.html?gist=0007b9afbe6e625b25e95eb286e32b98" rel="nofollow">http:&#x2F;&#x2F;johnearnest.github.io&#x2F;ok&#x2F;ike&#x2F;ike.html?gist=0007b9afbe...</a>
egypturnash将近 9 年前
I used to play something similar all the time on my Merlin back in 1978. <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Merlin_(game)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Merlin_(game)</a>
Artlav将近 9 年前
Am i the only one who finds it more fun to try to get all the squares the same color, rather than into a chessboard?<p>Neat game.
BariumBlue将近 9 年前
Got an excel solver for the 3x3<p>I&#x27;d share i&#x27;d via google spreadsheet if I could do it anonymously without creating a throwaway account<p>(All this in 3x3 grids, with the numbers mod 2)<p>- 1. Add the current light up state to the desired light state (chessboard)<p>- 2. Create a grid that&#x27;s lit up as if from button presses from previous grid (using the game rules)<p>- 3. Flip the positions of the previous grid across the center. This grid is the grid of buttons to push<p>No idea how it works though, and it doesn&#x27;t seem to work in the 4x4 case either
评论 #12236091 未加载
dorianm将近 9 年前
I did it in one move ;). Pretty neat game.<p><a href="http:&#x2F;&#x2F;imgur.com&#x2F;f5sryfs" rel="nofollow">http:&#x2F;&#x2F;imgur.com&#x2F;f5sryfs</a>
评论 #12229086 未加载
Grue3将近 9 年前
Is it me, or bigger boards are much easier than 3x3? You can pretty much build those row by row.
评论 #12237876 未加载
flippant将近 9 年前
What are you using Socket.IO for on the page?
评论 #12231231 未加载