Mercurial > emacs
comparison lisp/play/gomoku.el @ 111574:a92967e45167
merge trunk
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 17 Nov 2010 13:09:08 +0900 |
parents | 721dbc4f6c02 |
children | 417b1e4d63cd |
comparison
equal
deleted
inserted
replaced
111573:e89dd9c3633b | 111574:a92967e45167 |
---|---|
927 | 927 |
928 (defun gomoku-prompt-for-move () | 928 (defun gomoku-prompt-for-move () |
929 "Display a message asking for Human's move." | 929 "Display a message asking for Human's move." |
930 (message (if (zerop gomoku-number-of-human-moves) | 930 (message (if (zerop gomoku-number-of-human-moves) |
931 "Your move? (Move to a free square and hit X, RET ...)" | 931 "Your move? (Move to a free square and hit X, RET ...)" |
932 "Your move?")) | 932 "Your move?"))) |
933 ;; This may seem silly, but if one omits the following line (or a similar | |
934 ;; one), the cursor may very well go to some place where POINT is not. | |
935 ;; FIXME: this can't be right!! --Stef | |
936 (save-excursion (set-buffer (other-buffer)))) | |
937 | 933 |
938 (defun gomoku-prompt-for-other-game () | 934 (defun gomoku-prompt-for-other-game () |
939 "Ask for another game, and start it." | 935 "Ask for another game, and start it." |
940 (if (y-or-n-p "Another game? ") | 936 (if (y-or-n-p "Another game? ") |
941 (gomoku gomoku-board-width gomoku-board-height) | 937 (gomoku gomoku-board-width gomoku-board-height) |