Function: tetris-rotate-prev

tetris-rotate-prev is an interactive and byte-compiled function defined in tetris.el.gz.

Signature

(tetris-rotate-prev)

Documentation

Rotate the shape clockwise.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/play/tetris.el.gz
(defun tetris-rotate-prev ()
  "Rotate the shape clockwise."
  (interactive nil tetris-mode)
  (unless tetris-paused
      (tetris-erase-shape)
      (setq tetris-rot (% (+ 1 tetris-rot)
                          (tetris-shape-rotations)))
      (if (tetris-test-shape)
          (setq tetris-rot (% (+ 3 tetris-rot)
                              (tetris-shape-rotations))))
      (tetris-draw-shape)))