Hacker News new | ask | show | jobs
by alexthehurst 1157 days ago
I tried setting up a game of solitaire (on desktop with a mouse) and it got tedious really fast. What I wished for right away was:

- Ability to drag a selection region and move multiple cards together (like, say, the deck) - Ability to align cards to each other (I found myself testing modifier keys while dragging to see if this was a hidden feature, but alas.)

4 comments

I think rather than dragging a region, which might get fiddly, I’d like to be able to hold down on a card and have it make a deck with all of the other cards it’s overlapping.
Also, the cards in the should-be-face-down deck seem to sometimes be face-up when I remove the top card. I played with it a bit before dealing cards, though, like "fan," "sort," "poker," etc, so I'm thinking maybe it doesn't properly reset the face-down-ness when you click "shuffle."

FWIW I don't think the Kings easter egg is a good idea as-is. Maybe require a modifier key like "Click the kings while holding down the `K` key." Otherwise someone might have to click all kings while playing Free Cell and have their game ruined, that's no fun.

Shuffling doesn't reset flipped-ness, it looks like "flip" is the only action that puts all the cards facing the same way
Also necessary:

- The ability to shuffle the cards without the jokers.

I actually often skip this step with real cards. If a joker comes up, toss it and replace it from the deck.
Does anyone know how one might go about implementing a feature like multiple select?

I had a project doing something similar a while back and got pretty stuck on figuring out how to go about it

Click and drag to select, then click and drag again to move, like how Kinopio does it: https://kinopio.club/, https://blog.kinopio.club/posts/magic-paint-select/