Function: gomoku-display-statistics
gomoku-display-statistics is a byte-compiled function defined in
gomoku.el.gz.
Signature
(gomoku-display-statistics)
Documentation
Obnoxiously display some statistics about previous games in mode line.
Source Code
;; Defined in /usr/src/emacs/lisp/play/gomoku.el.gz
(sit-for 0)) ; Display NOW
(defun gomoku-display-statistics ()
"Obnoxiously display some statistics about previous games in mode line."
;; Update mode line only if Gomoku buffer is current (Bug#12771).
(when (string-equal (buffer-name) gomoku-buffer-name)
;; We store this string in the mode-line-process local variable.
;; This is certainly not the cleanest way out ...
(setq mode-line-process
(format ": won %d, lost %d%s"
gomoku-number-of-human-wins
gomoku-number-of-emacs-wins
(if (zerop gomoku-number-of-draws)
""
(format ", drew %d" gomoku-number-of-draws))))
(force-mode-line-update)))