Function: gomoku-human-resigns

gomoku-human-resigns is an interactive and byte-compiled function defined in gomoku.el.gz.

Signature

(gomoku-human-resigns)

Documentation

Signal to the Gomoku program that you may want to resign.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/play/gomoku.el.gz
(defun gomoku-human-resigns ()
  "Signal to the Gomoku program that you may want to resign."
  (interactive nil gomoku-mode)
  (gomoku-switch-to-window)
  (cond
   (gomoku-emacs-is-computing
    (gomoku-crash-game))
   ((not gomoku-game-in-progress)
    (message "There is no game in progress"))
   ((y-or-n-p "You mean, you resign? ")
    (gomoku-terminate-game 'human-resigned))
   ((y-or-n-p "You mean, we continue? ")
    (gomoku-prompt-for-move))
   (t
    (gomoku-terminate-game 'human-resigned)))) ; OK. Accept it