November 12, 2016 | Author: Anđelko Ležajić | Category: N/A
MAH JONGG is an ancient Chinese game whose origins are supposed to date back some 3000 years. This version has similar...
レトトトトトトトトソ ウ テエ 3 ウ ウ テエ ウ ウ テエ テエ ウ ウ テエ テエ ウ タトトトトトトトトル
MAH JONGG Release 3.2, October 10, 1989 ウ0 0 ウ Nels Anderson 92 Bishop Drive Framingham, MA 01701
レトトトトトトトトソ ウ0 0 8 ウ ウ0 0 ウ ウ0 0 ウ タトトトトトトトトル
MAH JONGG is an ancient Chinese game whose origins are supposed to date back some 3000 years. This version has similarities to solitaire played with cards and also with dominoes since it is played with tiles. When I first discovered the game my initial impression was that the game would quickly become dull but having played it for a while and having given it to friends we've all found that it is quite addictive despite its apparent simplicity. This program is designed for a PCompatible that can run in EGA graphics mode. If you're still running an older video card I'm afraid the game won't work. (Apparently many people do not understand the differences between EGA, CGA, VGA, MDA, etc.; basically, if you get a screen full of letters blinking on and off when you try to run MAH JONGG you don't have EGA and the game will not work on your system.) When I originally wrote MAH JONGG I had never seen a game that used the full EGA capabilities (640x350, 16 colors) and I thought it would be nice if there was one. This version also supports Hercules graphics mode. Since it's monochrome it's not nearly as pretty as EGA but the resolution is similar so it's not bad. The type of video you have is now automatically detected, so you should not have to do anything to get the right mode. If your system won't automatically select the right video mode for some reason, you can force a specific mode using command line parameters as follows: mahjongg -h mahjongg -e mahjongg -l
(forces Hercules graphics mode) (forces full color EGA graphics mode) (forces monochrome EGA graphics mode)
I hadn't planned on doing any versions other than EGA, but Hercules turned out to be so easy I figured, why not? Recently, several people suggested adding a monochrome EGA mode for laptop systems that have an EGA compatible LCD or similar display. Since I'd already done all the work of making monochrome look right for the Hercules version, this was easy to add too. I don't have versions for other video adapters and I don't have any plans for them since I don't consider any of the lower resolutions adequate. Since I do not program games for a living but still put quite a bit of effort into MAH JONGG I am releasing the program as Shareware. If you enjoy the game, as I think you will, a $10 donation to reward my efforts would be appreciated. Please let me know what version you have and I'd also be interested in knowing where you got it from. Make sure you put your name and address on your letter. Or, use the instant registration form in
the file "orderfrm.txt". Just copy the file to your printer. If you don't understand the term "Shareware" please read the file "sharewre.txt". In return for your registration you'll receive the latest version of the game plus a setup utility that is made available only to registered users. If you have any suggestions or discover any problems with the program you can reach me via the )(evious BBS (PCBoard) system (300/1200/2400/9600-HST, 8N1) at 508-875-3618 or 617-449-7322. Leave a C)omment to the sysop to reach me. )(evious is the official support BBS for all my software and the latest versions are always available for downloading there. There is also a support conference for people to exchange game tips or ask questions. J)oin conference #31 and check out the latest tips. You can also reach )(evious through RelayNet. If there's a RelayNet board in your area send a routed message to me at node XEVIOUS. The Shareware conference would be the best choice, but if that's not available try TPascal, Games or even Common. If you're connected to one of the minicomputer nets (InterNet, uucp...) you can try reaching me at one of these addresses: ima!primerd!en-m32.prime.com!nja uunet!en-m32.prime.com!nja csnet-relay!en-m32.prime.com!nja nja%
[email protected] [email protected] Of course you can also write me at the address at the beginning of this file. If you're not a registered user don't expect an answer unless you include a self-addressed, stamped envelope. Most of the instructions you'll need for playing the game are built into it; just type H when prompted at the title screen. you can read the instructions below. There is quite a bit of strategy involved if you are to do well but I'll leave the strategies up to you to discover. Besides, I'm no expert in playing the game either.
Or
***************************************************************************** * PLAYING THE GAME * ***************************************************************************** OBJECT: The object of the game is to remove as many of the tiles from the playing board as possible within the rules of the game. Tiles are always removed in pairs and can only be removed from the left or the right edges. Any tile that is not on a left or right edge is considered blocked and cannot be removed. Note though that the tiles are arranged in 5 levels and each level has a left and right edge so there are many more unblocked tiles than it would first appear. Note that the tile on the top of the pile blocks all four tiles below it, and tiles on row 5 block both rows 4 and 6. SUITS OF TILES:
There are many different suits of tiles and the suit of a tile determines the rule used for matching tiles that can be removed together. MATCHING RULES: Most of the tile suits require an exact match. This means that you must match a tile to another that is exactly the same. For example a Bamboo 1 matches another Bamboo 1 but does not match a Bamboo 3 or a Dot 1. The other matching rule allows any tile in the same suit to match any other tile in that suit. Thus, any of the four seasons (SUM, AUT, WIN, SPR) match each other and any of the four flowers (MUM, PLUM, BAM, ORC) match each other. NUMBER OF TILES: There is only one each of SUM, AUT, WIN, SPR, MUM, PLUM, BAM, and ORC. There are four of each of the other tiles for a total of 144 tiles on the board. A counter keeps track of how many tiles are left in play. If you want to see what tiles you have removed so far, hit F2 (though some might consider this cheating!). BOARD LAYOUT: If you're using a mouse to play you don't need to worry about the board coordinates; you just point and click. Many game commands are also there as "keys" that can be clicked on. If you don't have a mouse, read on... The game board is a grid marked by letters and numbers. You select tiles by entering a letter for the column and a number for the row. Order doesn't matter, enteri.g A5 is the same as 5A. The single tile on the topmost level is H5. The numbering of the rows is a bit confusing. Row 5 only exists at the very top level and at the extreme left and right edges. Rows 4 and 6 are actually adjacent to each other. SENT
=
0.0
RETURN END C--------------------------------------------------------------------C SUBROUTINE BMARCH C--------------------------------------------------------------------C INCLUDE 'COMMON.FOR' C....................................................................C C C C Provides time dependent driving parameters C C C C FRS = net solar absorbed in the point C C SABVEG = vegetation absorbed C C SOLIS = shortwave solar incident C C................................................................... C
C C C
Number of days you need for integration NDAYS = 2 Hour when you start HOUR = 18. Number of steps IMAX = NINT(24*NDAYS*C(6)/C(4))
C--------------------------------------------------------------------C C Interpolation C--------------------------------------------------------------------C C
Number of measured values NMV = 49 DO 44 L=1,NMV HOURS0 (L) = HOURS (L) TEMP0 (L) = TEMP (L) HUMID0 (L) = HUMID (L) RAIN0 (L) = RAIN (L) WIND0 (L) = WIND (L) CLOUD0 (L) = CLOUD (L) SHORTW0(L) = SHORTW(L) This is the reverse of the undo function. You can undo and restore as many moves as you want. (F6 does the same thing). F1 will display a summary of commands and other information. F2 will show the tiles you've removed so far. F3 goes to the set up screen. F4 will undo your last move. F5 shows you your playing statistics. F6 will undo your last undo (e.g., it will remove the tiles again). F7 goes to the tournament set up screen. F10 shells to DOS. Type 'EXIT' to return to the game. If you are using a mouse, many of these commands are available as pushbuttons along the left side of the screen. Just slide the cursor over the command you want and click. Hitting the right mouse button is a short-cut way of asking for help. See the section on using the mouse below. In summary, the commands are: Q: H: S: F1: F3: F5: F10:
Quit Help Save Commands Set up Stats DOS shell
N: A: R: F2: F4: F6: F7:
New game (next board) Again (replay same board) Restore Tiles played so far Undo last move (U also works) Undo last undo (Z also works) Tournament set up
COMMAND LINE OPTIONS: There are several options you can give when starting the game. You can skip the title screen by using -n (No title). You can play a specific board by entering -bx where x is any number between 0 and 65535. For example, you can replay the previous game by noting the board number in the lower left hand corner before quitting and using that. Or you can play against another person by both choosing the same board number and
seeing who can remove the most tiles. You can play timed games by entering -tx where x is the number of minutes you want the game to be. This is primarily for competitive games. You can still continue to play the game after the time runs out. The amount of time left to play is shown in the upper right corner of the screen just above the number of tiles left. Using -cx allows you to set the background color and -dx the mouse cursor color, where x is a number between 0 and 15. Using -m selects mouse control instead of keyboard. Using -fn selects a file named n as the file in which your statistics will be kept instead of the default file "\mahstats"; n can be complete with disk and path names. Using -f with no file name disables keeping of statistics. The command line options are done in a standard way but if you're not familiar with this sort of thing they may be somewhat confusing so here are some examples. Command line option examples: If you want to play a game that will be timed for 10 minutes, the command line would be: MAHJONGG -T10 Notice there is no space between the -T and the number of minutes (10). The other commands work the same way. To play board number 12345 the command line would be: MAHJONGG -B12345 You can combine commands too, so to play board 12345 as a 10 minute timed game the command line would be: MAHJONGG -T10 -B12345 There is also a setup screen that allows you to select any of the options that are available on the command line. Just hit S from the title screen to go to setup. You can also access setup at any time during a game by hitting the F3 key. If you forget the command line options, just start up the game with an invalid option and it will give you the proper usage (i.e., try using "mahjongg -?" which since it is not a valid option with give the valid option list). In summary, the command line options are: -n -m -bx -tx -cx -dx -fn -h -e -l -li
No title page use Mouse play Board x (0