Home » Archimedes archive » Archimedes World » AW-1994-04-Disc1.adf » Disk1Apr94 » !AWApr94/Goodies/Hex/!Help

!AWApr94/Goodies/Hex/!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 » Archimedes World » AW-1994-04-Disc1.adf » Disk1Apr94
Filename: !AWApr94/Goodies/Hex/!Help
Read OK:
File size: 1586 bytes
Load address: 0000
Exec address: 0000
File contents
                     =========
                   //         \\
                  <<   H E X   >>
                   \\         //
                     ========= 


            A board game for two players
            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~


    Contents:

         1 - Rules of the game.

         2 - Using the program.

         3 - Brief history of the game.

         4 - Acknowledgements.


====================================================
 1              RULES OF THE GAME                 1
....................................................

 Two players take it in turn to place a nought or a
 cross on the hexagonal board.

 The 'crosses player' wins by making an unbroken
 line of crosses between the two edges of the board
 marked with crosses (left to right).

 The 'noughts player' wins by making an unbroken
 line of crosses between the two edges of the board
 marked with noughts (top to bottom).

 The winning line can be as convoluted as
 necessary, it doesn't have to be a simple straight
 line.

 The corner hexes count as a nought or a cross -
 for example, a row of noughts across the short
 diagonal is a win for noughts; a row of crosses on
 the same line is a win for crosses.

 Play can be made at any hex on the board, you do
 not have to make your next move adjacent to the
 last.

 There is always a winner - in blocking your
 opponent from making a line, you must make an
 unbroken line between your sides of the board.


====================================================
 2              USING THE PROGRAM                 2
....................................................

 The application installs on the icon bar, with the
 main game board window open. Before starting a
 game, the following options can be selected:


 From the main board menu:

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

   Red to start      The player to start when the
   Blue to start     next game starts can be
                     selected. The starter auto-
                     matically alternates between
                     games, but can be forced by
                     selecting one of these
                     options.

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

   Show scores       Opens a window displaying
                     number of wins.

   Reset scores      Resets scores to zero.

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

   Set game options  Opens a window displaying
                     several options:-

     i)   Blue player - human / computer
     ii)  Red player  - human / computer
     iii) Computer level - 1 (easy) to 5 (hard)

     When these options have been set, select the
     'OK' button to confirm. 'Cancel' resets the
     options, and makes no changes.

        NB  These options can be saved using
        ~~  'Save options' from the icon bar
            menu, and will then be used when
            the program is next run.

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

 You are now ready to start a new game - select
 'Start new game' from the main board menu.

 The board indicates which player is human, and
 which is being played by the computer. The player
 to move has a coloured background - if it is a
 human's move, simply click select over the hexagon
 where you wish to place a blue circle (or red
 cross).

 A human player can resign when it is his or her
 turn to go, by selecting 'Resign' on the main
 board menu. This can also be used to abort a
 computer vs computer game: change one to human and
 resign.

 A win is signalled with a beep, and the winning
 line is indicated.


====================================================
 3           BRIEF HISTORY OF THE GAME            3
....................................................

 The game is rather well described in the book 
 'Mathematical Puzzles and Diversions' by Martin
 Gardner, Pelican Books, ISBN 0 14 02.0713 9.

 It was invented by Piet Hein of the Institute for
 Theoretical Physics of Denmark in 1942. The board
 can be of any size, but 11x11 is convenient: it
 can be played using counters on a hexagonal board,
 or, like noughts and crosses, using pen and paper.
 A board can easily be drawn using Draw with an
 isometric grid - all you then need is a pen and a
 friend.

 The game has been computerised previously (1953),
 using an anologue device which modelled the board
 as a two dimensional potential field, with the
 moves represented by positive and negative
 charges. The next move was determined by measuring
 saddle points in the field. Like this program, the
 anologue computer was poor at end play - clinching
 the win.


====================================================
 4               ACKNOWLEDGEMENTS                 4
....................................................

 The program was originally written as single
 tasking, and was shoe-horned into a multi-tasking
 shell using the Dabhand Guide to BASIC Wimp
 Programming on the Acorn, and its associated 'Bare
 Bones' applications, library functions and
 procedures. This book is truly excellent, and I
 am obliged to make the following statement
 verbatim in order to freely use the supplied
 code:-


   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   'Program developed with routines written by
    A.P.Senior as provided with the book BASIC
    Wimp Programming published by Dabs Press'.

   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 I strongly recommend buying the book with the
 optional floppy discs.

====================================================
                    END OF HELP
