November 2010
Intermediate to advanced
504 pages
12h 45m
English
Let’s start coding this game in Lisp. As we discussed in the previous chapter, this game will contain both clean, functional code and dirty, imperative code. You’ll be able to tell in which category a block of code fits by the “clean/functional” or “dirty/imperative” icon next to it.
First, we’ll create some global variables that define the basic parameters for our game:
(defparameter *num-players* 2)
(defparameter *max-dice* 3) (defparameter *board-size* 2) (defparameter *board-hexnum* ...