AisleRiot: two new games



Perpetual Motion:
http://www.geocities.com/arcanelore2001/sol/perpetual_motion.scm

This is a really stupid game, but it seemed like a good place to start since I've never messed with Scheme anywhere before, much less AisleRiot. All you do is deal four cards at a time, and move any cards with the same rank on top of the leftmost card of that rank. Should you deal four cards of the same rank, double click to discard all four. If you discard the entire deck you win.

Gaps:
http://www.geocities.com/arcanelore2001/sol/gaps.scm

Deal the entire deck into four rows of 13 cards, then remove the aces. Any gaps in the first column may be filled in by moving a two there. Any other gap can only be filled with a card having the same suit as the card to the left of the gap but one rank higher. Gaps to the right of kings (or other gaps) cannot be filled. Redeals are accomplished by picking up any cards not in sequence with a two at the far left, shuffling them, then redealing them (leaving one space after each row of sequenced cards.)

Unfortunately one bug I haven't been able to shake out of this is that undo/redo don't seem to correctly save the "rows" vector, which keeps track of which cards aren't in sequence, which can lead to out-of-sequence cards getting stuck if you fiddle with undo. I did use the def-save-var macro, but I'm not sure what else to try.

--
Zach Keene





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]