home *** CD-ROM | disk | FTP | other *** search
- ARTILLERY BATTLE PROGRAMS
-
- The two programs "ARTIL/M" and "ARTIL/Z" are
- almost-identical versions of the same program -- a
- simulation of an artillery battle between two players --
- in Pascal/M and Pascal/Z, respectively. Besides being a
- computer game for two people (unlike most available, which
- are for one person against the computer) and the kind of
- game which requires more thought than luck (usually), it
- shows some programming techniques that may be useful, and
- should be an interesting comparison of the differences
- between the two dialects of Pascal. The two programs run
- almost identically, except for the ability to randomize the
- starting configuration in Pascal/M using the "Filebusy"
- function. While it is nice to be able to randomize a game
- or simulation in this way, it's not a serious loss; and in
- the Pascal/Z version, the players do have the ability to
- exactly "regenerate" a particular configuration, simply by
- entering the same starting number.
- In the source programs, the main difference is
- that the extensions in Pascal/M, most of which are called
- by standard Pascal procedure or function calls, have to be
- explicitly written into the Pascal/Z version. To the extent
- possible, this is probably the best and easiest method for
- converting programs from one version of Pascal to another;
- and since there are a lot of good programs, originally
- written in UCSD Pascal (the extensions and changes in which
- are almost identical to those in Pascal/M), which remain
- unconverted to Pascal/Z, this type of conversion should be
- a subject of interest to many in the Pascal/Z Users' Group.
- It should be to the advantage of all of us, and Pascal
- programmers in general, if we can maintain as much
- compatibility as possible among the different implemen-
- tations of Pascal, so that we can all still talk to
- each other (end of sermon).
- Hope you can enjoy the game, and maybe even learn
- something from it. Let me know if anyone comes up with any
- major improvements.
-
- Jim Bearden
- Cancer Center, University of Hawaii
- 1236 Lauhala Street
- Honolulu, Hawaii 96813
- or improvements.
-
- Jim Be ╥½═É=┬½═f" ═