Skip to content

Commit e2a4784

Browse files
committed
Rebase
1 parent 1efacb7 commit e2a4784

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/hanoi.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
(defun hanoi (n)
1717
(hanoi-move n 'L 'M 'R))
1818

19-
(hanoi 5)
19+
(hanoi 5)

examples/nqueens.lisp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,17 @@
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)

0 commit comments

Comments
 (0)