Debug snake move api
This commit is contained in:
parent
59f42680ef
commit
3afaacae02
1 changed files with 0 additions and 6 deletions
|
@ -51,12 +51,6 @@
|
|||
(let* ((dir (getf data :direction))
|
||||
(game-id (getf data :game-id))
|
||||
(game (get-game gm game-id)))
|
||||
(cond
|
||||
((equal dir "up") (setf dir :up))
|
||||
((equal dir "down") (setf dir :down))
|
||||
((equal dir "left") (setf dir :left))
|
||||
((equal dir "right") (setf dir :right))
|
||||
(t (setf dir nil)))
|
||||
(if dir
|
||||
(refresh game :dir dir)
|
||||
(refresh game))
|
||||
|
|
Loading…
Add table
Reference in a new issue