Hacker News new | ask | show | jobs
by palsecam 484 days ago
Using a lightweight PWA (progressive web app) is also an option: https://FreeSolitaire.win (self-plug).

Doesn’t generate unwinnable games[1] & detects dead-ends. Works offline after the first visit. No ads until game over, and they aren’t obtrusive.

Often lauded on HN, e.g. https://news.ycombinator.com/item?id=41972075 or https://news.ycombinator.com/item?id=42031052.

1: The probability that a random deal is unwinnable is ~20%. Wikipedia has a section on the subject: https://en.wikipedia.org/wiki/Klondike_(solitaire)#Probabili...

8 comments

Nice! I should add only-winnable generation to my own Solitaire, it's adfree, although it has extremely clunky controls.

Well, it was designed for the terminal, try the webconsole version here: https://rpigab.gitlab.io/solitaire-cli/

Source: https://gitlab.com/rpigab/solitaire-cli

First time I've played any game through the end just because I wanted to see an ad! It's really well made, gotta confess I went the CLI route because I don't know how to design GUIs with moving parts. Also, I wanted to play my game with controls tailored for the keyboard layout (ASDFGHJ keys control the columns if using QWERTY).
You can also try my own implementation of https://klondikesolitaire.com/. Ad-free.
Thanks! Looks nice, the DOM part seems to be very well made, I can't draw cards from stock on Firefox though. Dragging cards works well, it's just the click on stock that doesn't seem to register.

It works when I first load the page, then stops working after a new game.

Very nice but I keep losing my progress on a game with swipe gestures on android accidentally triggering back functionality when I pull a card from right to left, even with installed PWA version
Ah, thanks for letting me know!

I may have found a fix. I previously applied CSS `overscroll-behavior: contain` on <body>, it seems it also needs to be set on <html> (see https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-... and https://stackoverflow.com/a/60565197).

I pushed that (supposed) fix, please let me know if that solves the issue for you (you may need to “refresh” by launching-quitting-relaunching the app.)

If not, please tell me what Android version and browser you are using, so that I can investigate more.

Wow, the dead-end detection + rewinding is amazing! Didn't know it was something I needed, but really appreciate it.
I’m glad you like it :-)
Ugh. thank you for posting this link, its going in my favorites for certain. Please link to where I can contribute!
Scratch that, just had to complete the first game!

For what it's worth, I was willing to contribute before the end of the first game. If that illustrates anything to you it's that you've got a winner on your hands :)

Thanks! I like the rewind feature. One of my key frustrations with the game solved!
Game is great, I might continue playing, but the fake update scam ads are predatory and frankly fairly intrusive.

Edit: screenshot: https://ibb.co/4RkTFzZ4

The X to close the ad didn’t work.

Thanks for letting me know. That’s not my choice but AdSense. However, I can manually disable ads like this one, I’ll look into it.
I just removed interstital ads.
Great game!
Thank you!