Function: bubbles

bubbles is an autoloaded, interactive and byte-compiled function defined in bubbles.el.gz.

Signature

(bubbles)

Documentation

Play Bubbles game.

The goal is to remove all bubbles with as few moves as possible. RET (bubbles-plop) on a bubble removes that bubble and all connected bubbles of the same color. Unsupported bubbles fall down, and columns that do not contain any bubbles suck the columns on its right towards the left.

M-x bubbles-set-game-easy (bubbles-set-game-easy) sets the difficulty to easy. M-x bubbles-set-game-medium (bubbles-set-game-medium) sets the difficulty to medium. M-x bubbles-set-game-difficult (bubbles-set-game-difficult) sets the difficulty to difficult. M-x bubbles-set-game-hard (bubbles-set-game-hard) sets the difficulty to hard.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/play/bubbles.el.gz
;;;###autoload
(defun bubbles ()
  "Play Bubbles game.
\\<bubbles-mode-map>
The goal is to remove all bubbles with as few moves as possible.
\\[bubbles-plop] on a bubble removes that bubble and all
connected bubbles of the same color.  Unsupported bubbles fall
down, and columns that do not contain any bubbles suck the
columns on its right towards the left.

\\[bubbles-set-game-easy] sets the difficulty to easy.
\\[bubbles-set-game-medium] sets the difficulty to medium.
\\[bubbles-set-game-difficult] sets the difficulty to difficult.
\\[bubbles-set-game-hard] sets the difficulty to hard."
  (interactive)
  (switch-to-buffer (get-buffer-create "*bubbles*"))
  (when (or (not bubbles--playing)
            (y-or-n-p "Start new game? "))
    (setq bubbles--save-data nil)
    (setq bubbles--playing t)
    (bubbles--initialize)))