frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

1D Chess

https://rowan441.github.io/1dchess/chess.html
132•burnt-resistor•1h ago

Comments

naorz•1h ago
Fun stuff, love it!
tkapin•1h ago
Nice! :)
schmeichel•1h ago
Finally, a version of Chess I can understand. Thank you.
asibahi•1h ago
This is really nice.

Incidentally, there is an actual 1D game that is one of the most popular games on the planet: Backgammon.

zniturah•11m ago
Good observation. Considering stacking of pieces maybe 1.5D though.
sieste•1h ago
It took me an embarrassing number of attempts to win.
bbx•1h ago
Oh very interesting. Even with these restrictions, there are quite a few variations, and it seems only one ends up with white winning.
lschueller•56m ago
Cool idea. This is smart and lean. I like it
tintor•53m ago
The first move is always: white rook takes black rook, then the only remaining move for black is to move the knight away, which results in checkmate.
nippoo•51m ago
If you play the game, you realise this ends up in stalemate.
umanwizard•11m ago
Black can’t move the knight: it’s illegal to make a move that puts yourself in check. Thus black has no legal moves, but isn’t in check, so the result is a draw.
vladde•51m ago
i could not beat it, and i can't read that chess notation
DrammBA•35m ago
the notation is just an array of move tuples, each tuple contains 1 move for white and 1 move for black, where each move is written as <1st letter of piece name><destination square>
thesuitonym•34m ago
The letter is the piece to move, and the number is the index to move to, starting from 1 on the left. The first alphanumeric pair is your move, then the computer's move. Comma. Your move, computer's move...
qup•22m ago
The first move after the comma is yours (open with kNight to 4), and the second move is apparently predetermined or always chosen.
northfield27•49m ago
Haha, i was taking N4 and N6, but didn’t figure the steps after that.

To win we need to let knight die because rook can move multiple steps to kill the king.

From a third person perspective R2 is a deceptive move that takes advantage algorithm to make the black king back off to kill its knight.

palata•46m ago
It was a lot more fun than I first thought!
quuxplusone•43m ago
Mentioned in TFA: This version of chess is given by Martin Gardner in his "Mathematical Games" column of July 1980 (pages 27 and 31) — https://www.jstor.org/stable/24966361 — and the analysis of White's mate is given in the column of August 1980 (page 18) — https://www.jstor.org/stable/24966383.

I do wonder how things would change if the board were 9 cells long; 10 cells long; etc. Also, it seems "in the spirit" to permit castling if neither K nor R has moved yet: i.e., from the position

K _ R N r _ n k

White ought to be permitted to

_ R K N r _ n k

