Function: bb-init-board

bb-init-board is a byte-compiled function defined in blackbox.el.gz.

Signature

(bb-init-board NUM-BALLS)

Source Code

;; Defined in /usr/src/emacs/lisp/play/blackbox.el.gz
(defun bb-init-board (num-balls)
  (let (board pos)
    (while (>= (setq num-balls (1- num-balls)) 0)
      (while
	  (progn
	    (setq pos (cons (random 8) (random 8)))
	    (member pos board)))
      (setq board (cons pos board)))
    board))