gnome-games r7703 - trunk/aisleriot/rules



Author: chpe
Date: Wed Jun 18 20:49:52 2008
New Revision: 7703
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7703&view=rev

Log:
Implement dealable? for auld_lang_syne. Bug #445955


Modified:
   trunk/aisleriot/rules/auld_lang_syne.scm

Modified: trunk/aisleriot/rules/auld_lang_syne.scm
==============================================================================
--- trunk/aisleriot/rules/auld_lang_syne.scm	(original)
+++ trunk/aisleriot/rules/auld_lang_syne.scm	Wed Jun 18 20:49:52 2008
@@ -68,6 +68,12 @@
        (move-n-cards! start-slot end-slot card-list)
        (add-to-score! 1)))
 
+(define (dealable?)
+  (not (empty-slot? 0)))
+
+(define (do-deal-next-cards)
+  (deal-cards-face-up 0 '(5 6 7 8)))
+
 (define (button-clicked slot-id)
   (and (= slot-id 0)
        (not (empty-slot? 0))
@@ -130,8 +136,8 @@
 (define (timeout) 
   #f)
 
-(set-features droppable-feature)
+(set-features droppable-feature dealable-feature)
 
 (set-lambda new-game button-pressed button-released button-clicked
 button-double-clicked game-continuable game-won get-hint get-options
-apply-options timeout droppable?)
+apply-options timeout droppable? dealable?)



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