Home » Archimedes archive » Acorn User » AU 1997-12.adf » Regulars » StarInfo/Pratt/!Patience/!Help

StarInfo/Pratt/!Patience/!Help

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Archimedes archive » Acorn User » AU 1997-12.adf » Regulars
Filename: StarInfo/Pratt/!Patience/!Help
Read OK:
File size: 0B3F bytes
Load address: 0000
Exec address: 0000
File contents
Patience Version 1.00 (5/3/95)
Code - � David Pratt 

-----------------------------------------------------------------------------

This is a version of patience which I learnt a couple of days ago. I got
bored of shuffling and dealing the cards out. It took so long! So I decided 
to write a computer version of it. The basic idea is to get all the cards
in rows, in order in suits. The game takes two parts. The first part is
to move all the four aces to the left hand spaced. The second part is the 
more lengthy, which is to put the cards in order. There is one rule to obey.
You can only move a card next to one if it is the next one in sequence and
the same suit. This means that is there is a blank space next to a king, 
that space is out of play. You can only play cards into empty spaces. 

There are four buttons as the bottom of the window. Restart reshuffles the
cards, Do Aces will move the four Aces into the empty places at the left of
the screen, Try will unintelligently play the game until it finishes or
cannot make any furthur moves and Undo will undo the last moves back to the
start of the game, as long as you have not made more that 1000 moves (!) 

Future version of the game will include
```````````````````````````````````````
 � A high score table
 � Ability to save current position
 � Hints on next moves
 � Find card facility
 
Have fun
DJP 1996

-----------------------------------------------------------------------------

Contacting the author
`````````````````````
Home
15, Partridge Down
Winchester
Hampshire
SO22 4HL

Term (1996-7)
Jessie Montgomery
Duryard Halls
Lower Argyll Road
Exeter
Devon
EX4 4RA

e-mail (1996-8)
D.J.Pratt@exeter.ac.uk

-----------------------------------------------------------------------------

Copyright notice
````````````````
  This software is public domain. This means it can be distributed to
others. You should not make any charge for this program, other than any
reasonable amount for your costs, eg postage. The copyright of code/artwork
etc remains that of the respective people, as made clear at the beginning of
this file. You may modify/use any part of the code for non profit purposes.
If you intend to release any product using code from this program, please
contact the author first. Commercial use of code will be considered in the
same way.
  This product may not be placed in any public domain library, BBS, Web site
or any other form of public or private distribution system for three months
after its publication in Acorn User. After this period, any distribution of
this kind would be welcomed. Thank you.

-----------------------------------------------------------------------------

