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

« back to all changes in this revision

Viewing changes to games/Rules.HOWTO

  • 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:
201
201
 
202
202
(game-continuable) Asks if the game is not stuck (and therefore not lost).
203
203
 
204
 
(get-hint) is called when the user requests a hint. The return from hint is in the form of a list.  It seems to be used in two ways. (get-name a-card) is a very useful library function.
 
204
(get-hint) is called when the user requests a hint. It should be created like (list 0 (_"Hint string.")), or (hint-move from-slot card-count to-slot).
205
205
 
206
206
Method 0:
207
207
(list 0 "A single sentence.") Perhaps something like _"Deal the next row".
359
359
(check-alternating-color-list card-list)
360
360
(check-straight-descending-list card-list) 
361
361
(length card-list)
362
 
(get-value-name value)    ; card value to string
363
 
(get-suit-name suit)      ; card suit to string
364
 
(get-joker-name card)     ; name of a particular joker 
365
 
(get-name card)           ; card description as a string
 
362
(hint-move from-slot card-count to-slot) ; creates a hint for moving cards
366
363
(set-cards! slot-id card-list) ; puts card-list into the slot "slot-id"
367
364
(make-card value suit)   ; turn a value and a suit into a card
368
365