Skip to content
This repository was archived by the owner on May 20, 2021. It is now read-only.

Commit 9c208a8

Browse files
committedJul 13, 2019
Small adjustments
1 parent 5150fd0 commit 9c208a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎snake.lisp

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
"Head position of SNAKE."
3131
(first (segments-of snake)))
3232

33-
(defmethod (setf snake-position) (pos snake)
33+
(defmethod (setf snake-position) (pos (snake snake))
3434
(setf (first (segments-of snake)) pos))
3535

3636
(defun snake-tail (snake)
3737
"The rest of the SNAKE."
3838
(rest (segments-of snake)))
3939

4040
(defun change-direction (snake direction)
41-
"Modify DIRECTION of SNAKE with NEW-DIRECTION."
41+
"Set DIRECTION-OF SNAKE to DIRECTION.. maybe"
4242
(let ((current (direction-of snake)))
4343
;; TODO: This is so bad.
4444
(cond

0 commit comments

Comments
 (0)
This repository has been archived.