Function: bubbles--neighborhood-available
bubbles--neighborhood-available is a byte-compiled function defined in
bubbles.el.gz.
Signature
(bubbles--neighborhood-available)
Documentation
Return t if another valid neighborhood is available.
Source Code
;; Defined in /usr/src/emacs/lisp/play/bubbles.el.gz
(defun bubbles--neighborhood-available ()
"Return t if another valid neighborhood is available."
(catch 'found
(save-excursion
(dotimes (i (bubbles--grid-height))
(dotimes (j (bubbles--grid-width))
(let ((c (bubbles--char-at i j)))
(if (and (not (eq c (bubbles--empty-char)))
(or (eq c (bubbles--char-at (1+ i) j))
(eq c (bubbles--char-at i (1+ j)))))
(throw 'found t)))))
nil)))