home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / sol-games / spiderette.scm < prev    next >
Encoding:
Text File  |  2006-08-22  |  1.7 KB  |  61 lines

  1. ; AisleRiot - spiderette.scm
  2. ; Copyright (C) 2001 Rosanna Yuen <zana@webwynk.net>
  3. ;
  4. ; This game is free software; you can redistribute it and/or modify
  5. ; it under the terms of the GNU General Public License as published by
  6. ; the Free Software Foundation; either version 2, or (at your option)
  7. ; any later version.
  8. ;
  9. ; This program is distributed in the hope that it will be useful,
  10. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ; GNU General Public License for more details.
  13. ;
  14. ; You should have received a copy of the GNU General Public License
  15. ; along with this program; if not, write to the Free Software
  16. ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  17. ; USA
  18.  
  19. (load "spider.scm")
  20.  
  21. (define stock 0)
  22. (define foundation '(1 2 3 4))
  23. (define tableau '(5 6 7 8 9 10 11))
  24. (define winning-score 48)
  25.  
  26. (define (new-game)
  27.   (initialize-playing-area)
  28.   (set-ace-low)
  29.   (make-standard-deck)
  30.   (shuffle-deck)
  31.  
  32.   (add-normal-slot DECK)
  33.  
  34.   (add-blank-slot)
  35.   (add-blank-slot)
  36.  
  37.   (add-normal-slot '())
  38.   (add-normal-slot '())
  39.   (add-normal-slot '())
  40.   (add-normal-slot '())
  41.  
  42.   (add-carriage-return-slot)
  43.  
  44.   (add-extended-slot '() down)
  45.   (add-extended-slot '() down)
  46.   (add-extended-slot '() down)
  47.   (add-extended-slot '() down)
  48.   (add-extended-slot '() down)
  49.   (add-extended-slot '() down)
  50.   (add-extended-slot '() down)
  51.  
  52.   (deal-cards 0 '(5 6 7 8 9 10 11 6 7 8 9 10 11 7 8 9 10 11 8 9 10 11
  53.             9 10 11 10 11 11))
  54.   (map flip-top-card '(5 6 7 8 9 10 11))
  55.  
  56.   (give-status-message)
  57.  
  58.   (list 7 4))
  59.  
  60. (set-lambda new-game button-pressed button-released button-clicked button-double-clicked game-over game-won get-hint get-options apply-options timeout droppable?)
  61.