(Or maybe there's a stronger argument for R K _ N r _ n k, actually. The former was conceptually "rook moves halfway toward king, then king moves to the other side of rook"; but the latter is "rook moves two steps in king's direction while king moves to the other side of rook.")

I'm pretty sure this wouldn't change the analysis on the 8-cell board at all, though. I wonder if it would change the analysis on any size of board.

kkaske•40m ago
I was only able to beat this after a couple retries. The hint was hard to read.
gef•37m ago
Reminds me of Edwin A. Abbott's Flatland, where he describes Lineland. A one-dimensional world whose King can only move forward and backward, cannot conceive of sideways, and considers his tiny segment of existence complete and sufficient. The Linelanders are portrayed as pitiable, intellectually imprisoned by their single dimension. Much like us in our three :)
rOOmbambar9•26m ago
It's very interesting and fun!)

HBO Obtains DMCA Subpoena to Unmask 'Euphoria' Spoiler Account on X

https://torrentfreak.com/hbo-obtains-dmca-subpoena-to-unmask-euphoria-spoiler-account-on-x/
1•speckx•2m ago•0 comments

Book flights MCP in a single prompt for India Flights

https://www.bookturing.com/mcp
1•avallark•2m ago•1 comments

Largest Group of Chimps Waging Deadly 'Civil War,' Scientists Discover

https://www.404media.co/worlds-largest-group-of-chimps-waging-deadly-civil-war-scientists-discover/
1•pavel_lishin•3m ago•0 comments

Dynamic Map of YouTube Channels

https://www.ytmap.xyz/
2•Bachal•3m ago•0 comments

Update on Platform Stability

https://oapen.hypotheses.org/2217
1•jruohonen•4m ago•0 comments

Okay, Color Spaces – Ericportis.com

https://ericportis.com/posts/2024/okay-color-spaces/
1•tambourine_man•5m ago•0 comments

Social Media Is the Opposite of Social Life

https://www.raptitude.com/2026/04/social-media-is-the-opposite-of-social-life/
2•speckx•8m ago•0 comments

AI (and) Maximalism

https://kerkour.com/ai-maximalism
1•randomint64•9m ago•0 comments

OpenAI's Genius Plan [to Cure Cancer] Can't Possibly Fail [video]

https://www.youtube.com/watch?v=ijTxAfFUHkY
2•mentalgear•10m ago•2 comments

U.S. faces an air traffic controller shortage. It's turning to gamers for help

https://www.cbsnews.com/news/faa-video-gamers-increase-air-traffic-controllers/
1•cdrnsf•11m ago•0 comments

The Ones: Actron AM1608 16-Bit CPU. – The CPU Shack Museum

https://www.cpushack.com/2026/04/01/the-forgotten-ones-actron-am1608-16-bit-cpu/
1•rbanffy•11m ago•0 comments

Securing Vapor for the Future: Our Experience in GitHubs Secure Open Source Fund

https://blog.vapor.codes/posts/securing-vapor-for-the-future/
1•frizlab•12m ago•0 comments

An Atari 8-Bit Computer Timeline – By Paul Lefebvre

https://www.goto10retro.com/p/an-atari-8-bit-computer-timeline
1•rbanffy•13m ago•0 comments

Understanding Clojure's Persistent Vectors, pt. 1 (2013)

https://hypirion.com/musings/understanding-persistent-vector-pt-1
1•mirzap•15m ago•0 comments

Fixing AMDGPU's VRAM management for low-end GPUs

https://pixelcluster.github.io/VRAM-Mgmt-fixed/
1•haunter•15m ago•0 comments

OpenJDK Interim Policy on Generative AI

https://openjdk.org/legal/ai
2•owlstuffing•16m ago•1 comments

Hitachi Ltd, Part I – By Bradford Morgan White

https://www.abortretry.fail/p/hitachi-ltd-part-i
1•rbanffy•16m ago•0 comments

Building a Microkernel in Rust: A 5-Part Series on Boot, IPC, Preemption, VM

https://blog.desigeek.com/post/2026/02/building-microkernel-part0-why-build-an-os
2•birdculture•16m ago•0 comments

For the First Time, a Denuvo Game from 2026 Has Been Cracked

https://www.thegamer.com/resident-evil-requiem-cracked/
1•haunter•17m ago•0 comments

How the AI boom derailed clean‑air efforts in one of the most polluted US cities

https://www.reuters.com/sustainability/climate-energy/how-ai-boom-derailed-cleanair-efforts-one-a...
2•1vuio0pswjnm7•18m ago•0 comments

Messing Around with Linux

https://disorientation.bearblog.dev/messing-around-with-linux/
1•speckx•18m ago•0 comments

Understanding Partial Reachability

https://pulse.internetsociety.org/en/blog/2026/04/understanding-partial-reachability/
1•jruohonen•23m ago•0 comments

The Download: an exclusive Jeff VanderMeer story and AI models too scary to rel

https://www.technologyreview.com/2026/04/10/1135618/the-download-jeff-vandermeer-short-story-and-...
1•joozio•24m ago•0 comments

The Deadly Civil War That Tore Apart a Group of Chimpanzees in Uganda

https://www.wsj.com/us-news/ngogo-uganda-chimpanzee-civil-war-99f04332
1•rsecora•24m ago•0 comments

"Constellations: A story about seeking" by Jeff VanderMeer

https://www.technologyreview.com/2026/04/10/1135106/jeff-vandermeer-constellations-science-fiction/
1•doctoboggan•26m ago•0 comments

Ask HN: Improving as mid-level dev with forced use of LLMs

1•quantum_magpie•26m ago•0 comments

A Mercury Rover Could Explore the Planet by Sticking to the Terminator

https://www.universetoday.com/articles/a-mercury-rover-could-explore-the-planet-by-sticking-to-th...
2•bookofjoe•26m ago•1 comments

EU airline industry warns of fuel shortages if Strait of Hormuz stays closed

https://www.bbc.com/news/articles/c3w37ggp011o
2•geox•27m ago•0 comments

State of the art PBR maps generation

https://blog.fal.ai/introducing-patina/
1•amrrs•27m ago•0 comments

Forcing an Inversion of Control on the SaaS Stack

https://www.100x.bot/a/client-side-injection-inversion-of-control-saas
3•shardullavekar•27m ago•0 comments