Function: snake
snake is an autoloaded, interactive and byte-compiled function defined
in snake.el.gz.
Signature
(snake)
Documentation
Play the Snake game.
Move the snake around without colliding with its tail or with the border.
Eating dots causes the snake to get longer.
Snake mode keybindings:
n (snake-start-game) Starts a new game of Snake
q (snake-end-game) Terminates the current game
p (snake-pause-game) Pauses (or resumes) the current game
C-b (snake-move-left) Makes the snake move left
C-f (snake-move-right) Makes the snake move right
C-p (snake-move-up) Makes the snake move up
C-n (snake-move-down) Makes the snake move down
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/play/snake.el.gz
;;;###autoload
(defun snake ()
"Play the Snake game.
Move the snake around without colliding with its tail or with the border.
Eating dots causes the snake to get longer.
Snake mode keybindings:
\\<snake-mode-map>
\\[snake-start-game] Starts a new game of Snake
\\[snake-end-game] Terminates the current game
\\[snake-pause-game] Pauses (or resumes) the current game
\\[snake-move-left] Makes the snake move left
\\[snake-move-right] Makes the snake move right
\\[snake-move-up] Makes the snake move up
\\[snake-move-down] Makes the snake move down"
(interactive)
(switch-to-buffer snake-buffer-name)
(gamegrid-kill-timer)
(snake-mode)
(snake-start-game))