the final revision of Flower Garden: PLUS undo and better performance ;; This is the message passing approach to the patience solitaire game ;; Flower Garden. ;; ;; This is the variant Flower Venus Garden with a relaxed ruleset. You ;; can move only one card at time but from anywhere to anywhere. ;; Sequences in the flower beds have to be build by suit. The ;; foundations are built from ace to king but cards can be moved back ;; into the game. You can double click a card and if possible it will ;; find its place in the foundations. You can place up to sixteen ;; cards in the bouquet. There is a good chance of winning the game. ;; ;; (The layout of the bouquet, i.e. the reserve of cards at the bottom ;; of the table is done automatically but only after a card has been ;; moved successfully. Rethinking and correcting this is left as ;; exercise for the interested player.) ;; ;; Description & Rules ;; ;; One deck of 52 cards. ;; ;; < from wikipedia ;; Thirty-six cards are dealt in to six columns, each containing six ;; cards. The columns are called the "flower beds" and the entire ;; tableau is sometimes called "the garden." The sixteen leftover ;; cards become the reserve, or "the bouquet." ;; ;; The top cards of each flower-bed and all of the cards in the ;; bouquet are available for play. Cards can only be moved one at a ;; time and can be built either on the foundations or on the other ;; flower beds. The foundations are built up by suit, from Ace to King ;; (a general idea of the game is to release the aces first). The ;; cards in the garden, on the other hand, can be built down ;; regardless of suit and any empty flower bed can be filled with any ;; card. The cards in the bouquet can be used to aid in building, be ;; put into the foundations, or fill an empty flower bed. ;; ;; The game is won when all cards end up in the foundations. ;; > end from wikipedia ;;
;; ;; NaL (Not a License) ;; ;; This is free source code - free as in "free like a bird". ;; ;; This is open source and marketing (which is a little bit like ;; gardening): if someone gives you a pen at no cost and you have to ;; refill it to write down you're favourite poem with it and someone ;; else sings it and the producer of that song makes a whole lot of ;; money with it then never forget: they could have used any pen to do ;; the job. Don't break my pencils! ;; ;; This is educational software and part of an open public written ;; discussion. ;; -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Flower Garden.rkt
Description: Binary data