> A single E-Reader dotstrip can store 2,192 bytes of data, which is just over 2kb. But there is some overhead with the headers […] data on the dotstrip is compressed though
> In the end I didn't need to do too much space optimization to keep Solitaire down to two dotstrips
So, a full implementation of Solitaire in ~4KiB. Count me impressed!
I like to show off that my own (as a web app: https://FreeSolitaire.win) is "only" 21KiB, but that’s small fry in comparaison!
I've played a lot of solitaire over the past four decades, one of my favourite versions was on the HP 620LX. I'd like to think I'm just this amazing, but it feels like it was too easy.
What kind of shuffling does your program use? Do you start off with easier decks to entice new users to keep playing or was it just pure chance that I got such an easy shuffle?
In any regard, I like your implementation. Worked extremely well in Safari on iOS, that's an accomplishment on its own, it's rare that web based games work as well as yours did on mobile.
The shuffling is random, but only winnable decks are generated (by default). The computer algorithm/solver is described here: https://FreeSolitaire.win/strategy
So it’s pure chance you got an easy shuffle.
> In any regard, I like your implementation.
Thanks, I’m glad you like it! If you have suggestions for improvement, I’m all ears (here or by e-mail) ;-)
It was significantly easier than other 1-card draw implementations I've played. I wonder if the logic used to ensure the game is winnable causes a bias towards easier shuffles.
Yeah, I don't think I'm an expert but...
> You finished in 6 min 17 s and 122 moves.
> When including undone moves: 123 in total; 103 on your own + 0 hinted + 20 to auto-end.
> The computer could do it in 122 moves.
> In the end I didn't need to do too much space optimization to keep Solitaire down to two dotstrips
So, a full implementation of Solitaire in ~4KiB. Count me impressed!
I like to show off that my own (as a web app: https://FreeSolitaire.win) is "only" 21KiB, but that’s small fry in comparaison!