this post was submitted on 06 Dec 2025
300 points (99.7% liked)

linuxmemes

28444 readers
1498 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
  • Don't come looking for advice, this is not the right community.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • 6. (NEW!) Regarding public figuresWe all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.
  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.
  • Β 

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.

    founded 2 years ago
    MODERATORS
     

    First time seeing this in KPatience. The game shouldn't even start if it isn't solvable though but it's something.

    top 30 comments
    sorted by: hot top controversial new old
    [–] tgf@lemmy.world 63 points 1 week ago (4 children)

    I think Windows 7 solitaire had an option where you could only get solvable games. Personally i like it when you don't know if it can be solved - part of the puzzle for me.

    [–] Pika@sh.itjust.works 37 points 1 week ago* (last edited 1 week ago) (1 children)

    To each their own, that's the reason I don't play Solitaire physically and play it digitally I hate spending 5-10 minutes on a game just to find out that I can't beat it. There's no sense of satisfaction for me

    [–] SchwertImStein@lemmy.dbzer0.com 9 points 1 week ago* (last edited 1 week ago) (2 children)

    what solitaires are you playing? I wonder what the chances of getting an unsolvable one are in your case

    [–] TragicNotCute@lemmy.world 25 points 1 week ago (1 children)
    [–] moonpiedumplings@programming.dev 6 points 1 week ago (1 children)

    99.9999% of freecell games are winnable. Very nice, and one of the reasons I preferred freecell.

    [–] definitemaybe@lemmy.ca 7 points 1 week ago

    Way, way back (in the 90s or early 00s) one of my friends got involved in a project to systematically play every possible freecell game to find which ones were unsolvable.

    That was back when the Internet was cool.

    [–] Pika@sh.itjust.works 5 points 1 week ago

    the standard 3 draw one. I understand 1 draw has a higher chance of success tho

    [–] Gullible@sh.itjust.works 11 points 1 week ago* (last edited 1 week ago)

    I was grateful for the option for a few games, before realizing that I was miserable. The game felt too easy with the option on. If they also had a stock of difficult levels to occasionally kick me to death, that’d’ve be nice. Going from 50% to nearly thoughtless 99% completion rate was no fun.

    [–] muhyb@programming.dev 7 points 1 week ago (1 children)

    I partially agree. From the start, it should be solvable. But if it can be solvable in a very certain way, I'm fine with it. I think a good puzzle should be at least solvable even if it was badly designed.

    Windows 7 solitaire was good, though it was kinda easy IIRC.

    [–] BCsven@lemmy.ca 3 points 1 week ago

    I always saw solitaire as a pass the time game, not really a puzzle.

    I remember seeing the option, it required an account and I wouldn't be surprised if there was a paid subscription after that.

    [–] Arrkk@lemmy.world 28 points 1 week ago (1 children)

    The Zachtronics solitaire collection (steam, Linux version available) has a bunch of fun unique solitaire variants, and every layout is guaranteed to be solvable.

    [–] muhyb@programming.dev 5 points 1 week ago* (last edited 1 week ago)

    Seems nice, added to my wishlist. Thanks for the heads up!

    Edit: It's also available on GOG, which is better.

    [–] gaiussabinus@lemmy.world 23 points 1 week ago (1 children)

    Program it so it only deals unsolvable games on a given day of the week

    [–] muhyb@programming.dev 14 points 1 week ago

    Thanks Satan.

    [–] notreallyhere@lemmy.world 22 points 1 week ago (1 children)
    [–] Zier@fedia.io 13 points 1 week ago

    I play Yukon all the time. And I have learned 2 things. 1. When it says "Calculating..." when the game starts, you're not going to win. And 2. If you stack too many random cards, it eventually tells you the game is lost. The other weird thing that happens is, sometimes you use the "Hint" and it will just show you how to move a card from same to same. Example, you have a 2 sitting on a 3, and there is an open 3. And that's the only move left. It's a forever loop that you never win or lose.

    [–] GreatBlueHeron@lemmy.ca 11 points 1 week ago

    You can't always trust the KPatience solver for some games. I have not worked out yet which games it's broken for but I routinely win Simple Simon games that it says can't be won. There others, but I can't remember which.

    I also have a bit of a love/hate relationship with the solver hinting - I'd like hints to only point out moves that I've missed based on the cards on the table. The hints often seem to be positioning the cards for future moves.

    Yeah, KPat just does this. Skip em or persist in your doomed timeline, I guess.

    But... part of the fun is to not know that. It is how it works with real cards

    [–] Treczoks@lemmy.world 5 points 1 week ago

    If you play more regularly, you get quickly used to this message.

    [–] palordrolap@fedia.io 5 points 1 week ago (1 children)

    It's also my experience that KPatience doesn't skip unwinnable games. It also occasionally generates one where it can't determine whether the game is solvable or not, which is probably due to search space limitations. I've won a couple of those, but they're risky to start in the first place!

    I can see the logic for not skipping unsolvable games.

    KPat uses a seed system (called "Numbered Deals") to "shuffle" the cards before a game. The seed can be generated (pseudo-)randomly, which is the default, or entered manually. In theory, a manually-entered seed could be unsolvable, and there would then need to be completely different logic flow for random and manual seeds after the shuffle and deal.

    It's way simpler to just generate a new game seed randomly as necessary and then have the rest of the program be clueless as to whether it was typed in or not.

    [–] muhyb@programming.dev 3 points 1 week ago

    It also occasionally generates one where it can’t determine whether the game is solvable or not, which is probably due to search space limitations. I’ve won a couple of those, but they’re risky to start in the first place!

    I kinda like those. I've also won couple of them and one of them was quite close to a win and it was always unwinnable at the very last parts (I tried the same seed 3-4 times).

    Yeah, I get the logic and with the current system it might cause a long start if it runs into a bad string since it should also skip undeterminable games. Maybe someone should rewrite it in Rust. /j

    [–] enchantedgoldapple@sopuli.xyz 4 points 1 week ago (4 children)

    How do you actually play this game? I'm not into card games in general but this one seems oddly interesting

    [–] Wildmimic@anarchist.nexus 8 points 1 week ago

    Haven't played in a while; if i make a mistake please correct me.

    You play with a standard 52 card deck. The goal is to sort the cards by suit in ascending order (A,2,3,4...).

    You can move revealed cards (or complete/partial card stacks) onto the next higher, different colored card, e.g. in the example above you can move the clubs 2 onto the diamond 3. if you uncover a hidden card, you can turn it over, making it accessible. Empty places on the board are only allowed to receive Kings, the target spots can only receive the next valid card, in the upper example you can move the Ace in one of the top spots.

    If you don't have a valid move, you draw a card from the stack on the top left. The currently revealed card there can be accessed while it is the topmost card; this means if you can move the topmost card you can access the previous card (if there is one).

    There are two main variants of the game: Draw one and Draw Three. In draw one, your game is over as soon as the last card is drawn from the stack and there are no more valid moves; in draw three, you draw 3 cards at a time, only the topmost card is accessible, but you are allowed to flip over the staple 2 times when you run out of cards - giving you an information advantage for the additional disadvantage that you can only directly access every third card.

    Score is counted by how far you can fill up the upper spots; Vegas rules have you buy in and get payout depending on how far you can fill the top row, with higher card numbers reached being worth proportionally more.

    Not all games are winnable by default, since there's the possibility that lower value cards might be stuck under cards that aren't movable; this is not knowable, and as you can see from the above discussion, it's not trivial to calculate either :-)

    [–] JasonDJ@lemmy.zip 7 points 1 week ago

    The idea is to have four stacks of cards at the top. One for each suit, ace thru king. Once you get that you win.

    You can move cards around the bottom by stacking them in descending order (King thru 2), in alternating colors (red, black).

    You can move multiple cards to a new stack if it's suitable.

    You can turn the upside down cards on the bottom once there are no face-up cards covering them.

    When the bottom stacks are empty, you can start a new stack in that spot, but only with a King.

    The draw pile at the top is where the different sets of rules come into play...some people draw 1 at a time, some draw three at a time. Some people also play with a limit of how many times you can loop through the draw pile.

    There's also a scoring system but that's unimportant for most people unless they really care. After all, solitaire is a one player game.

    [–] capuccino@lemmy.world 4 points 1 week ago

    First requisite: you need to be alone.

    [–] muhyb@programming.dev 4 points 1 week ago

    The ultimate goal is to gather all 4 types of cards to top right empty slots from the smallest card to biggest card (1, 2, 3, 4, 5, 6, 7, 8, 9, 10, J, Q, K).

    You pull from the main deck 1 or 3 at a time (1 is easier) and you can only put that card under a bigger one. Also only K cards can be placed on a completely emptied out slots under. Sorting should be opposite colour too (If you pull 10 black, you can only place it under J red). Black if red, red if black.

    I hope I was clear.