Function: 5x5-new-game

5x5-new-game is an interactive and byte-compiled function defined in 5x5.el.gz.

Signature

(5x5-new-game)

Documentation

Start a new game of 5x5.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/play/5x5.el.gz
(defun 5x5-new-game ()
  "Start a new game of `5x5'."
  (interactive nil 5x5-mode)
  (when (if (called-interactively-p 'interactive)
	    (5x5-y-or-n-p "Start a new game? ") t)
    (setq 5x5-x-pos (/ 5x5-grid-size 2)
          5x5-y-pos (/ 5x5-grid-size 2)
          5x5-moves 0
          5x5-grid  (5x5-make-move (5x5-make-new-grid) 5x5-y-pos 5x5-x-pos)
	  5x5-solver-output nil)
    (5x5-draw-grid (list 5x5-grid))
    (5x5-position-cursor)))