====================================================
00000000  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00000010  20 20 20 20 20 20 3d 3d  3d 3d 3d 3d 3d 3d 3d 0a  |      =========.|
00000020  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000030  20 20 20 2f 2f 20 20 20  20 20 20 20 20 20 5c 5c  |   //         \\|
00000040  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00000050  20 20 20 3c 3c 20 20 20  48 20 45 20 58 20 20 20  |   <<   H E X   |
00000060  3e 3e 0a 20 20 20 20 20  20 20 20 20 20 20 20 20  |>>.             |
00000070  20 20 20 20 20 20 5c 5c  20 20 20 20 20 20 20 20  |      \\        |
00000080  20 2f 2f 0a 20 20 20 20  20 20 20 20 20 20 20 20  | //.            |
00000090  20 20 20 20 20 20 20 20  20 3d 3d 3d 3d 3d 3d 3d  |         =======|
000000a0  3d 3d 20 0a 0a 0a 20 20  20 20 20 20 20 20 20 20  |== ...          |
000000b0  20 20 41 20 62 6f 61 72  64 20 67 61 6d 65 20 66  |  A board game f|
000000c0  6f 72 20 74 77 6f 20 70  6c 61 79 65 72 73 0a 20  |or two players. |
000000d0  20 20 20 20 20 20 20 20  20 20 20 7e 7e 7e 7e 7e  |           ~~~~~|
000000e0  7e 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 7e  |~~~~~~~~~~~~~~~~|
000000f0  7e 7e 7e 7e 7e 7e 7e 0a  0a 0a 20 20 20 20 43 6f  |~~~~~~~...    Co|
00000100  6e 74 65 6e 74 73 3a 0a  0a 20 20 20 20 20 20 20  |ntents:..       |
00000110  20 20 31 20 2d 20 52 75  6c 65 73 20 6f 66 20 74  |  1 - Rules of t|
00000120  68 65 20 67 61 6d 65 2e  0a 0a 20 20 20 20 20 20  |he game...      |
00000130  20 20 20 32 20 2d 20 55  73 69 6e 67 20 74 68 65  |   2 - Using the|
00000140  20 70 72 6f 67 72 61 6d  2e 0a 0a 20 20 20 20 20  | program...     |
00000150  20 20 20 20 33 20 2d 20  42 72 69 65 66 20 68 69  |    3 - Brief hi|
00000160  73 74 6f 72 79 20 6f 66  20 74 68 65 20 67 61 6d  |story of the gam|
00000170  65 2e 0a 0a 20 20 20 20  20 20 20 20 20 34 20 2d  |e...         4 -|
00000180  20 41 63 6b 6e 6f 77 6c  65 64 67 65 6d 65 6e 74  | Acknowledgement|
00000190  73 2e 0a 0a 0a 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |s....===========|
000001a0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
000001c0  3d 3d 3d 3d 3d 3d 3d 3d  3d 0a 20 31 20 20 20 20  |=========. 1    |
000001d0  20 20 20 20 20 20 20 20  20 20 52 55 4c 45 53 20  |          RULES |
000001e0  4f 46 20 54 48 45 20 47  41 4d 45 20 20 20 20 20  |OF THE GAME     |
000001f0  20 20 20 20 20 20 20 20  20 20 20 20 31 0a 2e 2e  |            1...|
00000200  2e 2e 2e 2e 2e 2e 2e 2e  2e 2e 2e 2e 2e 2e 2e 2e  |................|
*
00000230  2e 2e 0a 0a 20 54 77 6f  20 70 6c 61 79 65 72 73  |.... Two players|
00000240  20 74 61 6b 65 20 69 74  20 69 6e 20 74 75 72 6e  | take it in turn|
00000250  20 74 6f 20 70 6c 61 63  65 20 61 20 6e 6f 75 67  | to place a noug|
00000260  68 74 20 6f 72 20 61 0a  20 63 72 6f 73 73 20 6f  |ht or a. cross o|
00000270  6e 20 74 68 65 20 68 65  78 61 67 6f 6e 61 6c 20  |n the hexagonal |
00000280  62 6f 61 72 64 2e 0a 0a  20 54 68 65 20 27 63 72  |board... The 'cr|
00000290  6f 73 73 65 73 20 70 6c  61 79 65 72 27 20 77 69  |osses player' wi|
000002a0  6e 73 20 62 79 20 6d 61  6b 69 6e 67 20 61 6e 20  |ns by making an |
000002b0  75 6e 62 72 6f 6b 65 6e  0a 20 6c 69 6e 65 20 6f  |unbroken. line o|
000002c0  66 20 63 72 6f 73 73 65  73 20 62 65 74 77 65 65  |f crosses betwee|
000002d0  6e 20 74 68 65 20 74 77  6f 20 65 64 67 65 73 20  |n the two edges |
000002e0  6f 66 20 74 68 65 20 62  6f 61 72 64 0a 20 6d 61  |of the board. ma|
000002f0  72 6b 65 64 20 77 69 74  68 20 63 72 6f 73 73 65  |rked with crosse|
00000300  73 20 28 6c 65 66 74 20  74 6f 20 72 69 67 68 74  |s (left to right|
00000310  29 2e 0a 0a 20 54 68 65  20 27 6e 6f 75 67 68 74  |)... The 'nought|
00000320  73 20 70 6c 61 79 65 72  27 20 77 69 6e 73 20 62  |s player' wins b|
00000330  79 20 6d 61 6b 69 6e 67  20 61 6e 20 75 6e 62 72  |y making an unbr|
00000340  6f 6b 65 6e 0a 20 6c 69  6e 65 20 6f 66 20 63 72  |oken. line of cr|
00000350  6f 73 73 65 73 20 62 65  74 77 65 65 6e 20 74 68  |osses between th|
00000360  65 20 74 77 6f 20 65 64  67 65 73 20 6f 66 20 74  |e two edges of t|
00000370  68 65 20 62 6f 61 72 64  0a 20 6d 61 72 6b 65 64  |he board. marked|
00000380  20 77 69 74 68 20 6e 6f  75 67 68 74 73 20 28 74  | with noughts (t|
00000390  6f 70 20 74 6f 20 62 6f  74 74 6f 6d 29 2e 0a 0a  |op to bottom)...|
000003a0  20 54 68 65 20 77 69 6e  6e 69 6e 67 20 6c 69 6e  | The winning lin|
000003b0  65 20 63 61 6e 20 62 65  20 61 73 20 63 6f 6e 76  |e can be as conv|
000003c0  6f 6c 75 74 65 64 20 61  73 0a 20 6e 65 63 65 73  |oluted as. neces|
000003d0  73 61 72 79 2c 20 69 74  20 64 6f 65 73 6e 27 74  |sary, it doesn't|
000003e0  20 68 61 76 65 20 74 6f  20 62 65 20 61 20 73 69  | have to be a si|
000003f0  6d 70 6c 65 20 73 74 72  61 69 67 68 74 0a 20 6c  |mple straight. l|
00000400  69 6e 65 2e 0a 0a 20 54  68 65 20 63 6f 72 6e 65  |ine... The corne|
00000410  72 20 68 65 78 65 73 20  63 6f 75 6e 74 20 61 73  |r hexes count as|
00000420  20 61 20 6e 6f 75 67 68  74 20 6f 72 20 61 20 63  | a nought or a c|
00000430  72 6f 73 73 20 2d 0a 20  66 6f 72 20 65 78 61 6d  |ross -. for exam|
00000440  70 6c 65 2c 20 61 20 72  6f 77 20 6f 66 20 6e 6f  |ple, a row of no|
00000450  75 67 68 74 73 20 61 63  72 6f 73 73 20 74 68 65  |ughts across the|
00000460  20 73 68 6f 72 74 0a 20  64 69 61 67 6f 6e 61 6c  | short. diagonal|
00000470  20 69 73 20 61 20 77 69  6e 20 66 6f 72 20 6e 6f  | is a win for no|
00000480  75 67 68 74 73 3b 20 61  20 72 6f 77 20 6f 66 20  |ughts; a row of |
00000490  63 72 6f 73 73 65 73 20  6f 6e 0a 20 74 68 65 20  |crosses on. the |
000004a0  73 61 6d 65 20 6c 69 6e  65 20 69 73 20 61 20 77  |same line is a w|
000004b0  69 6e 20 66 6f 72 20 63  72 6f 73 73 65 73 2e 0a  |in for crosses..|
000004c0  0a 20 50 6c 61 79 20 63  61 6e 20 62 65 20 6d 61  |. Play can be ma|
000004d0  64 65 20 61 74 20 61 6e  79 20 68 65 78 20 6f 6e  |de at any hex on|
000004e0  20 74 68 65 20 62 6f 61  72 64 2c 20 79 6f 75 20  | the board, you |
000004f0  64 6f 0a 20 6e 6f 74 20  68 61 76 65 20 74 6f 20  |do. not have to |
00000500  6d 61 6b 65 20 79 6f 75  72 20 6e 65 78 74 20 6d  |make your next m|
00000510  6f 76 65 20 61 64 6a 61  63 65 6e 74 20 74 6f 20  |ove adjacent to |
00000520  74 68 65 0a 20 6c 61 73  74 2e 0a 0a 20 54 68 65  |the. last... The|
00000530  72 65 20 69 73 20 61 6c  77 61 79 73 20 61 20 77  |re is always a w|
00000540  69 6e 6e 65 72 20 2d 20  69 6e 20 62 6c 6f 63 6b  |inner - in block|
00000550  69 6e 67 20 79 6f 75 72  0a 20 6f 70 70 6f 6e 65  |ing your. oppone|
00000560  6e 74 20 66 72 6f 6d 20  6d 61 6b 69 6e 67 20 61  |nt from making a|
00000570  20 6c 69 6e 65 2c 20 79  6f 75 20 6d 75 73 74 20  | line, you must |
00000580  6d 61 6b 65 20 61 6e 0a  20 75 6e 62 72 6f 6b 65  |make an. unbroke|
00000590  6e 20 6c 69 6e 65 20 62  65 74 77 65 65 6e 20 79  |n line between y|
000005a0  6f 75 72 20 73 69 64 65  73 20 6f 66 20 74 68 65  |our sides of the|
000005b0  20 62 6f 61 72 64 2e 0a  0a 0a 3d 3d 3d 3d 3d 3d  | board....======|
000005c0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
000005e0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 0a 20  |==============. |
000005f0  32 20 20 20 20 20 20 20  20 20 20 20 20 20 20 55  |2              U|
00000600  53 49 4e 47 20 54 48 45  20 50 52 4f 47 52 41 4d  |SING THE PROGRAM|
00000610  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000620  20 32 0a 2e 2e 2e 2e 2e  2e 2e 2e 2e 2e 2e 2e 2e  | 2..............|
00000630  2e 2e 2e 2e 2e 2e 2e 2e  2e 2e 2e 2e 2e 2e 2e 2e  |................|
*
00000650  2e 2e 2e 2e 2e 2e 2e 0a  0a 20 54 68 65 20 61 70  |......... The ap|
00000660  70 6c 69 63 61 74 69 6f  6e 20 69 6e 73 74 61 6c  |plication instal|
00000670  6c 73 20 6f 6e 20 74 68  65 20 69 63 6f 6e 20 62  |ls on the icon b|
00000680  61 72 2c 20 77 69 74 68  20 74 68 65 0a 20 6d 61  |ar, with the. ma|
00000690  69 6e 20 67 61 6d 65 20  62 6f 61 72 64 20 77 69  |in game board wi|
000006a0  6e 64 6f 77 20 6f 70 65  6e 2e 20 42 65 66 6f 72  |ndow open. Befor|
000006b0  65 20 73 74 61 72 74 69  6e 67 20 61 0a 20 67 61  |e starting a. ga|
000006c0  6d 65 2c 20 74 68 65 20  66 6f 6c 6c 6f 77 69 6e  |me, the followin|
000006d0  67 20 6f 70 74 69 6f 6e  73 20 63 61 6e 20 62 65  |g options can be|
000006e0  20 73 65 6c 65 63 74 65  64 3a 0a 0a 0a 20 46 72  | selected:... Fr|
000006f0  6f 6d 20 74 68 65 20 6d  61 69 6e 20 62 6f 61 72  |om the main boar|
00000700  64 20 6d 65 6e 75 3a 0a  0a 20 2d 2d 2d 2d 2d 2d  |d menu:.. ------|
00000710  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 0a 0a 20  |-------------.. |
00000720  20 20 52 65 64 20 74 6f  20 73 74 61 72 74 20 20  |  Red to start  |
00000730  20 20 20 20 54 68 65 20  70 6c 61 79 65 72 20 74  |    The player t|
00000740  6f 20 73 74 61 72 74 20  77 68 65 6e 20 74 68 65  |o start when the|
00000750  0a 20 20 20 42 6c 75 65  20 74 6f 20 73 74 61 72  |.   Blue to star|
00000760  74 20 20 20 20 20 6e 65  78 74 20 67 61 6d 65 20  |t     next game |
00000770  73 74 61 72 74 73 20 63  61 6e 20 62 65 0a 20 20  |starts can be.  |
00000780  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000790  20 20 20 73 65 6c 65 63  74 65 64 2e 20 54 68 65  |   selected. The|
000007a0  20 73 74 61 72 74 65 72  20 61 75 74 6f 2d 0a 20  | starter auto-. |
000007b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000007c0  20 20 20 20 6d 61 74 69  63 61 6c 6c 79 20 61 6c  |    matically al|
000007d0  74 65 72 6e 61 74 65 73  20 62 65 74 77 65 65 6e  |ternates between|
000007e0  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
000007f0  20 20 20 20 20 20 67 61  6d 65 73 2c 20 62 75 74  |      games, but|
00000800  20 63 61 6e 20 62 65 20  66 6f 72 63 65 64 20 62  | can be forced b|
00000810  79 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |y.              |
00000820  20 20 20 20 20 20 20 73  65 6c 65 63 74 69 6e 67  |       selecting|
00000830  20 6f 6e 65 20 6f 66 20  74 68 65 73 65 0a 20 20  | one of these.  |
00000840  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000850  20 20 20 6f 70 74 69 6f  6e 73 2e 0a 0a 20 2d 2d  |   options... --|
00000860  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |----------------|
00000870  2d 0a 0a 20 20 20 53 68  6f 77 20 73 63 6f 72 65  |-..   Show score|
00000880  73 20 20 20 20 20 20 20  4f 70 65 6e 73 20 61 20  |s       Opens a |
00000890  77 69 6e 64 6f 77 20 64  69 73 70 6c 61 79 69 6e  |window displayin|
000008a0  67 0a 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |g.              |
000008b0  20 20 20 20 20 20 20 6e  75 6d 62 65 72 20 6f 66  |       number of|
000008c0  20 77 69 6e 73 2e 0a 0a  20 20 20 52 65 73 65 74  | wins...   Reset|
000008d0  20 73 63 6f 72 65 73 20  20 20 20 20 20 52 65 73  | scores      Res|
000008e0  65 74 73 20 73 63 6f 72  65 73 20 74 6f 20 7a 65  |ets scores to ze|
000008f0  72 6f 2e 0a 0a 20 2d 2d  2d 2d 2d 2d 2d 2d 2d 2d  |ro... ----------|
00000900  2d 2d 2d 2d 2d 2d 2d 2d  2d 0a 0a 20 20 20 53 65  |---------..   Se|
00000910  74 20 67 61 6d 65 20 6f  70 74 69 6f 6e 73 20 20  |t game options  |
00000920  4f 70 65 6e 73 20 61 20  77 69 6e 64 6f 77 20 64  |Opens a window d|
00000930  69 73 70 6c 61 79 69 6e  67 0a 20 20 20 20 20 20  |isplaying.      |
00000940  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 73  |               s|
00000950  65 76 65 72 61 6c 20 6f  70 74 69 6f 6e 73 3a 2d  |everal options:-|
00000960  0a 0a 20 20 20 20 20 69  29 20 20 20 42 6c 75 65  |..     i)   Blue|
00000970  20 70 6c 61 79 65 72 20  2d 20 68 75 6d 61 6e 20  | player - human |
00000980  2f 20 63 6f 6d 70 75 74  65 72 0a 20 20 20 20 20  |/ computer.     |
00000990  69 69 29 20 20 52 65 64  20 70 6c 61 79 65 72 20  |ii)  Red player |
000009a0  20 2d 20 68 75 6d 61 6e  20 2f 20 63 6f 6d 70 75  | - human / compu|
000009b0  74 65 72 0a 20 20 20 20  20 69 69 69 29 20 43 6f  |ter.     iii) Co|
000009c0  6d 70 75 74 65 72 20 6c  65 76 65 6c 20 2d 20 31  |mputer level - 1|
000009d0  20 28 65 61 73 79 29 20  74 6f 20 35 20 28 68 61  | (easy) to 5 (ha|
000009e0  72 64 29 0a 0a 20 20 20  20 20 57 68 65 6e 20 74  |rd)..     When t|
000009f0  68 65 73 65 20 6f 70 74  69 6f 6e 73 20 68 61 76  |hese options hav|
00000a00  65 20 62 65 65 6e 20 73  65 74 2c 20 73 65 6c 65  |e been set, sele|
00000a10  63 74 20 74 68 65 0a 20  20 20 20 20 27 4f 4b 27  |ct the.     'OK'|
00000a20  20 62 75 74 74 6f 6e 20  74 6f 20 63 6f 6e 66 69  | button to confi|
00000a30  72 6d 2e 20 27 43 61 6e  63 65 6c 27 20 72 65 73  |rm. 'Cancel' res|
00000a40  65 74 73 20 74 68 65 0a  20 20 20 20 20 6f 70 74  |ets the.     opt|
00000a50  69 6f 6e 73 2c 20 61 6e  64 20 6d 61 6b 65 73 20  |ions, and makes |
00000a60  6e 6f 20 63 68 61 6e 67  65 73 2e 0a 0a 20 20 20  |no changes...   |
00000a70  20 20 20 20 20 4e 42 20  20 54 68 65 73 65 20 6f  |     NB  These o|
00000a80  70 74 69 6f 6e 73 20 63  61 6e 20 62 65 20 73 61  |ptions can be sa|
00000a90  76 65 64 20 75 73 69 6e  67 0a 20 20 20 20 20 20  |ved using.      |
00000aa0  20 20 7e 7e 20 20 27 53  61 76 65 20 6f 70 74 69  |  ~~  'Save opti|
00000ab0  6f 6e 73 27 20 66 72 6f  6d 20 74 68 65 20 69 63  |ons' from the ic|
00000ac0  6f 6e 20 62 61 72 0a 20  20 20 20 20 20 20 20 20  |on bar.         |
00000ad0  20 20 20 6d 65 6e 75 2c  20 61 6e 64 20 77 69 6c  |   menu, and wil|
00000ae0  6c 20 74 68 65 6e 20 62  65 20 75 73 65 64 20 77  |l then be used w|
00000af0  68 65 6e 0a 20 20 20 20  20 20 20 20 20 20 20 20  |hen.            |
00000b00  74 68 65 20 70 72 6f 67  72 61 6d 20 69 73 20 6e  |the program is n|
00000b10  65 78 74 20 72 75 6e 2e  0a 0a 20 2d 2d 2d 2d 2d  |ext run... -----|
00000b20  2d 2d 2d 2d 2d 2d 2d 2d  2d 2d 2d 2d 2d 2d 0a 0a  |--------------..|
00000b30  20 59 6f 75 20 61 72 65  20 6e 6f 77 20 72 65 61  | You are now rea|
00000b40  64 79 20 74 6f 20 73 74  61 72 74 20 61 20 6e 65  |dy to start a ne|
00000b50  77 20 67 61 6d 65 20 2d  20 73 65 6c 65 63 74 0a  |w game - select.|
00000b60  20 27 53 74 61 72 74 20  6e 65 77 20 67 61 6d 65  | 'Start new game|
00000b70  27 20 66 72 6f 6d 20 74  68 65 20 6d 61 69 6e 20  |' from the main |
00000b80  62 6f 61 72 64 20 6d 65  6e 75 2e 0a 0a 20 54 68  |board menu... Th|
00000b90  65 20 62 6f 61 72 64 20  69 6e 64 69 63 61 74 65  |e board indicate|
00000ba0  73 20 77 68 69 63 68 20  70 6c 61 79 65 72 20 69  |s which player i|
00000bb0  73 20 68 75 6d 61 6e 2c  20 61 6e 64 0a 20 77 68  |s human, and. wh|
00000bc0  69 63 68 20 69 73 20 62  65 69 6e 67 20 70 6c 61  |ich is being pla|
00000bd0  79 65 64 20 62 79 20 74  68 65 20 63 6f 6d 70 75  |yed by the compu|
00000be0  74 65 72 2e 20 54 68 65  20 70 6c 61 79 65 72 0a  |ter. The player.|
00000bf0  20 74 6f 20 6d 6f 76 65  20 68 61 73 20 61 20 63  | to move has a c|
00000c00  6f 6c 6f 75 72 65 64 20  62 61 63 6b 67 72 6f 75  |oloured backgrou|
00000c10  6e 64 20 2d 20 69 66 20  69 74 20 69 73 20 61 0a  |nd - if it is a.|
00000c20  20 68 75 6d 61 6e 27 73  20 6d 6f 76 65 2c 20 73  | human's move, s|
00000c30  69 6d 70 6c 79 20 63 6c  69 63 6b 20 73 65 6c 65  |imply click sele|
00000c40  63 74 20 6f 76 65 72 20  74 68 65 20 68 65 78 61  |ct over the hexa|
00000c50  67 6f 6e 0a 20 77 68 65  72 65 20 79 6f 75 20 77  |gon. where you w|
00000c60  69 73 68 20 74 6f 20 70  6c 61 63 65 20 61 20 62  |ish to place a b|
00000c70  6c 75 65 20 63 69 72 63  6c 65 20 28 6f 72 20 72  |lue circle (or r|
00000c80  65 64 0a 20 63 72 6f 73  73 29 2e 0a 0a 20 41 20  |ed. cross)... A |
00000c90  68 75 6d 61 6e 20 70 6c  61 79 65 72 20 63 61 6e  |human player can|
00000ca0  20 72 65 73 69 67 6e 20  77 68 65 6e 20 69 74 20  | resign when it |
00000cb0  69 73 20 68 69 73 20 6f  72 20 68 65 72 0a 20 74  |is his or her. t|
00000cc0  75 72 6e 20 74 6f 20 67  6f 2c 20 62 79 20 73 65  |urn to go, by se|
00000cd0  6c 65 63 74 69 6e 67 20  27 52 65 73 69 67 6e 27  |lecting 'Resign'|
00000ce0  20 6f 6e 20 74 68 65 20  6d 61 69 6e 0a 20 62 6f  | on the main. bo|
00000cf0  61 72 64 20 6d 65 6e 75  2e 20 54 68 69 73 20 63  |ard menu. This c|
00000d00  61 6e 20 61 6c 73 6f 20  62 65 20 75 73 65 64 20  |an also be used |
00000d10  74 6f 20 61 62 6f 72 74  20 61 0a 20 63 6f 6d 70  |to abort a. comp|
00000d20  75 74 65 72 20 76 73 20  63 6f 6d 70 75 74 65 72  |uter vs computer|
00000d30  20 67 61 6d 65 3a 20 63  68 61 6e 67 65 20 6f 6e  | game: change on|
00000d40  65 20 74 6f 20 68 75 6d  61 6e 20 61 6e 64 0a 20  |e to human and. |
00000d50  72 65 73 69 67 6e 2e 0a  0a 20 41 20 77 69 6e 20  |resign... A win |
00000d60  69 73 20 73 69 67 6e 61  6c 6c 65 64 20 77 69 74  |is signalled wit|
00000d70  68 20 61 20 62 65 65 70  2c 20 61 6e 64 20 74 68  |h a beep, and th|
00000d80  65 20 77 69 6e 6e 69 6e  67 0a 20 6c 69 6e 65 20  |e winning. line |
00000d90  69 73 20 69 6e 64 69 63  61 74 65 64 2e 0a 0a 0a  |is indicated....|
00000da0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00000dd0  3d 3d 3d 3d 0a 20 33 20  20 20 20 20 20 20 20 20  |====. 3         |
00000de0  20 20 42 52 49 45 46 20  48 49 53 54 4f 52 59 20  |  BRIEF HISTORY |
00000df0  4f 46 20 54 48 45 20 47  41 4d 45 20 20 20 20 20  |OF THE GAME     |
00000e00  20 20 20 20 20 20 20 33  0a 2e 2e 2e 2e 2e 2e 2e  |       3........|
00000e10  2e 2e 2e 2e 2e 2e 2e 2e  2e 2e 2e 2e 2e 2e 2e 2e  |................|
*
00000e30  2e 2e 2e 2e 2e 2e 2e 2e  2e 2e 2e 2e 2e 0a 0a 20  |............... |
00000e40  54 68 65 20 67 61 6d 65  20 69 73 20 72 61 74 68  |The game is rath|
00000e50  65 72 20 77 65 6c 6c 20  64 65 73 63 72 69 62 65  |er well describe|
00000e60  64 20 69 6e 20 74 68 65  20 62 6f 6f 6b 20 0a 20  |d in the book . |
00000e70  27 4d 61 74 68 65 6d 61  74 69 63 61 6c 20 50 75  |'Mathematical Pu|
00000e80  7a 7a 6c 65 73 20 61 6e  64 20 44 69 76 65 72 73  |zzles and Divers|
00000e90  69 6f 6e 73 27 20 62 79  20 4d 61 72 74 69 6e 0a  |ions' by Martin.|
00000ea0  20 47 61 72 64 6e 65 72  2c 20 50 65 6c 69 63 61  | Gardner, Pelica|
00000eb0  6e 20 42 6f 6f 6b 73 2c  20 49 53 42 4e 20 30 20  |n Books, ISBN 0 |
00000ec0  31 34 20 30 32 2e 30 37  31 33 20 39 2e 0a 0a 20  |14 02.0713 9... |
00000ed0  49 74 20 77 61 73 20 69  6e 76 65 6e 74 65 64 20  |It was invented |
00000ee0  62 79 20 50 69 65 74 20  48 65 69 6e 20 6f 66 20  |by Piet Hein of |
00000ef0  74 68 65 20 49 6e 73 74  69 74 75 74 65 20 66 6f  |the Institute fo|
00000f00  72 0a 20 54 68 65 6f 72  65 74 69 63 61 6c 20 50  |r. Theoretical P|
00000f10  68 79 73 69 63 73 20 6f  66 20 44 65 6e 6d 61 72  |hysics of Denmar|
00000f20  6b 20 69 6e 20 31 39 34  32 2e 20 54 68 65 20 62  |k in 1942. The b|
00000f30  6f 61 72 64 0a 20 63 61  6e 20 62 65 20 6f 66 20  |oard. can be of |
00000f40  61 6e 79 20 73 69 7a 65  2c 20 62 75 74 20 31 31  |any size, but 11|
00000f50  78 31 31 20 69 73 20 63  6f 6e 76 65 6e 69 65 6e  |x11 is convenien|
00000f60  74 3a 20 69 74 0a 20 63  61 6e 20 62 65 20 70 6c  |t: it. can be pl|
00000f70  61 79 65 64 20 75 73 69  6e 67 20 63 6f 75 6e 74  |ayed using count|
00000f80  65 72 73 20 6f 6e 20 61  20 68 65 78 61 67 6f 6e  |ers on a hexagon|
00000f90  61 6c 20 62 6f 61 72 64  2c 0a 20 6f 72 2c 20 6c  |al board,. or, l|
00000fa0  69 6b 65 20 6e 6f 75 67  68 74 73 20 61 6e 64 20  |ike noughts and |
00000fb0  63 72 6f 73 73 65 73 2c  20 75 73 69 6e 67 20 70  |crosses, using p|
00000fc0  65 6e 20 61 6e 64 20 70  61 70 65 72 2e 0a 20 41  |en and paper.. A|
00000fd0  20 62 6f 61 72 64 20 63  61 6e 20 65 61 73 69 6c  | board can easil|
00000fe0  79 20 62 65 20 64 72 61  77 6e 20 75 73 69 6e 67  |y be drawn using|
00000ff0  20 44 72 61 77 20 77 69  74 68 20 61 6e 0a 20 69  | Draw with an. i|
00001000  73 6f 6d 65 74 72 69 63  20 67 72 69 64 20 2d 20  |sometric grid - |
00001010  61 6c 6c 20 79 6f 75 20  74 68 65 6e 20 6e 65 65  |all you then nee|
00001020  64 20 69 73 20 61 20 70  65 6e 20 61 6e 64 20 61  |d is a pen and a|
00001030  0a 20 66 72 69 65 6e 64  2e 0a 0a 20 54 68 65 20  |. friend... The |
00001040  67 61 6d 65 20 68 61 73  20 62 65 65 6e 20 63 6f  |game has been co|
00001050  6d 70 75 74 65 72 69 73  65 64 20 70 72 65 76 69  |mputerised previ|
00001060  6f 75 73 6c 79 20 28 31  39 35 33 29 2c 0a 20 75  |ously (1953),. u|
00001070  73 69 6e 67 20 61 6e 20  61 6e 6f 6c 6f 67 75 65  |sing an anologue|
00001080  20 64 65 76 69 63 65 20  77 68 69 63 68 20 6d 6f  | device which mo|
00001090  64 65 6c 6c 65 64 20 74  68 65 20 62 6f 61 72 64  |delled the board|
000010a0  0a 20 61 73 20 61 20 74  77 6f 20 64 69 6d 65 6e  |. as a two dimen|
000010b0  73 69 6f 6e 61 6c 20 70  6f 74 65 6e 74 69 61 6c  |sional potential|
000010c0  20 66 69 65 6c 64 2c 20  77 69 74 68 20 74 68 65  | field, with the|
000010d0  0a 20 6d 6f 76 65 73 20  72 65 70 72 65 73 65 6e  |. moves represen|
000010e0  74 65 64 20 62 79 20 70  6f 73 69 74 69 76 65 20  |ted by positive |
000010f0  61 6e 64 20 6e 65 67 61  74 69 76 65 0a 20 63 68  |and negative. ch|
00001100  61 72 67 65 73 2e 20 54  68 65 20 6e 65 78 74 20  |arges. The next |
00001110  6d 6f 76 65 20 77 61 73  20 64 65 74 65 72 6d 69  |move was determi|
00001120  6e 65 64 20 62 79 20 6d  65 61 73 75 72 69 6e 67  |ned by measuring|
00001130  0a 20 73 61 64 64 6c 65  20 70 6f 69 6e 74 73 20  |. saddle points |
00001140  69 6e 20 74 68 65 20 66  69 65 6c 64 2e 20 4c 69  |in the field. Li|
00001150  6b 65 20 74 68 69 73 20  70 72 6f 67 72 61 6d 2c  |ke this program,|
00001160  20 74 68 65 0a 20 61 6e  6f 6c 6f 67 75 65 20 63  | the. anologue c|
00001170  6f 6d 70 75 74 65 72 20  77 61 73 20 70 6f 6f 72  |omputer was poor|
00001180  20 61 74 20 65 6e 64 20  70 6c 61 79 20 2d 20 63  | at end play - c|
00001190  6c 69 6e 63 68 69 6e 67  0a 20 74 68 65 20 77 69  |linching. the wi|
000011a0  6e 2e 0a 0a 0a 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |n....===========|
000011b0  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
000011d0  3d 3d 3d 3d 3d 3d 3d 3d  3d 0a 20 34 20 20 20 20  |=========. 4    |
000011e0  20 20 20 20 20 20 20 20  20 20 20 41 43 4b 4e 4f  |           ACKNO|
000011f0  57 4c 45 44 47 45 4d 45  4e 54 53 20 20 20 20 20  |WLEDGEMENTS     |
00001200  20 20 20 20 20 20 20 20  20 20 20 20 34 0a 2e 2e  |            4...|
00001210  2e 2e 2e 2e 2e 2e 2e 2e  2e 2e 2e 2e 2e 2e 2e 2e  |................|
*
00001240  2e 2e 0a 0a 20 54 68 65  20 70 72 6f 67 72 61 6d  |.... The program|
00001250  20 77 61 73 20 6f 72 69  67 69 6e 61 6c 6c 79 20  | was originally |
00001260  77 72 69 74 74 65 6e 20  61 73 20 73 69 6e 67 6c  |written as singl|
00001270  65 0a 20 74 61 73 6b 69  6e 67 2c 20 61 6e 64 20  |e. tasking, and |
00001280  77 61 73 20 73 68 6f 65  2d 68 6f 72 6e 65 64 20  |was shoe-horned |
00001290  69 6e 74 6f 20 61 20 6d  75 6c 74 69 2d 74 61 73  |into a multi-tas|
000012a0  6b 69 6e 67 0a 20 73 68  65 6c 6c 20 75 73 69 6e  |king. shell usin|
000012b0  67 20 74 68 65 20 44 61  62 68 61 6e 64 20 47 75  |g the Dabhand Gu|
000012c0  69 64 65 20 74 6f 20 42  41 53 49 43 20 57 69 6d  |ide to BASIC Wim|
000012d0  70 0a 20 50 72 6f 67 72  61 6d 6d 69 6e 67 20 6f  |p. Programming o|
000012e0  6e 20 74 68 65 20 41 63  6f 72 6e 2c 20 61 6e 64  |n the Acorn, and|
000012f0  20 69 74 73 20 61 73 73  6f 63 69 61 74 65 64 20  | its associated |
00001300  27 42 61 72 65 0a 20 42  6f 6e 65 73 27 20 61 70  |'Bare. Bones' ap|
00001310  70 6c 69 63 61 74 69 6f  6e 73 2c 20 6c 69 62 72  |plications, libr|
00001320  61 72 79 20 66 75 6e 63  74 69 6f 6e 73 20 61 6e  |ary functions an|
00001330  64 0a 20 70 72 6f 63 65  64 75 72 65 73 2e 20 54  |d. procedures. T|
00001340  68 69 73 20 62 6f 6f 6b  20 69 73 20 74 72 75 6c  |his book is trul|
00001350  79 20 65 78 63 65 6c 6c  65 6e 74 2c 20 61 6e 64  |y excellent, and|
00001360  20 49 0a 20 61 6d 20 6f  62 6c 69 67 65 64 20 74  | I. am obliged t|
00001370  6f 20 6d 61 6b 65 20 74  68 65 20 66 6f 6c 6c 6f  |o make the follo|
00001380  77 69 6e 67 20 73 74 61  74 65 6d 65 6e 74 0a 20  |wing statement. |
00001390  76 65 72 62 61 74 69 6d  20 69 6e 20 6f 72 64 65  |verbatim in orde|
000013a0  72 20 74 6f 20 66 72 65  65 6c 79 20 75 73 65 20  |r to freely use |
000013b0  74 68 65 20 73 75 70 70  6c 69 65 64 0a 20 63 6f  |the supplied. co|
000013c0  64 65 3a 2d 0a 0a 0a 20  20 20 7e 7e 7e 7e 7e 7e  |de:-...   ~~~~~~|
000013d0  7e 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 7e  |~~~~~~~~~~~~~~~~|
*
000013f0  7e 7e 7e 7e 7e 0a 20 20  20 27 50 72 6f 67 72 61  |~~~~~.   'Progra|
00001400  6d 20 64 65 76 65 6c 6f  70 65 64 20 77 69 74 68  |m developed with|
00001410  20 72 6f 75 74 69 6e 65  73 20 77 72 69 74 74 65  | routines writte|
00001420  6e 20 62 79 0a 20 20 20  20 41 2e 50 2e 53 65 6e  |n by.    A.P.Sen|
00001430  69 6f 72 20 61 73 20 70  72 6f 76 69 64 65 64 20  |ior as provided |
00001440  77 69 74 68 20 74 68 65  20 62 6f 6f 6b 20 42 41  |with the book BA|
00001450  53 49 43 0a 20 20 20 20  57 69 6d 70 20 50 72 6f  |SIC.    Wimp Pro|
00001460  67 72 61 6d 6d 69 6e 67  20 70 75 62 6c 69 73 68  |gramming publish|
00001470  65 64 20 62 79 20 44 61  62 73 20 50 72 65 73 73  |ed by Dabs Press|
00001480  27 2e 0a 0a 20 20 20 7e  7e 7e 7e 7e 7e 7e 7e 7e  |'...   ~~~~~~~~~|
00001490  7e 7e 7e 7e 7e 7e 7e 7e  7e 7e 7e 7e 7e 7e 7e 7e  |~~~~~~~~~~~~~~~~|
*
000014b0  7e 7e 0a 0a 20 49 20 73  74 72 6f 6e 67 6c 79 20  |~~.. I strongly |
000014c0  72 65 63 6f 6d 6d 65 6e  64 20 62 75 79 69 6e 67  |recommend buying|
000014d0  20 74 68 65 20 62 6f 6f  6b 20 77 69 74 68 20 74  | the book with t|
000014e0  68 65 0a 20 6f 70 74 69  6f 6e 61 6c 20 66 6c 6f  |he. optional flo|
000014f0  70 70 79 20 64 69 73 63  73 2e 0a 0a 3d 3d 3d 3d  |ppy discs...====|
00001500  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00001530  0a 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00001540  20 20 20 20 20 45 4e 44  20 4f 46 20 48 45 4c 50  |     END OF HELP|
00001550  0a 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |.===============|
00001560  3d 3d 3d 3d 3d 3d 3d 3d  3d 3d 3d 3d 3d 3d 3d 3d  |================|
*
00001580  3d 3d 3d 3d 3d 0a                                 |=====.|
00001586