History
```````

   1.01 (16/11/96) - Help file added and icons rearranged in window.
   1.00 (05/03/95) - Original version.

-----------------------------------------------------------------------------
00000000  50 61 74 69 65 6e 63 65  20 56 65 72 73 69 6f 6e  |Patience Version|
00000010  20 31 2e 30 30 20 28 35  2f 33 2f 39 35 29 0a 43  | 1.00 (5/3/95).C|
00000020  6f 64 65 20 2d 20 a9 20  44 61 76 69 64 20 50 72  |ode - . David Pr|
00000030  61 74 74 20 0a 0a 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |att ..----------|
00000040  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00000080  2d 2d 2d 0a 0a 54 68 69  73 20 69 73 20 61 20 76  |---..This is a v|
00000090  65 72 73 69 6f 6e 20 6f  66 20 70 61 74 69 65 6e  |ersion of patien|
000000a0  63 65 20 77 68 69 63 68  20 49 20 6c 65 61 72 6e  |ce which I learn|
000000b0  74 20 61 20 63 6f 75 70  6c 65 20 6f 66 20 64 61  |t a couple of da|
000000c0  79 73 20 61 67 6f 2e 20  49 20 67 6f 74 0a 62 6f  |ys ago. I got.bo|
000000d0  72 65 64 20 6f 66 20 73  68 75 66 66 6c 69 6e 67  |red of shuffling|
000000e0  20 61 6e 64 20 64 65 61  6c 69 6e 67 20 74 68 65  | and dealing the|
000000f0  20 63 61 72 64 73 20 6f  75 74 2e 20 49 74 20 74  | cards out. It t|
00000100  6f 6f 6b 20 73 6f 20 6c  6f 6e 67 21 20 53 6f 20  |ook so long! So |
00000110  49 20 64 65 63 69 64 65  64 20 0a 74 6f 20 77 72  |I decided .to wr|
00000120  69 74 65 20 61 20 63 6f  6d 70 75 74 65 72 20 76  |ite a computer v|
00000130  65 72 73 69 6f 6e 20 6f  66 20 69 74 2e 20 54 68  |ersion of it. Th|
00000140  65 20 62 61 73 69 63 20  69 64 65 61 20 69 73 20  |e basic idea is |
00000150  74 6f 20 67 65 74 20 61  6c 6c 20 74 68 65 20 63  |to get all the c|
00000160  61 72 64 73 0a 69 6e 20  72 6f 77 73 2c 20 69 6e  |ards.in rows, in|
00000170  20 6f 72 64 65 72 20 69  6e 20 73 75 69 74 73 2e  | order in suits.|
00000180  20 54 68 65 20 67 61 6d  65 20 74 61 6b 65 73 20  | The game takes |
00000190  74 77 6f 20 70 61 72 74  73 2e 20 54 68 65 20 66  |two parts. The f|
000001a0  69 72 73 74 20 70 61 72  74 20 69 73 0a 74 6f 20  |irst part is.to |
000001b0  6d 6f 76 65 20 61 6c 6c  20 74 68 65 20 66 6f 75  |move all the fou|
000001c0  72 20 61 63 65 73 20 74  6f 20 74 68 65 20 6c 65  |r aces to the le|
000001d0  66 74 20 68 61 6e 64 20  73 70 61 63 65 64 2e 20  |ft hand spaced. |
000001e0  54 68 65 20 73 65 63 6f  6e 64 20 70 61 72 74 20  |The second part |
000001f0  69 73 20 74 68 65 20 0a  6d 6f 72 65 20 6c 65 6e  |is the .more len|
00000200  67 74 68 79 2c 20 77 68  69 63 68 20 69 73 20 74  |gthy, which is t|
00000210  6f 20 70 75 74 20 74 68  65 20 63 61 72 64 73 20  |o put the cards |
00000220  69 6e 20 6f 72 64 65 72  2e 20 54 68 65 72 65 20  |in order. There |
00000230  69 73 20 6f 6e 65 20 72  75 6c 65 20 74 6f 20 6f  |is one rule to o|
00000240  62 65 79 2e 0a 59 6f 75  20 63 61 6e 20 6f 6e 6c  |bey..You can onl|
00000250  79 20 6d 6f 76 65 20 61  20 63 61 72 64 20 6e 65  |y move a card ne|
00000260  78 74 20 74 6f 20 6f 6e  65 20 69 66 20 69 74 20  |xt to one if it |
00000270  69 73 20 74 68 65 20 6e  65 78 74 20 6f 6e 65 20  |is the next one |
00000280  69 6e 20 73 65 71 75 65  6e 63 65 20 61 6e 64 0a  |in sequence and.|
00000290  74 68 65 20 73 61 6d 65  20 73 75 69 74 2e 20 54  |the same suit. T|
000002a0  68 69 73 20 6d 65 61 6e  73 20 74 68 61 74 20 69  |his means that i|
000002b0  73 20 74 68 65 72 65 20  69 73 20 61 20 62 6c 61  |s there is a bla|
000002c0  6e 6b 20 73 70 61 63 65  20 6e 65 78 74 20 74 6f  |nk space next to|
000002d0  20 61 20 6b 69 6e 67 2c  20 0a 74 68 61 74 20 73  | a king, .that s|
000002e0  70 61 63 65 20 69 73 20  6f 75 74 20 6f 66 20 70  |pace is out of p|
000002f0  6c 61 79 2e 20 59 6f 75  20 63 61 6e 20 6f 6e 6c  |lay. You can onl|
00000300  79 20 70 6c 61 79 20 63  61 72 64 73 20 69 6e 74  |y play cards int|
00000310  6f 20 65 6d 70 74 79 20  73 70 61 63 65 73 2e 20  |o empty spaces. |
00000320  0a 0a 54 68 65 72 65 20  61 72 65 20 66 6f 75 72  |..There are four|
00000330  20 62 75 74 74 6f 6e 73  20 61 73 20 74 68 65 20  | buttons as the |
00000340  62 6f 74 74 6f 6d 20 6f  66 20 74 68 65 20 77 69  |bottom of the wi|
00000350  6e 64 6f 77 2e 20 52 65  73 74 61 72 74 20 72 65  |ndow. Restart re|
00000360  73 68 75 66 66 6c 65 73  20 74 68 65 0a 63 61 72  |shuffles the.car|
00000370  64 73 2c 20 44 6f 20 41  63 65 73 20 77 69 6c 6c  |ds, Do Aces will|
00000380  20 6d 6f 76 65 20 74 68  65 20 66 6f 75 72 20 41  | move the four A|
00000390  63 65 73 20 69 6e 74 6f  20 74 68 65 20 65 6d 70  |ces into the emp|
000003a0  74 79 20 70 6c 61 63 65  73 20 61 74 20 74 68 65  |ty places at the|
000003b0  20 6c 65 66 74 20 6f 66  0a 74 68 65 20 73 63 72  | left of.the scr|
000003c0  65 65 6e 2c 20 54 72 79  20 77 69 6c 6c 20 75 6e  |een, Try will un|
000003d0  69 6e 74 65 6c 6c 69 67  65 6e 74 6c 79 20 70 6c  |intelligently pl|
000003e0  61 79 20 74 68 65 20 67  61 6d 65 20 75 6e 74 69  |ay the game unti|
000003f0  6c 20 69 74 20 66 69 6e  69 73 68 65 73 20 6f 72  |l it finishes or|
00000400  0a 63 61 6e 6e 6f 74 20  6d 61 6b 65 20 61 6e 79  |.cannot make any|
00000410  20 66 75 72 74 68 75 72  20 6d 6f 76 65 73 20 61  | furthur moves a|
00000420  6e 64 20 55 6e 64 6f 20  77 69 6c 6c 20 75 6e 64  |nd Undo will und|
00000430  6f 20 74 68 65 20 6c 61  73 74 20 6d 6f 76 65 73  |o the last moves|
00000440  20 62 61 63 6b 20 74 6f  20 74 68 65 0a 73 74 61  | back to the.sta|
00000450  72 74 20 6f 66 20 74 68  65 20 67 61 6d 65 2c 20  |rt of the game, |
00000460  61 73 20 6c 6f 6e 67 20  61 73 20 79 6f 75 20 68  |as long as you h|
00000470  61 76 65 20 6e 6f 74 20  6d 61 64 65 20 6d 6f 72  |ave not made mor|
00000480  65 20 74 68 61 74 20 31  30 30 30 20 6d 6f 76 65  |e that 1000 move|
00000490  73 20 28 21 29 20 0a 0a  46 75 74 75 72 65 20 76  |s (!) ..Future v|
000004a0  65 72 73 69 6f 6e 20 6f  66 20 74 68 65 20 67 61  |ersion of the ga|
000004b0  6d 65 20 77 69 6c 6c 20  69 6e 63 6c 75 64 65 0a  |me will include.|
000004c0  60 60 60 60 60 60 60 60  60 60 60 60 60 60 60 60  |````````````````|
*
000004e0  60 60 60 60 60 60 60 0a  20 8f 20 41 20 68 69 67  |```````. . A hig|
000004f0  68 20 73 63 6f 72 65 20  74 61 62 6c 65 0a 20 8f  |h score table. .|
00000500  20 41 62 69 6c 69 74 79  20 74 6f 20 73 61 76 65  | Ability to save|
00000510  20 63 75 72 72 65 6e 74  20 70 6f 73 69 74 69 6f  | current positio|
00000520  6e 0a 20 8f 20 48 69 6e  74 73 20 6f 6e 20 6e 65  |n. . Hints on ne|
00000530  78 74 20 6d 6f 76 65 73  0a 20 8f 20 46 69 6e 64  |xt moves. . Find|
00000540  20 63 61 72 64 20 66 61  63 69 6c 69 74 79 0a 20  | card facility. |
00000550  0a 48 61 76 65 20 66 75  6e 0a 44 4a 50 20 31 39  |.Have fun.DJP 19|
00000560  39 36 0a 0a 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |96..------------|
00000570  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
000005b0  2d 0a 0a 43 6f 6e 74 61  63 74 69 6e 67 20 74 68  |-..Contacting th|
000005c0  65 20 61 75 74 68 6f 72  0a 60 60 60 60 60 60 60  |e author.```````|
000005d0  60 60 60 60 60 60 60 60  60 60 60 60 60 60 0a 48  |``````````````.H|
000005e0  6f 6d 65 0a 31 35 2c 20  50 61 72 74 72 69 64 67  |ome.15, Partridg|
000005f0  65 20 44 6f 77 6e 0a 57  69 6e 63 68 65 73 74 65  |e Down.Wincheste|
00000600  72 0a 48 61 6d 70 73 68  69 72 65 0a 53 4f 32 32  |r.Hampshire.SO22|
00000610  20 34 48 4c 0a 0a 54 65  72 6d 20 28 31 39 39 36  | 4HL..Term (1996|
00000620  2d 37 29 0a 4a 65 73 73  69 65 20 4d 6f 6e 74 67  |-7).Jessie Montg|
00000630  6f 6d 65 72 79 0a 44 75  72 79 61 72 64 20 48 61  |omery.Duryard Ha|
00000640  6c 6c 73 0a 4c 6f 77 65  72 20 41 72 67 79 6c 6c  |lls.Lower Argyll|
00000650  20 52 6f 61 64 0a 45 78  65 74 65 72 0a 44 65 76  | Road.Exeter.Dev|
00000660  6f 6e 0a 45 58 34 20 34  52 41 0a 0a 65 2d 6d 61  |on.EX4 4RA..e-ma|
00000670  69 6c 20 28 31 39 39 36  2d 38 29 0a 44 2e 4a 2e  |il (1996-8).D.J.|
00000680  50 72 61 74 74 40 65 78  65 74 65 72 2e 61 63 2e  |Pratt@exeter.ac.|
00000690  75 6b 0a 0a 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |uk..------------|
000006a0  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
000006e0  2d 0a 0a 43 6f 70 79 72  69 67 68 74 20 6e 6f 74  |-..Copyright not|
000006f0  69 63 65 0a 60 60 60 60  60 60 60 60 60 60 60 60  |ice.````````````|
00000700  60 60 60 60 0a 20 20 54  68 69 73 20 73 6f 66 74  |````.  This soft|
00000710  77 61 72 65 20 69 73 20  70 75 62 6c 69 63 20 64  |ware is public d|
00000720  6f 6d 61 69 6e 2e 20 54  68 69 73 20 6d 65 61 6e  |omain. This mean|
00000730  73 20 69 74 20 63 61 6e  20 62 65 20 64 69 73 74  |s it can be dist|
00000740  72 69 62 75 74 65 64 20  74 6f 0a 6f 74 68 65 72  |ributed to.other|
00000750  73 2e 20 59 6f 75 20 73  68 6f 75 6c 64 20 6e 6f  |s. You should no|
00000760  74 20 6d 61 6b 65 20 61  6e 79 20 63 68 61 72 67  |t make any charg|
00000770  65 20 66 6f 72 20 74 68  69 73 20 70 72 6f 67 72  |e for this progr|
00000780  61 6d 2c 20 6f 74 68 65  72 20 74 68 61 6e 20 61  |am, other than a|
00000790  6e 79 0a 72 65 61 73 6f  6e 61 62 6c 65 20 61 6d  |ny.reasonable am|
000007a0  6f 75 6e 74 20 66 6f 72  20 79 6f 75 72 20 63 6f  |ount for your co|
000007b0  73 74 73 2c 20 65 67 20  70 6f 73 74 61 67 65 2e  |sts, eg postage.|
000007c0  20 54 68 65 20 63 6f 70  79 72 69 67 68 74 20 6f  | The copyright o|
000007d0  66 20 63 6f 64 65 2f 61  72 74 77 6f 72 6b 0a 65  |f code/artwork.e|
000007e0  74 63 20 72 65 6d 61 69  6e 73 20 74 68 61 74 20  |tc remains that |
000007f0  6f 66 20 74 68 65 20 72  65 73 70 65 63 74 69 76  |of the respectiv|
00000800  65 20 70 65 6f 70 6c 65  2c 20 61 73 20 6d 61 64  |e people, as mad|
00000810  65 20 63 6c 65 61 72 20  61 74 20 74 68 65 20 62  |e clear at the b|
00000820  65 67 69 6e 6e 69 6e 67  20 6f 66 0a 74 68 69 73  |eginning of.this|
00000830  20 66 69 6c 65 2e 20 59  6f 75 20 6d 61 79 20 6d  | file. You may m|
00000840  6f 64 69 66 79 2f 75 73  65 20 61 6e 79 20 70 61  |odify/use any pa|
00000850  72 74 20 6f 66 20 74 68  65 20 63 6f 64 65 20 66  |rt of the code f|
00000860  6f 72 20 6e 6f 6e 20 70  72 6f 66 69 74 20 70 75  |or non profit pu|
00000870  72 70 6f 73 65 73 2e 0a  49 66 20 79 6f 75 20 69  |rposes..If you i|
00000880  6e 74 65 6e 64 20 74 6f  20 72 65 6c 65 61 73 65  |ntend to release|
00000890  20 61 6e 79 20 70 72 6f  64 75 63 74 20 75 73 69  | any product usi|
000008a0  6e 67 20 63 6f 64 65 20  66 72 6f 6d 20 74 68 69  |ng code from thi|
000008b0  73 20 70 72 6f 67 72 61  6d 2c 20 70 6c 65 61 73  |s program, pleas|
000008c0  65 0a 63 6f 6e 74 61 63  74 20 74 68 65 20 61 75  |e.contact the au|
000008d0  74 68 6f 72 20 66 69 72  73 74 2e 20 43 6f 6d 6d  |thor first. Comm|
000008e0  65 72 63 69 61 6c 20 75  73 65 20 6f 66 20 63 6f  |ercial use of co|
000008f0  64 65 20 77 69 6c 6c 20  62 65 20 63 6f 6e 73 69  |de will be consi|
00000900  64 65 72 65 64 20 69 6e  20 74 68 65 0a 73 61 6d  |dered in the.sam|
00000910  65 20 77 61 79 2e 0a 20  20 54 68 69 73 20 70 72  |e way..  This pr|
00000920  6f 64 75 63 74 20 6d 61  79 20 6e 6f 74 20 62 65  |oduct may not be|
00000930  20 70 6c 61 63 65 64 20  69 6e 20 61 6e 79 20 70  | placed in any p|
00000940  75 62 6c 69 63 20 64 6f  6d 61 69 6e 20 6c 69 62  |ublic domain lib|
00000950  72 61 72 79 2c 20 42 42  53 2c 20 57 65 62 20 73  |rary, BBS, Web s|
00000960  69 74 65 0a 6f 72 20 61  6e 79 20 6f 74 68 65 72  |ite.or any other|
00000970  20 66 6f 72 6d 20 6f 66  20 70 75 62 6c 69 63 20  | form of public |
00000980  6f 72 20 70 72 69 76 61  74 65 20 64 69 73 74 72  |or private distr|
00000990  69 62 75 74 69 6f 6e 20  73 79 73 74 65 6d 20 66  |ibution system f|
000009a0  6f 72 20 74 68 72 65 65  20 6d 6f 6e 74 68 73 0a  |or three months.|
000009b0  61 66 74 65 72 20 69 74  73 20 70 75 62 6c 69 63  |after its public|
000009c0  61 74 69 6f 6e 20 69 6e  20 41 63 6f 72 6e 20 55  |ation in Acorn U|
000009d0  73 65 72 2e 20 41 66 74  65 72 20 74 68 69 73 20  |ser. After this |
000009e0  70 65 72 69 6f 64 2c 20  61 6e 79 20 64 69 73 74  |period, any dist|
000009f0  72 69 62 75 74 69 6f 6e  20 6f 66 0a 74 68 69 73  |ribution of.this|
00000a00  20 6b 69 6e 64 20 77 6f  75 6c 64 20 62 65 20 77  | kind would be w|
00000a10  65 6c 63 6f 6d 65 64 2e  20 54 68 61 6e 6b 20 79  |elcomed. Thank y|
00000a20  6f 75 2e 0a 0a 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |ou...-----------|
00000a30  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00000a70  2d 2d 0a 0a 48 69 73 74  6f 72 79 0a 60 60 60 60  |--..History.````|
00000a80  60 60 60 0a 0a 20 20 20  31 2e 30 31 20 28 31 36  |```..   1.01 (16|
00000a90  2f 31 31 2f 39 36 29 20  2d 20 48 65 6c 70 20 66  |/11/96) - Help f|
00000aa0  69 6c 65 20 61 64 64 65  64 20 61 6e 64 20 69 63  |ile added and ic|
00000ab0  6f 6e 73 20 72 65 61 72  72 61 6e 67 65 64 20 69  |ons rearranged i|
00000ac0  6e 20 77 69 6e 64 6f 77  2e 0a 20 20 20 31 2e 30  |n window..   1.0|
00000ad0  30 20 28 30 35 2f 30 33  2f 39 35 29 20 2d 20 4f  |0 (05/03/95) - O|
00000ae0  72 69 67 69 6e 61 6c 20  76 65 72 73 69 6f 6e 2e  |riginal version.|
00000af0  0a 0a 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |..--------------|
00000b00  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
*
00000b30  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d     |---------------|
00000b3f