TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Chessboardify – Make the grid a chessboard

95 pointsby mapehealmost 9 years ago

11 comments

jtokophalmost 9 years ago
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 未加载
rustyfealmost 9 years ago
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 未加载
mapehealmost 9 years ago
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 未加载
alxvalmost 9 years ago
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 未加载
RodgerTheGreatalmost 9 years ago
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>
egypturnashalmost 9 years ago
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>
Artlavalmost 9 years ago
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.
BariumBluealmost 9 years ago
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 未加载
dorianmalmost 9 years ago
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 未加载
Grue3almost 9 years ago
Is it me, or bigger boards are much easier than 3x3? You can pretty much build those row by row.
评论 #12237876 未加载
flippantalmost 9 years ago
What are you using Socket.IO for on the page?
评论 #12231231 未加载