home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / lisp / interpre / xlispplu / fun / read.me < prev    next >
Internet Message Format  |  1987-06-05  |  2KB

  1. From:    UTRUST::DEHARTOG     "Hans DeHartog@UTO"  1-JUN-1987 03:41
  2. To:    MOSAIC::LORD,DEHARTOG    
  3. Subj:    RE: game algorithms for xlisp
  4.  
  5. Here are the universal functions for game-playing (UFG Version 1.1).
  6. The files are separated by dashed lines that include the file-name
  7. of the file that follows the dashed line.
  8. The first 2 files are Lisp-initilization-files (init.lsp for XLISP V1.7
  9. and xlisp.lsp for Common Lisp V2.0). Other versions of Common Lisp
  10. should give no problem. Those file-names can be confusing but think
  11. of xlisp.lsp as a file that makes Common Lisp compatible with XLISP.
  12. The 3rd file is the main program, called game.lsp. The 4th and the 5th
  13. file are the lisp-code and rules-of-the-game for the game of kalah 
  14. (called kalah.lsp and kalah.rls resp.). The last two files are the
  15. lisp-code and rules for the game of pangki (pangki.lsp and pangki.rls).
  16. To actually play a game (e.g. kalah), you have to give the following
  17. commands:
  18.  
  19. for Common Lisp:    LISP/INIT=(XLISP,KALAH)
  20. (you also can compile the lisp-files separately if you want speed)
  21.  
  22. for XLISP:        xlisp kalah
  23. (the file init.lsp should live in your current directory)
  24.  
  25. Note that the file game.lsp (or game.fas) is loaded automatically
  26. by the files that have the game-specific functions (kalah.lsp and
  27. pangki.lsp). Their last line looks like (load "game").
  28.  
  29. One more remark for XLISP-users: it is assumed that in your version
  30. for XLISP, you incorporated the changes I suggested in the notes-
  31. file for XLISP (topic 53.0). After that, I changed the function SCNDS
  32. to be named CLOCK. 
  33.  
  34. Have fun!                        Hans.
  35.  
  36. Note:
  37.  
  38. These functions have been contributed to the public domain by permission
  39. of the author.  He welcomes all comments, suggestions and improvements.
  40. The patch mentioned is in the file XLISP.PAT
  41.  
  42. /Chris