November 2010
Intermediate to advanced
504 pages
12h 45m
English
Now that we’ve completed the graphical side of Dice of Doom version 3, we’re ready to write the side that interfaces with the web server.
The central function for our web server handling is called dod-request-handler. It is the function that we can pass to the serve command in our web server library, and it is responsible for handling all the web requests coming from the web browser. Here is the code for dod-request-handler:
(defparameter *cur-game-tree* nil) (defparameter *from-tile* nil) (defun dod-request-handler (path header params)(if (equal path "game.html") (progn (princ "<!doctype ...