File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616(defun hanoi (n)
1717 (hanoi-move n ' L ' M ' R))
1818
19- (hanoi 5 )
19+ (hanoi 5 )
Original file line number Diff line number Diff line change 136136(defun get (board x y)
137137 (nth (nth board x) y))
138138
139- ; ; Set symbol "@ " to location (x, y).
139+ ; ; Set symbol "Q " to location (x, y).
140140(defun set (board x y)
141- (setcar (nth-tail (nth board x) y) ' @ ))
141+ (setcar (nth-tail (nth board x) y) ' Q ))
142142
143143; ; Set symbol "x" to location (x, y).
144144(defun clear (board x y)
145145 (setcar (nth-tail (nth board x) y) ' x))
146146
147- ; ; Returns true if location (x, y)'s value is "@ ".
147+ ; ; Returns true if location (x, y)'s value is "Q ".
148148(defun set? (board x y)
149- (eq (get board x y) ' @ ))
149+ (eq (get board x y) ' Q ))
150150
151151; ; Print out the given board.
152152(defun print (board)
You can’t perform that action at this time.
0 commit comments