![solitaire games klondike rules pictures solitaire games klondike rules pictures](https://frvr.com/tutorials/a/solitaire/howto2.jpg)
So I am using a major mode (so that should be true for most bindings, so far) but I'm using read-key for when a user is selecting a visible card from a stack. Sorry about missing that went right over my head. I didn't took it as a questioning at all.Īhhh heh, fair. I just thought it was a bit funny expressed :), so I just played a bit on that. I'm hoping, then, key bindings that I might not use but other might find better can, then, easily be used. These felt most intuitive to me but, ideally, everything should be configurable, in the end. And I posted because I figured people might be interested to see that it exists I usually enjoy seeing what others are working on and what may or may not be coming down the pike.įor sure I had thought of it but I was mostly trying to get things working, first. Oh, I don't mind, any just that I hadn't expected it.
![solitaire games klondike rules pictures solitaire games klondike rules pictures](https://i.ytimg.com/vi/tM_CCzWlqdg/maxresdefault.jpg)
Why did you posted it if you didn't want people to try it out? :-) That obviously makes sense, if it's from cl-lib. It is not removed, it is just named cl-evenp.Īhh I'd just assumed it was an inbuilt function, given its simplicity. Heh, I was just, colloquially, expressing surprise at their decision not throwing any shade towards your perceiving ability. European keyboards are really bad to type some characters, but it is easy to rebind in Emacs. I could have looked at the keybindings I guess, but I was babysitting my kid, so I had to go anyway.Ībout the keys, you could have maybe used qwerty and asdfg, which are way easier to type, without need to use shift key for !# and Alt-graphic (right alt) for and $. Ok, cool thnks for the explanation I'll check it when I get home tomorrow. It took yet 5 secs to fix the problem :). Why did you posted it if you didn't want people to try it out? :-) It is like 5 secs to pull it down and another 5 sec to try it out. I hadn't expected that people might pull it down and try it out as soon as I posted it so I hadn't, yet, typed up the README that explains how to play I am only having a laptop with Emacs built from master at the moment, so I can't check earlier version, but you seem to be using version 28, so you can check. No idea if it was without prefix in earlier versions. It is not removed, it is just named cl-evenp. I wouldn't write it to you otherwise? :).ĭid they remove being able to check if a number is even‽ If one of the bottom 7 stacks are selected, the faceup cards in any stack will get numbered you can use the function keys to select a particular depth of the faceup cards to move or you can select another of the 7 bottom stacks to move the entirety of the faceup cards or select one of the top right 4 to try and move the very top card to there.įor any pile you select, you can also hit TAB to have the game check if any of the top 4 piles can accept that top visible card and, if so, move it there. !, #, $ will select the 4 (in that order) piles at the top right.ġ–7 will select any of the bottom 7 stacks. SPC will pick a new card from the top of the top-left deck and put it faceup. If you do want to try it out, the keys are: Heh, I probably should have anticipated it but I hadn't expected that people might pull it down and try it out as soon as I posted it so I hadn't, yet, typed up the README that explains how to play. Huh really? Did they remove being able to check if a number is even‽ I'll need to look more into that thanks for the heads up! (interactive) (klondike-stack-pile-pick 0))) (define-key mode-map (kbd "1") (lambda ()
![solitaire games klondike rules pictures solitaire games klondike rules pictures](https://frvr.com/tutorials/a/overview.png)
To avoid repetitions, you can use mapc of seq-doseq instead of Multiple nested if-s in most cases are replaceable with a single cond ToPrintSymbol, totalNum, stackIndex, 1card+padding etc case doesn't look lispy, neither klondike- prefix is needed This looks like a candidate for a separate function as well, especially if you'll use mapconcat instead of manual processing/concatenating: (gethash "PLAYING CARD KING OF CLUBS" (ucs-names))ĭon't forget to cache/memoize (ucs-names) on startup, though.ĪFAICS klondike-stack-set doesn't need to be a macro
![solitaire games klondike rules pictures solitaire games klondike rules pictures](https://forum.defold.com/uploads/default/original/2X/e/edcbb94e799824c9bb5d16585619919cef0f3906.jpg)
Unicode chars representing cards have names like PLAYING CARD KING OF CLUBS, so it's pretty easy to generate them instead of case-ing, try, for example: Nested pcases makes macroexpansion even more complex You don't always need pcase (which is pretty complex macro), in many cases case (or cond) is enough, and sometimes even alist-get with a declarative mapping from dispatching key to value Klondike-*-stack variables are used in klondike-history-save before they are defined Wouldn't you mind if I do some opinionated review?