gomoku-mode

gomoku-mode is an interactive compiled Lisp function in `gomoku.el'.


(gomoku-mode)

Parent mode: `special-mode'.

Major mode for playing Gomoku against Emacs.
You and Emacs play in turn by marking a free square. You mark it with X
and Emacs marks it with O. The winner is the first to get five contiguous
marks horizontally, vertically or in diagonal.

You play by moving the cursor over the square you choose and hitting RET.

Other useful commands:

key binding
--- -------

C-c Prefix Command
RET gomoku-human-plays
C-n gomoku-move-down
C-p gomoku-move-up
SPC gomoku-human-plays
X gomoku-human-plays
b gomoku-move-sw
h backward-char
j gomoku-move-down
k gomoku-move-up
l forward-char
n gomoku-move-se
u gomoku-move-ne
x gomoku-human-plays
y gomoku-move-nw
<down-mouse-1> gomoku-click
<down-mouse-2> gomoku-click
<drag-mouse-1> gomoku-click
<drag-mouse-2> gomoku-mouse-play
<insert> gomoku-human-plays
<kp-1> gomoku-move-sw
<kp-2> gomoku-move-down
<kp-3> gomoku-move-se
<kp-4> backward-char
<kp-6> forward-char
<kp-7> gomoku-move-nw
<kp-8> gomoku-move-up
<kp-9> gomoku-move-ne
<kp-enter> gomoku-human-plays
<mouse-1> gomoku-click
<mouse-2> gomoku-mouse-play
<remap> Prefix Command

<remap> <advertised-undo> gomoku-human-takes-back
<remap> <move-beginning-of-line>
gomoku-beginning-of-line
<remap> <move-end-of-line> gomoku-end-of-line
<remap> <next-line> gomoku-move-down
<remap> <previous-line> gomoku-move-up
<remap> <undo> gomoku-human-takes-back

C-c C-b gomoku-human-takes-back
C-c C-e gomoku-emacs-plays
C-c C-p gomoku-human-plays
C-c C-r gomoku-human-resigns



In addition to any hooks its parent mode `special-mode' might have run,
this mode runs the hook `gomoku-mode-hook', as the final step
during initialization.