News
Overview
Competition
Language
Gamemaster
Gameserver
Resources
|
Macintosh Common Lisp Reference Player
Source:
player.tar.gz.
This archive contains 5 Lisp source files.
-
minilog.lisp. Contains a backward-chaining reasoner used to compute legal moves, state update, goal
and terminating conditions given a game state and GDL game description.
-
gametools.lisp. Contains functions giving legal moves, state update, etc., calling functions defined
in minilog.lisp.
-
gameplayer.lisp. Contains functions handling incoming START, PLAY, and STOP messages
received from the Game Manager, including managing start and play clocks and storing match
data.
-
communication.lisp. Contains functions opening TCP sockets to listen for and pass messages from the
Game Manager to code in gameplayer.lisp.
-
loader.lisp. Loads all source files as starts TCP listeners for incoming messages.
This code has been tested and runs in MCL (Macintosh Common Lisp).
Common Lisp implementations tend to handle TCP/IP communication differently;
if you are using a Common Lisp implementation other than MCL, the code in
communication.lisp may require tinkering, specifically with the functions that open tcp
sockets and listen for messages from Gamemaster.
Contact:
Please contact info@games.stanford.edu with
questions or problems with this code.
|