\

1D Chess

472 points - today at 3:37 PM

Source
  • hackyhacky

    today at 6:00 PM

    If you enjoyed this, you might like Mind Chess, which can be played without a board and pieces [1]:

    Consider Mind Chess. Two players face each other. One says "Check." The other says "Check." The first says "Check." This continues until one of them says, instead, "Checkmate." That player wins -- superficially. In fact, the challenge is to put off checkmate for as long as possible, while still winning. This may be better stated: you truly win Mind Chess if you call "Checkmate" just before your opponent was about to.

    [1] http://www.eblong.com/zarf/essays/mindgame.html

      • anyfoo

        today at 7:39 PM

        Which reminds me that I just lost the game.

        I also lost the game not too long ago, but before that, I think I didn't actually lose it for a decade of more? And losing it wasn't even because it was mentioned anywhere, I genuinely just thought of it by myself, after forgetting about it for so long.

        So my sincerest apologies if my comment just made any readers lose their long streak in the game.

          • mckirk

            today at 7:49 PM

            Damnit, I am pretty sure I had a few-year-streak going until just now. Welp, off to the grind again, I suppose.

            • jaeh

              today at 8:51 PM

              damn. multiyear streak ruined. i even managed to forget i was playing.

              i just lost the game.

              • lamasery

                today at 7:50 PM

                I've lost it a lot lately, for some reason, after what I suppose was my third multi-year victory streak.

                Like, five or so losses this year.

                  • djsavvy

                    today at 8:35 PM

                    Same here, oddly enough, and every time besides this one was without anyone else mentioning it.

            • CGMthrowaway

              today at 8:16 PM

              Sounds like a dating game. "Delay texting her back or expressing your feelings as long as possible, until just the moment before she will give up on you"

              • traderj0e

                today at 8:14 PM

                Speaking of games without pieces, it's hard to develop one for only 2 players, but I've tried: https://news.ycombinator.com/item?id=43110448 (yes that is my alt account, sorry but I forgot my password)

                • benleejamin

                  today at 8:34 PM

                  And if you like Mind Chess, you might enjoy Mornington Crescent, which has a similar flavor to it! [1]

                  [1] https://www.youtube.com/watch?v=lziCsPmlbZI

                  • today at 8:07 PM

                    • stavros

                      today at 8:12 PM

                      Wait, how is the "put off checkmate" objective scored? Turns before checkmate? Or what?

                      Is it just a joke?

                        • tylervigen

                          today at 8:17 PM

                          I have never played it, but I could imagine a scoring mechanism that would make it interesting, and perhaps is implied by the rules:

                          The score value starts at 1. Every additional "check" multiplies the score value by 2 (so 2, 4, 8, 16...). The first player to say "checkmate" receives the score. Track your summed score between games; the player with the highest overall score at any given time is "winning."

                            • zadikian

                              today at 8:53 PM

                              It only works if there are more than two players

                          • hackyhacky

                            today at 8:20 PM

                            The sibling comment proposed a possible scoring mechanism which might result in enjoyable gameplay, but I think the bigger point (for me, at least) is the Mind Chess represents a reducto ad absurdum of the strategy game genre. It eschews as many rules as possible, leaving you only with the goal of knowing your opponent's mind. So Mind Chess is more of a thought exercise.

                  • quuxplusone

                    today at 4:45 PM

                    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.

                      • al_borland

                        today at 5:29 PM

                        Maybe I'm not good enough at chess to understand the strategy here, but how would castling be useful in this 1-D game? Castling in a normal game protects your King and activates the Rook. In this 1-D game, your King starts out protected behind the Rook. If you castle and end up in a _ R K N position, your king is exposed and your Rook is trapped behind the King, useless, with no way to ever get it back out. The Rook seems essential for mate, and its power has been eliminated.

                          • teiferer

                            today at 6:27 PM

                            Exactly. Feels like R K N would be a more suitable initial position in which castling would swap the king into safety, provided it has not moved and is not in check...

                            Though maybe in that case the best first move for both is to castle and we are non the wiser (back to the original starting position)

                    • tromp

                      today at 7:24 PM

                      1D Go is also interesting and doesn't require any change in rules or starting position. TIL that it is known as Alak [1]. One of the open problems in our Combinatorics of Go paper [2] is whether you can play a game that goes through all possible legal 1xn positions for any n>2, which we were only able to verify up to n=7.

                      [1] https://senseis.xmp.net/?Alak

                      [2] https://tromp.github.io/go/gostate.pdf

                      • Nevermark

                        today at 8:50 PM

                        I thought for sure this article was going to be political commentary!

                        (I would pay a lot for some fat 1500 page, leather-bound tome of wisdom and anecdotes about historical foot guns, titled "1D Chess". And it's inevitable modern-world sequel.)

                        • asibahi

                          today at 4:18 PM

                          This is really nice.

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

                            • zniturah

                              today at 5:17 PM

                              Good observation. Considering stacking of pieces maybe 1.5D though.

                                • a3w

                                  today at 6:00 PM

                                  Chess has different pieces, which has higher entropy than a true 1d backgammon or 1d checkers with only one piece a field.

                                  You could play with pieces that have a value of 1..N instead. Starting with 2,3, and 5 value pieces, and splitting them as needed. Making it one-dimensional again, while keeping 100% of the rules.

                                  Final verdict, therefore: backgammon is 1D, not 1.5.

                                  We could pretend that the second dimension was not playing a role in tactics back then, since it was very recently invented, like the brothers Wright invented the third dimension a hundred years ago. Or some hot air balloon at a world faire did it.

                                    • traderj0e

                                      today at 8:09 PM

                                      The "dimensions" in these board games isn't a mathematical/topology thing, is it? Normally one dimension = one real number space. Every board game ever would fit in 1D then, "2D" chess included.

                                      I'm fine calling Backgammon 1.5-D. Physically you focus on a single dimension, and the second one matters too but it's not the same.

                              • moffkalast

                                today at 5:25 PM

                                Backgammon, the game everyone's seen and at the same time nobody knows how to play :P

                                  • dhosek

                                    today at 7:16 PM

                                    My brother and I once took a train trip from L.A. to Omaha and back for a friend’s wedding and played backgammon for most of the trip. For weeks afterwards, I saw backgammon everywhere (most notably when reading dialogue-heavy books with lots of 1-line paragraphs).

                                    • traderj0e

                                      today at 8:12 PM

                                      Solitaire and Hearts too. Well I actually know and love Hearts, but most people seem to know it as "that game in Windows where you play random cards"

                                      • Sharlin

                                        today at 6:07 PM

                                        I learned to play backgammon because it was one of the three games on my Nokia phone circa 2001 :P

                                    • etskinner

                                      today at 6:01 PM

                                      Mancala is roughly 1D too!

                                  • aktenlage

                                    today at 6:24 PM

                                    Very cool. Reminds me of 1D Pacman: https://abagames.itch.io/paku-paku

                                      • wes-k

                                        today at 8:09 PM

                                        I love this! Such a simple game with a fun level of skill. High score 17485 feels pretty good (edit: Oh! Low power mode on the computer makes the game run slow, thus much easier to get crazy high scores).

                                        Reminds me of SFCave and Nanana Crash for the simplicity and surprising replay ability.

                                        https://megami.starcreator.com/nanaca-crash/

                                        (Failing to find an online version of SFCave a.t.m :'()

                                        • aaaasmile

                                          today at 8:59 PM

                                          Very cool!

                                      • gef

                                        today at 4:51 PM

                                        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 :)

                                        • chedoku

                                          today at 7:17 PM

                                          If you like 1D chess, you'll probably like other chess-themed puzzles as well: https://chedoku.com/blog/chessPuzzles

                                          • juleiie

                                            today at 5:33 PM

                                            That finally confirmed that I am too regarded for chess if even 1D is too hard yay

                                              • amrrs

                                                today at 5:49 PM

                                                is that str.replace(g,t) ?

                                                  • juleiie

                                                    today at 6:26 PM

                                                    No. I am actually too highly regarded for measly single dimensional game

                                                    • today at 6:01 PM

                                              • MinimalAction

                                                today at 8:03 PM

                                                I love chess! This version was fun too.

                                                If 1. Rx6,it is stalemate. So it must be 1. N4 N5. Then we could proceed with, 2. Nx6+ K7. Now, if you capture the knight (Rxe), it is stalemate again. So sacrifice the knight, 3. R4 Kx6 so that you force black to zugzwang with 4. K2 K7, and finally, 5. Rx5#

                                                • frunkp

                                                  today at 8:10 PM

                                                  Those who play go may enjoy the variants: https://www.govariants.com/variants/rules-list Tetris is a fun one to try!

                                                  • dwa3592

                                                    today at 8:33 PM

                                                    I am ashamed to admit that i could not solve that even though i consider myself a decent player.

                                                      • keeganpoppen

                                                        today at 8:44 PM

                                                        just work backward from the moves it allows you to make— it tells you when it’s hopeless, so thus if it lets you move, you’re onto something. took me like 9 or 10 tries easily.

                                                    • topce

                                                      today at 6:57 PM

                                                      I went in other direction ;-) https://topce.github.io/chess960x32/

                                                      • northfield27

                                                        today at 4:40 PM

                                                        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.

                                                          • aNapierkowski

                                                            today at 5:39 PM

                                                            you could also just move your king on that move same result knight cant move, only king can, so it has to back away

                                                        • keeganpoppen

                                                          today at 8:42 PM

                                                          that took me way longer than i thought it would, but made me all the happier for it

                                                            • uvdn7

                                                              today at 8:48 PM

                                                              This is something AI would never take away from us.

                                                          • sieste

                                                            today at 4:19 PM

                                                            It took me an embarrassing number of attempts to win.

                                                            • palata

                                                              today at 4:42 PM

                                                              It was a lot more fun than I first thought!

                                                              • gcheong

                                                                today at 8:29 PM

                                                                Minor typo: assming -> assuming :)

                                                                • hart_russell

                                                                  today at 5:56 PM

                                                                  I don’t know why this is stalemate: N4 N5, N6 K7, R5. Wouldn’t rook have the king in checkmate?

                                                                    • Scarblac

                                                                      today at 5:58 PM

                                                                      The rook doesnt attack the king because N6 is in the way.

                                                                      So black is not in check and has no legal moves, so stalemate.

                                                                        • superxpro12

                                                                          today at 8:21 PM

                                                                          Isnt that a forced move to K8? The king is forced to take N6 or move to K8, either of which results in a capture.

                                                                          Isn't this the definition of checkmate, not stalemate?

                                                                            • non-

                                                                              today at 8:29 PM

                                                                              King isn't allowed to move to a square that would put him in check, so there are no legal moves available. Chess rules.

                                                                      • _air

                                                                        today at 5:58 PM

                                                                        Black has no legal moves because of the knight but they aren't in check

                                                                    • schmeichel

                                                                      today at 4:15 PM

                                                                      Finally, a version of Chess I can understand. Thank you.

                                                                      • hypendev

                                                                        today at 6:13 PM

                                                                        Don't know when was the last time I had so much fun with chess. Quite intuitive, clicked on the first click.

                                                                        Would enjoy so much if there were more of these, feels like an obligation-free chess puzzle.

                                                                        • kkaske

                                                                          today at 4:49 PM

                                                                          I was only able to beat this after a couple retries. The hint was hard to read.

                                                                          • today at 4:52 PM

                                                                            • darepublic

                                                                              today at 5:55 PM

                                                                              I won after four attempts. Pretty sure it was perfect play so yes white has forced win

                                                                                • sdthjbvuiiijbb

                                                                                  today at 6:15 PM

                                                                                  Yeah. I think 1. N4 leads to a white win. It's fairly easy to verify that a black rook move will lead to a white win (1...R5 2. R2 and 1...Rx4 2. Rx4 N5 3. Rx5#). So the critical line is 1. N4 N5, but then 2. Nx6+ K7 3. R4 also leads to a win: 3...Kx6 4. K2 K7 5. Rx5# and 3...N3+ 4. K2 N5 5. N8 Kx8 6. Rx5#.

                                                                                  There are probably other ways to win too.

                                                                              • bbx

                                                                                today at 4:25 PM

                                                                                Oh very interesting. Even with these restrictions, there are quite a few variations, and it seems only one ends up with white winning.

                                                                                • sjdv1982

                                                                                  today at 6:01 PM

                                                                                  Zugzwang!

                                                                                  • MagicMoonlight

                                                                                    today at 8:20 PM

                                                                                    Why does it end in a stalemate if all my pieces are alive and they have none? That’s not a stalemate, I can move freely and get them.

                                                                                      • dargscisyhp

                                                                                        today at 8:24 PM

                                                                                        That is a standard rule in chess. If your opponent has no legal moves (i.e. no way to move without moving his king into check) and is not currently in check, it is considered stalemate, which is a draw.

                                                                                        • chris_va

                                                                                          today at 8:23 PM

                                                                                          In chess they cannot move onto a spot that would put them in check. If they can make no legal moves, it's a stalemate.

                                                                                      • jibal

                                                                                        today at 8:17 PM

                                                                                        N4 N5 Nx6+ K7 R4 Kx6 R2 (or K2) K7 Rx5#

                                                                                        • Dante77711

                                                                                          today at 7:07 PM

                                                                                          Nice, fun and interesting! :)

                                                                                          • slopinthebag

                                                                                            today at 8:08 PM

                                                                                            I was confused why 3.R2 is drawing, but not 3.R4 since black can check with the knight either way, but it's fairly obvious in hindsight - if black checks instead of capturing, you don't take, you go K2 and force black into zugzwang. Clever.

                                                                                            • tempestn

                                                                                              today at 5:52 PM

                                                                                              That's actually a fun little puzzle.

                                                                                              • lschueller

                                                                                                today at 4:32 PM

                                                                                                Cool idea. This is smart and lean. I like it

                                                                                                • rOOmbambar9

                                                                                                  today at 5:03 PM

                                                                                                  It's very interesting and fun!)

                                                                                                  • Computer0

                                                                                                    today at 7:32 PM

                                                                                                    I was expecting a blog post regarding Iran strategy...

                                                                                                    • addybojangles

                                                                                                      today at 5:39 PM

                                                                                                      Silly nice brain teaser

                                                                                                      • hfnjdbekwbiw

                                                                                                        today at 7:13 PM

                                                                                                        Hello

                                                                                                        • today at 5:04 PM

                                                                                                          • Keyframe

                                                                                                            today at 8:29 PM

                                                                                                            This is stupid. I like it!

                                                                                                            • sillyfluke

                                                                                                              today at 8:17 PM

                                                                                                              I honestly thought this post was going to be about the Iran war.

                                                                                                              • tkapin

                                                                                                                today at 4:10 PM

                                                                                                                Nice! :)

                                                                                                                • naorz

                                                                                                                  today at 3:52 PM

                                                                                                                  Fun stuff, love it!

                                                                                                                  • cindyllm

                                                                                                                    today at 9:05 PM

                                                                                                                    [dead]

                                                                                                                    • hfnjdbekwbiw

                                                                                                                      today at 7:13 PM

                                                                                                                      [flagged]

                                                                                                                      • BiraIgnacio

                                                                                                                        today at 5:48 PM

                                                                                                                        love it!

                                                                                                                        • vladde

                                                                                                                          today at 4:37 PM

                                                                                                                          i could not beat it, and i can't read that chess notation

                                                                                                                            • thesuitonym

                                                                                                                              today at 4:54 PM

                                                                                                                              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

                                                                                                                                today at 5:07 PM

                                                                                                                                The first move after the comma is yours (open with kNight to 4), and the second move is apparently predetermined or always chosen.

                                                                                                                                • DrammBA

                                                                                                                                  today at 4:54 PM

                                                                                                                                  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>

                                                                                                                                  • burnt-resistor

                                                                                                                                    today at 5:58 PM

                                                                                                                                    There's a coordinate-based solution in the source code issues. I couldn't elucidate that notation either.

                                                                                                                                    https://github.com/Rowan441/1d-chess/issues/1

                                                                                                                                    Edit: There's a second solution where instead of moving the rook back 2, move the king forward one and the take the black knight with the rook as the checkmate move.

                                                                                                                                • tintor

                                                                                                                                  today at 4:36 PM

                                                                                                                                  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

                                                                                                                                      today at 4:37 PM

                                                                                                                                      If you play the game, you realise this ends up in stalemate.

                                                                                                                                        • Fabricio20

                                                                                                                                          today at 5:25 PM

                                                                                                                                          I'm not very good at chess, but I dont get why most things are considered a stalemate? I strategically remove all pieces of the enemy, leaving only the king against my rook/tower whatever its called, the king has nowhere to run. In my eyes it's a checkmate. The game just calls it a stalemate. Would be a stalemate if I couldn't do anything, but I can kill the enemy king.

                                                                                                                                            • rokkamokka

                                                                                                                                              today at 5:35 PM

                                                                                                                                              There is an explanation further down. A stalemate is if the enemy has no valid loves and is not in check

                                                                                                                                              • al_borland

                                                                                                                                                today at 5:35 PM

                                                                                                                                                It's a stalemate because while the king can't move, he isn't under active attack. There is nowhere he can legally move, but he's safe where he's at.

                                                                                                                                                  • jandrese

                                                                                                                                                    today at 6:38 PM

                                                                                                                                                    That rule caught me up too. In regular chess if it is your opponents turn and their only pieces are a king in the 1,8 square and a pawn that is pressed up against one of your pawns and you have rooks in the 2,1 and 8,7 squares that counts as a victory does it not?

                                                                                                                                                      • umanwizard

                                                                                                                                                        today at 6:59 PM

                                                                                                                                                        No. That is a draw assuming it is the player with only a king’s turn to move.

                                                                                                                                                        Translating your notation to normal chess notation:

                                                                                                                                                        White king on h1, black rooks on a2 and g8, black king in some random other place, white to move.

                                                                                                                                                        That is a draw, because white is NOT in check, but has no legal moves. That scenario is called stalemate. If white were in check, it would be checkmate and a win for black. Set it up on any chess analysis board website and it will say the game is a draw.

                                                                                                                                                    • tshaddox

                                                                                                                                                      today at 7:33 PM

                                                                                                                                                      But why? That feels like a victory.

                                                                                                                                                        • asibahi

                                                                                                                                                          today at 7:48 PM

                                                                                                                                                          Because that’s the rule. There doesn’t have to be a rational reason.

                                                                                                                                                            • lamasery

                                                                                                                                                              today at 7:53 PM

                                                                                                                                                              ... and if it weren't the rule, it'd make a lot of mid- and late-game play much safer for the player with the advantage. As it is, it's something they have to watch out for, which constrains them somewhat. You have to win, but not the wrong way, and your opponent can attempt to force you to "win" the "wrong way" (resulting in a stalemate).

                                                                                                                                          • umanwizard

                                                                                                                                            today at 5:17 PM

                                                                                                                                            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.