home *** CD-ROM | disk | FTP | other *** search
/ Share Gallery 1 / share_gal_1.zip / share_gal_1 / GA / GA100.ZIP / MAHJONGG.DOC next >
Text File  |  1989-08-29  |  27KB  |  538 lines

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