home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
lisp
/
interpre
/
xlispplu
/
fun
/
read.me
< prev
next >
Wrap
Internet Message Format
|
1987-06-05
|
2KB
From: UTRUST::DEHARTOG "Hans DeHartog@UTO" 1-JUN-1987 03:41
To: MOSAIC::LORD,DEHARTOG
Subj: RE: game algorithms for xlisp
Here are the universal functions for game-playing (UFG Version 1.1).
The files are separated by dashed lines that include the file-name
of the file that follows the dashed line.
The first 2 files are Lisp-initilization-files (init.lsp for XLISP V1.7
and xlisp.lsp for Common Lisp V2.0). Other versions of Common Lisp
should give no problem. Those file-names can be confusing but think
of xlisp.lsp as a file that makes Common Lisp compatible with XLISP.
The 3rd file is the main program, called game.lsp. The 4th and the 5th
file are the lisp-code and rules-of-the-game for the game of kalah
(called kalah.lsp and kalah.rls resp.). The last two files are the
lisp-code and rules for the game of pangki (pangki.lsp and pangki.rls).
To actually play a game (e.g. kalah), you have to give the following
commands:
for Common Lisp: LISP/INIT=(XLISP,KALAH)
(you also can compile the lisp-files separately if you want speed)
for XLISP: xlisp kalah
(the file init.lsp should live in your current directory)
Note that the file game.lsp (or game.fas) is loaded automatically
by the files that have the game-specific functions (kalah.lsp and
pangki.lsp). Their last line looks like (load "game").
One more remark for XLISP-users: it is assumed that in your version
for XLISP, you incorporated the changes I suggested in the notes-
file for XLISP (topic 53.0). After that, I changed the function SCNDS
to be named CLOCK.
Have fun! Hans.
Note:
These functions have been contributed to the public domain by permission
of the author. He welcomes all comments, suggestions and improvements.
The patch mentioned is in the file XLISP.PAT
/Chris