home *** CD-ROM | disk | FTP | other *** search
/ Home Entertainment Cube 5…& Puzzle Shareware Games / AZ_096.ISO / mahjong / mahjongg.doc next >
Text File  |  1988-12-26  |  21KB  |  469 lines

  1.  
  2.     ┌────────┐                    MAH JONGG                     ┌────────┐ 
  3.     │   ├┤ 3 │         Release 3.0,  December 26, 1988          │ 0  0 8 │
  4.     │   ├┤   │                                                  │ 0  0   │
  5.     │ ├┤  ├┤ │                  Nels Anderson                   │ 0  0   │
  6.     │ ├┤  ├┤ │                 92 Bishop Drive                  │ 0  0   │
  7.     └────────┘              Framingham, MA  01701               └────────┘
  8.  
  9.  
  10.  
  11. MAH JONGG is an ancient Chinese game whose origins are supposed to date back
  12. some 3000 years.  This version has similarities to solitaire played with cards
  13. and also with dominoes since it is played with tiles.  When I first discovered
  14. the game my initial impression was that the game would quickly become dull but
  15. having played it for a while and having given it to friends we've all found
  16. that it is quite addictive despite its apparent simplicity.
  17.  
  18. This program is designed for a PCompatible that can run in EGA graphics mode.
  19. If you're still running an older video card I'm afraid the game won't work.
  20. (Apparently many people do not understand the differences between EGA, CGA,
  21. VGA, MDA, etc.;  basically, if you get a screen full of flashing letters
  22. when you try to run MAH JONGG you don't have EGA and the game will not work
  23. on your system.)  When I originally wrote MAH JONGG I had never seen a game
  24. that used the full EGA capabilities (640x350, 16 colors) and I thought it
  25. would be nice if there was one.  
  26.  
  27. This version also supports Hercules graphics mode.  Since it's monochrome
  28. it's not nearly as pretty as EGA but the resolution is similar so it's not
  29. bad.  If you wish to run Hercules, you *must* specify this on the command,
  30. i.e., the command line must be:
  31.  
  32.                              mahjongg -h
  33.  
  34. otherwise the game will try to run in EGA.  I hadn't planned on doing any
  35. versions other than EGA, but Hercules turned out to be so easy I figured,
  36. why not?  I don't have versions for other video adapters and I don't have
  37. any plans for them since I don't consider any of the lower resolutions 
  38. adequate.
  39.  
  40. Since I do not program games for a living but still put quite a bit of effort
  41. into MAH JONGG I am releasing the program as Shareware.  If you enjoy the
  42. game, as I think you will, a $10 donation to reward my efforts would be
  43. appreciated.  Please let me know what version you have and I'd also be
  44. interested in knowing where you got it from.  Make sure you put your name
  45. and address on your letter.  Or, use the instant registration form in the
  46. file "orderfrm.txt".  Just copy the file to your printer.  If you don't
  47. understand the term "Shareware" please read the file sharewre.txt.
  48.  
  49. If you have any suggestions or discover any problems with the program you
  50. can reach me via the )(evious BBS system (300 baud, 8N1) at 508-875-3618
  51. or 617-449-7322.  Use the command FDBACK to reach me or send email to
  52. "THE FENIX".
  53.  
  54. If you're connected to one of the minicomputer nets (InterNet, uucp...)
  55. you can try reaching me at one of these addresses:
  56.  
  57.                 ima!primerd!en-m32.prime.com!nja
  58.                 uunet!en-m32.prime.com!nja
  59.                 csnet-relay!en-m32.prime.com!nja
  60.                 nja%en-m32.prime.com@relay.cs.net
  61.                 nja@en-m32.prime.com
  62.  
  63. Of course you can also write me at the address at the beginning of this
  64. file.  If you're not a registered used don't expect an answer unless you
  65. include a self-addressed, stamped envelope.
  66.  
  67. Most of the instructions you'll need for playing the game are built into
  68. it; just type H when prompted at the title screen.  Or you can read the
  69. instructions below.  There is quite a bit of strategy involved if you are
  70. to do well but I'll leave the strategies up to you to discover.  Besides,
  71. I'm no expert in playing the game either.
  72.  
  73.  
  74. *****************************************************************************
  75. *                             PLAYING THE GAME                              *
  76. *****************************************************************************
  77.  
  78.  
  79. OBJECT:
  80.  
  81.    The object of the game is to remove as many of the tiles from the
  82.    playing board as possible within the rules of the game.  Tiles are
  83.    always removed in pairs and can only be removed from the left or
  84.    the right edges. Any tile that is not on a left or right edge is
  85.    considered blocked and cannot be removed. Note though that the tiles
  86.    are arranged in 5 levels and each level has a left and right edge so
  87.    there are many more unblocked tiles than it would first appear. Note
  88.    that the tile on the top of the pile blocks all four tiles below it,
  89.    and tiles on row 5 block both rows 4 and 6.
  90.  
  91. SUITS OF TILES:
  92.  
  93.    There are many different suits of tiles and the suit of a tile
  94.    determines the rule used for determining matching pairs that can be
  95.    removed together.
  96.  
  97. MATCHING RULES:
  98.     
  99.    Most of the tile suits require an exact match. This means that you must 
  100.    match a tile to another that is exactly the same. For example a Bamboo 1 
  101.    matches another Bamboo 1 but does not match a Bamboo 3 or a Dot 1. The 
  102.    other matching rule allows any tile in the same suit to match any other 
  103.    tile in that suit. Thus, any of the four seasons (SUM, AUT, WIN, SPR) 
  104.    match each other and any of the four flowers (MUM, PLUM, BAM, ORC) match 
  105.    each other.
  106.  
  107. NUMBER OF TILES:
  108.  
  109.    There is only one each of SUM, AUT, WIN, SPR, MUM, PLUM, BAM, and ORC.
  110.    There are four of each of the other tiles for a total of 144 tiles on
  111.    the board. A counter keeps track of how many tiles are left in play.
  112.    If you want to see what tiles you have removed so far, hit F2 (though
  113.    some might consider this cheating!).
  114.     
  115. BOARD LAYOUT:
  116.  
  117.    If you're using a mouse to play you don't need to worry about the
  118.    board coordinates; you just point and click.  The game commands are
  119.    also there as "keys" that can be clicked on.  If you don't have a
  120.    mouse, read on...
  121.    
  122.    The game board is a grid marked by letters and numbers. You select
  123.    tiles by entering a letter for the column and a number for the row.
  124.    Order doesn't matter, entering A5 is the same as 5A. The single tile
  125.    on the topmost level is H5.
  126.    
  127.    The numbering of the rows is a bit confusing. Row 5 only exists at the
  128.    very top level and at the extreme left and right edges. Rows 4 and 6 are
  129.    actually adjacent to each other.
  130.    
  131.    If after you've selected your first tile you change your mind, just
  132.    hit 'Enter' instead of your second tile selection. After you've
  133.    selected both tiles you are asked to confirm your selection with a
  134.    Y or N before the tiles are removed.
  135.  
  136. COMMANDS:
  137.     
  138.    There are commands you can enter in addition to just selecting tile
  139.    coordinates. You can quit the game at any time by entering Q. You can
  140.    get help by entering H when asked for the tile selection. If you ask 
  141.    for help when selecting the 1st tile it will first tell you whether
  142.    there are any valid moves and then you may choose to see any or all of
  143.    them by hitting Y or N when asked. If you ask for help when selecting
  144.    the 2nd tile it will show you any available matches for the first tile
  145.    selected. You can save your game by entering S and restore an old game
  146.    by entering R. You can start a new game by entering N or play the same
  147.    board again by entering A.
  148.    
  149.    Hitting F1 will display a summary of commands and other game information.
  150.    Hitting F2 will show the tiles you've removed so far.
  151.    Hitting F3 goes to the set up screen.
  152.    Hitting F4 will undo your last move.
  153.    Hitting F6 will undo your last undo (i.e., it will remove the tiles again)
  154.    Hitting F5 shows you your playing statistics
  155.    
  156.    If you have a mouse, just slide the cursor over the command you want 
  157.    and click. Hitting the right mouse button is a short-cut way of asking
  158.    for help. 
  159.    
  160.    In summary, the commands are:
  161.    
  162.                   Q:  Quit       N:  New game (new board)
  163.                   H:  Help       A:  Again (replay same board)
  164.                   S:  Save       R:  Restore
  165.                   F1: Commands   F2: Tiles played so far
  166.                   F3: Set up     F4: Undo last move (U also works)
  167.                   F5: Stats      F6: Undo last undo (Z also works)
  168.    
  169. COMMAND LINE OPTIONS:
  170.  
  171.    There are several options you can give when starting the game. You can
  172.    skip the title screen by using -n (No title). You can play a specific
  173.    board by entering -bx where x is any number between 0 and 65535. For
  174.    example, you can replay the previous game by noting the board number in
  175.    the lower left hand corner before quitting and using that. Or you can
  176.    play against another person by both choosing the same board number and
  177.    seeing who can remove the most tiles. You can play timed games by
  178.    entering -tx where x is the number of minutes you want the game to be.
  179.    This is primarily for competitive games. You can still continue to play
  180.    the game after the time runs out. The amount of time left to play is
  181.    shown in the upper right corner of the screen just above the number of
  182.    tiles left. Using -cx allows you to set the background color and -dx the
  183.    mouse cursor color, where x is a number between 0 and 15. Using -m selects
  184.    mouse control instead of keyboard. Using -fn selects a file named n as the
  185.    file in which your statistics will be kept instead of the default file
  186.    "\mahstats"; n can be complete with disk and path names. Using -f with no
  187.    file name disables keeping of statistics. Finally, using -h forces the
  188.    game to run in Hercules graphics mode instead of the default EGA mode.
  189.    
  190.    The command line options are done in a standard way but if you're not 
  191.    familiar with this sort of thing they may be somewhat confusing so here 
  192.    are some examples.
  193.    
  194. Command line option examples:
  195.  
  196.    If you want to play a game that will be timed for 10 minutes, the command 
  197.    line would be:
  198.    
  199.                                 MAHJONGG -T10
  200.    
  201.    Notice there is no space between the -T and the number of minutes (10).
  202.    The other commands work the same way.  To play board number 12345 the
  203.    command line would be:
  204.    
  205.                                MAHJONGG -B12345
  206.    
  207.    You can combine commands too, so to play board 12345 as a 10 minute timed
  208.    game the command line would be:
  209.    
  210.                             MAHJONGG -T10 -B12345
  211.    
  212.    There is also a setup screen that allows you to select any of the options
  213.    that are available on the command line.  Just hit S from the title screen
  214.    to go to setup.  You can also access setup at any time during a game by
  215.    hitting the F3 key.
  216.    
  217.    If you forget the command line options, just start up the game with an
  218.    invalid option and it will give you the proper usage (i.e., try using
  219.    "mahjongg -help" which since it is not a valid option with give the valid
  220.    option list).
  221.    
  222.    In summary, the command line options are:
  223.    
  224.           -n   No_title page
  225.           -m   use Mouse
  226.           -bx  play Board x (0 <= x <= 65535)
  227.           -tx  Timed game (x=length in minutes)
  228.           -cx  background Color x (0 <= x <= 15)
  229.           -dx  mouse cursor color x (0 <= x <= 15)  
  230.           -fn  File n is the statistics file
  231.           -h   run in Hercules instead of EGA mode
  232.     
  233.  
  234. STATISTICS:
  235.  
  236.    It seems that a lot of players are interested in game statistics, so the
  237.    game now keeps track of some statistics for you automatically.  If you
  238.    have several people playing on the same PC they can each have their own
  239.    statistics by using the select statistics file command line option, -fn
  240.    where n is the name of the file.  For example, if Fred and Dick both use
  241.    the same PC, Fred might start the game as:
  242.    
  243.                                MAHJONGG -FFRED.STT
  244.    
  245.    and Dick might start the game as:
  246.    
  247.                           MAHJONGG -F\DICKSDIR\DICK.STT
  248.    
  249.    Hit F5 at any time while playing to see your current statistics.  To 
  250.    disable keeping of statistics, use -f with no file name on your command
  251.    line.
  252.  
  253. TOURNAMENTS:
  254.     
  255.    You can play Mah Jongg as a tournament against other players. You first
  256.    select T for tournament from the title screen. The first player sets up
  257.    the tournament by selecting the board number (or by just leaving the one 
  258.    that was randomly chosen) and whether or not the game will be timed. After 
  259.    the selections are made the first player enters his name and plays the
  260.    game.  A record is kept of his results and the results of each additional
  261.    player who plays the tournament.
  262.    
  263.    If you go to the tournament screen by accident or just to see the current
  264.    standings, you can return to the title screen without entering the 
  265.    tournament by entering Q.
  266.    
  267.    If there is already a tournament started but you want to start a new one,
  268.    enter 'N'.  This will let you set up a new tournament as was described
  269.    above.  Tournament records are kept in a file called "mah.trn" so you can
  270.    also start a new tournament by deleting this file.
  271.  
  272. USING A MOUSE:
  273.  
  274.    To use a mouse, you must either select it from the setup screen or use 
  275.    the -m option on the command line.  The game was tested using a Mouse 
  276.    Systems PC Mouse but any Microsoft-compatible mouse will probably work.  
  277.    When using a mouse most commands can be issued using the mouse.  You must 
  278.    have your mouse driver installed as a device in your config.sys file for
  279.    Mah Jongg to be able to use the mouse.
  280.    
  281.    The mouse interface is a bit different from what you're probably used to
  282.    but it seems to be easy enough to use.  Tiles are selected by moving a
  283.    colored outline over them and clicking once.  To de-select the first tile,
  284.    just click on it a second time.  After selecting both tiles a line with
  285.    the options "Y/N" (yes/no) comes up.  If you just click without moving the
  286.    mouse you'll select yes and the tiles will be removed.  Slide the mouse
  287.    left and right to change your selection.
  288.    
  289.    The commands available during the game (help, new, undo, file, setup, quit)
  290.    are available as "keys" along the left side of the screen.  Move the
  291.    outline over the command you want and click once.  
  292.    
  293.    "Help" and "Quit" require a yes or no confirmation so you won't do them
  294.    by accident.  Slide the mouse left and right to select yes or no and then
  295.    click.  The help command first asks if you want to see matching tiles (if
  296.    there are no more matches it will tell you that instead) and then prompts
  297.    for a yes or no to see each additional matching pair of tiles.  If you ask
  298.    for help after you've already selected the first tile a search for matching
  299.    free tiles takes place.  If a match is found, it is highlighted and all you
  300.    need to do is confirm to remove the pair of tiles.  If no match is found it
  301.    puts you back to select the first tile again.  There is a short-cut for
  302.    mouse users to invoke help.  Just hit the right mouse button to get help in
  303.    selecting either tile.  Normally it doesn't matter which mouse button you
  304.    use.
  305.    
  306.    "New" lets you end the current game and either replay the same board or go
  307.    on to the next board.  You will be prompted to select either "next" or
  308.    "again" to either go on to the next consecutive board or to play the same
  309.    board again.
  310.    
  311.    "Undo" replaces the last two tiles you removed.  You can undo as many times
  312.    as you want until all 144 tiles are back on the board.  Undo does not ask
  313.    for any confirmation.  Undo actually allows you to replay your entire game
  314.    both forward and backward.  Clicking the left mouse button restores tiles
  315.    that were removed and clicking the right mouse button takes the tiles back
  316.    off again.
  317.    
  318.    "File" lets you either save the game at its current point or load a 
  319.    previously saved game.  You are prompted to choose between "load" and 
  320.    "save" and finally to confirm that you really want to do it.
  321.    
  322.    "Setup" brings you to the set up screen, the same as hitting "S" from the
  323.    title screen.  You can then change colors, set timed games, enable the
  324.    mouse, select a specific board, etc.  Changing colors or enabling the 
  325.    mouse will not effect the game in progress; when you exit set up you will 
  326.    be back at the same point in the game that you were at when you entered
  327.    set up.
  328.    
  329.    Any error messages that appear during the game (i.e. "Invalid Selection")
  330.    normally stay visible for a few seconds before allowing play to continue.
  331.    To immediately remove a message and resume play just click the mouse or
  332.    hit a key.
  333.  
  334. NEW FEATURES:
  335.  
  336.    Many new features have been added since the original release of the game.
  337.    These include:
  338.    
  339.      NEW IN 3.0:
  340.    
  341.        Runs in Hercules graphics mode
  342.  
  343.        Game statistics kept for current game and for all games played
  344.    
  345.        Undo command (both forward and backward)
  346.    
  347.        Set up screen available during game
  348.    
  349.        Tile corners now display properly
  350.    
  351.      NEW SINCE 2.6:
  352.    
  353.        Fixed bug in tournament mode (stats weren't being saved)
  354.    
  355.        A list of all pairs of tiles played so far is available by
  356.        hitting the F2 key
  357.    
  358.      NEW SINCE 2.5:
  359.    
  360.        Mouse cursor color is now selectable from command line or
  361.        setup screen
  362.    
  363.        When playing a tournament game your score was not always saved
  364.        if you completed the board; this is now fixed
  365.    
  366.      NEW SINCE 2.3:
  367.    
  368.        Help screen -- hit F1 to get a list of commands, options, and
  369.        some basic playing tips
  370.    
  371.        "Boss Mode" -- hit F10 to hide the game and display a harmless
  372.        looking disk directory
  373.    
  374.        New tournaments can be started from within the tournament 
  375.        setup screen
  376.    
  377.        After winning a game, answering "Y" to play again gives you a
  378.        different board instead of the same one over again
  379.    
  380.        Requesting to quit when selecting the second tile now asks for
  381.        a confirmation
  382.    
  383.      NEW SINCE 2.2:
  384.    
  385.        Columns entered as letters instead of numbers; rows and columns can
  386.        be entered in any order as a result
  387.    
  388.        Several tiles redrawn
  389.    
  390.      NEW SINCE 2.1:
  391.    
  392.        ATI EGAWonder card problem workaround added
  393.    
  394.        Mouse cursor display sped up (possible fix to NEC EGA card problem of
  395.        not showing mouse cursor)
  396.    
  397.      NEW SINCE 2.0:
  398.    
  399.        Help on 2nd tile selection (find match to 1st tile if any)
  400.    
  401.        Help available with right mouse button as a short-cut
  402.    
  403.        Error messages can be cancelled by clicking the mouse
  404.    
  405.        Confirmation required for mouse action "keys" to prevent accidents
  406.    
  407.      NEW SINCE 1.0:
  408.    
  409.        Mouse support
  410.    
  411.        Setup screen, allows access to all game options more easily
  412.        than through command line options
  413.    
  414.        Tournament play
  415.    
  416.        Selectable background color
  417.    
  418.        New commands during play
  419.          A  (play same board Again)
  420.          N  (play New board)
  421.    
  422.        More command line options
  423.          -cx (background Color)
  424.          -r  (Restart saved game)
  425.          -m  (use Mouse)
  426.    
  427.        More authentic tile appearance
  428.    
  429.        Faster tile displaying
  430.    
  431.  
  432. WINNING
  433.  
  434.   
  435.    Not all boards are win-able but during testing a number of boards that are
  436.    beatable were found.  In addition, many people who have written to register
  437.    their copy of Mah Jongg have included lists of boards they have completed.
  438.    If you want to play a board that definately can be won, try one of the 
  439.    following:
  440.    
  441. 55598, 49070, 64856, 15784, 29514, 54176, 40060, 8, 44213, 21, 43, 148, 290, 
  442. 302, 329, 364, 370, 386, 410, 421, 459, 560, 627, 634, 656, 695, 735, 743, 
  443. 795, 819, 827, 839, 858, 876, 888, 890, 905, 936, 952, 985, 1034, 1037, 1066,
  444. 1101, 1104, 1138, 1145, 1149, 1154, 1207, 1241, 1244, 1296, 1313, 1346, 1365,
  445. 1390, 1392, 1428, 1430, 1490, 1543, 55309, 43924, 47924, 38313, 23986, 45355,
  446. 55082, 6843, 52079, 50333, 24654, 64557, 14, 54438, 2, 52916, 32141, 62500,
  447. 50408, 5119, 8694, 12224, 27869, 47615, 49522, 56447, 4113, 6108, 36785,
  448. 38382, 54586, 36607, 63202, 4540, 21015, 1132, 37696, 20009, 19619, 42246,
  449. 56809, 5336, 61319, 15037, 33357, 52158, 63866, 41619, 48165, 13692, 17604,
  450. 40284, 47779, 57572, 13932, 4236, 4243, 24942, 15318, 59498, 50542, 41121,
  451. 4344, 38110, 26208, 307, 32812, 16496, 16213, 47788, 65123, 36792, 16965,
  452. 3989, 63331, 40111, 54491, 43421, 10796, 56185, 40640, 433, 9619, 8922, 800,
  453. 20926, 1, 23, 56, 7971, 21399, 32381, 33212, 36836, 48094, 53751, 58094.
  454.  
  455.    Enjoy!
  456.  
  457.  
  458. INCOMPATIBILITIES:
  459.  
  460.    Early versions of MAHJONGG had problems running on an ATI EGA Wonder card.
  461.    The problem is with the BIOS ROM on the card, not with the game.  ATI
  462.    should by now have an upgrade ROM available to fix their bug so you may
  463.    want to contact them about it.  MAHJONGG Release 2.1.1 and later should
  464.    work properly on the ATI card even without the BIOS upgrade.
  465.    
  466.    I've also heard that an NEC built EGA card (not sure of model) does not
  467.    display the mouse cursor.  I think I've done something in Rev. 2.1.1 that 
  468.    will prevent the problem but I don't have the proper system to test it on.
  469.