~ubuntu-branches/debian/jessie/aisleriot/jessie

« back to all changes in this revision

Viewing changes to games/spider-three-decks.scm

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jeremy Bicha, Jordi Mallach
  • Date: 2012-04-22 12:49:26 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120422124926-gmr0thwstl91jt1n
Tags: 1:3.4.1-1
[ Jeremy Bicha ]
* New upstream release
* debian/control.in: (Build)-depend on guile-2.0
* debian/*.install: Cards files are now stored as zipped .svg's
* debian/patches/99_format-security.patch: Dropped, applied upstream

[ Jordi Mallach ]
* New upstream release.
* Update copyright to final version of the machine-readable 1.0 spec.
* Bump Standards Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; AisleRiot - spider_three_decks.scm
 
2
; Copyright (C) 2005 Daniel Werner <dw@dur.ch>
 
3
;
 
4
; This program 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 3 of the License, or
 
7
; (at your option) 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, see <http://www.gnu.org/licenses/>.
 
16
 
 
17
(use-modules (aisleriot interface) (aisleriot api))
 
18
 
 
19
(primitive-load-path "spider")
 
20
 
 
21
(define tableau '(13 14 15 16 17 18 19 20 21 22 23 24))
 
22
(define foundation '(1 2 3 4 5 6 7 8 9 10 11 12))
 
23
(define initial-deal '(13 14 15 16 17 18 19 20 21 22 23 24 13 14 15 16 17 18 19 20 21 22 23 24 13 14 15 16 17 18 19 20 21 22 23 24 13 14 15 16 17 18 19 20 21 22 23 24 13 14 15 16 17 18))
 
24
(define winning-score 144)
 
25
(define stock 0)
 
26
 
 
27
(define allow-empty-slots #t)
 
28
 
 
29
(define (make-standard-triple-deck)
 
30
  (if (= ace 14)
 
31
     (set! DECK (append (make-standard-deck-list-ace-high 2 club) (make-standard-deck-list-ace-high 2 club) (make-standard-deck-list-ace-high 2 club)))
 
32
     (set! DECK (append (make-standard-deck-list-ace-low ace club) (make-standard-deck-list-ace-low ace club) (make-standard-deck-list-ace-low ace club))))
 
33
  )
 
34
 
 
35
(define (new-game)
 
36
  (initialize-playing-area)
 
37
  (make-standard-triple-deck)
 
38
  (shuffle-deck)
 
39
 
 
40
  ;set up the board
 
41
  (add-normal-slot DECK)
 
42
  (add-normal-slot '())
 
43
  (set! HORIZPOS (- HORIZPOS 0.09))
 
44
  (add-normal-slot '())
 
45
  (set! HORIZPOS (- HORIZPOS 0.09))
 
46
  (add-normal-slot '())
 
47
  (set! HORIZPOS (- HORIZPOS 0.09))
 
48
  (add-normal-slot '())
 
49
  (set! HORIZPOS (- HORIZPOS 0.09))
 
50
  (add-normal-slot '())
 
51
  (set! HORIZPOS (- HORIZPOS 0.09))
 
52
  (add-normal-slot '())
 
53
  (set! HORIZPOS (- HORIZPOS 0.09))
 
54
  (add-normal-slot '())
 
55
  (set! HORIZPOS (- HORIZPOS 0.09))
 
56
  (add-normal-slot '())
 
57
  (set! HORIZPOS (- HORIZPOS 0.09))
 
58
  (add-normal-slot '())
 
59
  (set! HORIZPOS (- HORIZPOS 0.09))
 
60
  (add-normal-slot '())
 
61
  (set! HORIZPOS (- HORIZPOS 0.09))
 
62
  (add-normal-slot '())
 
63
  (set! HORIZPOS (- HORIZPOS 0.09))
 
64
  (add-normal-slot '())
 
65
  (add-carriage-return-slot)
 
66
  (add-extended-slot '() down)
 
67
  (add-extended-slot '() down)
 
68
  (add-extended-slot '() down)
 
69
  (add-extended-slot '() down)
 
70
  (add-extended-slot '() down)
 
71
  (add-extended-slot '() down)
 
72
  (add-extended-slot '() down)
 
73
  (add-extended-slot '() down)
 
74
  (add-extended-slot '() down)
 
75
  (add-extended-slot '() down)
 
76
  (add-extended-slot '() down)
 
77
  (add-extended-slot '() down)
 
78
  (deal-initial-setup)
 
79
 
 
80
  (give-status-message)
 
81
 
 
82
  (list 12 6))
 
83
 
 
84
(define (get-options) #f)
 
85
 
 
86
(define (apply-options options) #f)
 
87
 
 
88
(set-lambda! 'new-game new-game)
 
89
(set-lambda! 'get-options get-options)
 
90
(set-lambda! 'apply-options apply-options)