Mercurial > emacs
comparison lisp/play/gomoku.el @ 1221:d5f91623a2cb
(gomoku): Make it autoload.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 26 Sep 1992 22:49:36 +0000 |
parents | 9f3cc03dae67 |
children | 3cd121df96c8 |
comparison
equal
deleted
inserted
replaced
1220:421535a46b91 | 1221:d5f91623a2cb |
---|---|
42 ;; for the first player. This program has no such restriction, but it does not | 42 ;; for the first player. This program has no such restriction, but it does not |
43 ;; know about the forced win, nor do I. Furthermore, you probably do not know | 43 ;; know about the forced win, nor do I. Furthermore, you probably do not know |
44 ;; it yourself :-). | 44 ;; it yourself :-). |
45 | 45 |
46 | 46 |
47 ;; HOW TO INSTALL: | |
48 ;; | |
49 ;; There is nothing specific w.r.t. installation: just put this file in the | |
50 ;; lisp directory and add an autoload for command gomoku in site-init.el. If | |
51 ;; you don't want to rebuild Emacs, then every single user interested in | |
52 ;; Gomoku will have to put the autoload command in its .emacs file. Another | |
53 ;; possibility is to define in your .emacs some command using (require | |
54 ;; 'gomoku). | |
55 ;; | |
56 ;; The most important thing is to BYTE-COMPILE gomoku.el because it is | |
57 ;; important that the code be as fast as possible. | |
58 ;; | |
59 ;; There are two main places where you may want to customize the program: key | 47 ;; There are two main places where you may want to customize the program: key |
60 ;; bindings and board display. These features are commented in the code. Go | 48 ;; bindings and board display. These features are commented in the code. Go |
61 ;; and see. | 49 ;; and see. |
62 | 50 |
63 | 51 |
64 ;; HOW TO USE: | 52 ;; HOW TO USE: |
65 ;; | 53 ;; |
66 ;; Once this file has been installed, the command "M-x gomoku" will display a | 54 ;; The command "M-x gomoku" displays a |
67 ;; board, the size of which depends on the size of the current window. The | 55 ;; board, the size of which depends on the size of the current window. The |
68 ;; size of the board is easily modified by giving numeric arguments to the | 56 ;; size of the board is easily modified by giving numeric arguments to the |
69 ;; gomoku command and/or by customizing the displaying parameters. | 57 ;; gomoku command and/or by customizing the displaying parameters. |
70 ;; | 58 ;; |
71 ;; Emacs plays when it is its turn. When it is your turn, just put the cursor | 59 ;; Emacs plays when it is its turn. When it is your turn, just put the cursor |
677 | 665 |
678 ;;; | 666 ;;; |
679 ;;; INTERACTIVE COMMANDS. | 667 ;;; INTERACTIVE COMMANDS. |
680 ;;; | 668 ;;; |
681 | 669 |
670 ;;;###autoload | |
682 (defun gomoku (&optional n m) | 671 (defun gomoku (&optional n m) |
683 "Start a Gomoku game between you and Emacs. | 672 "Start a Gomoku game between you and Emacs. |
684 If a game is in progress, this command allow you to resume it. | 673 If a game is in progress, this command allow you to resume it. |
685 If optional arguments N and M are given, an N by M board is used. | 674 If optional arguments N and M are given, an N by M board is used. |
686 | 675 |