emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 01/01: Work on the manual.


From: Mario Lang
Subject: [elpa] 01/01: Work on the manual.
Date: Mon, 16 Jun 2014 19:00:01 +0000

mlang pushed a commit to branch externals/chess
in repository elpa.

commit 965e2be5838a5a8cfac3e63d9e6ff686d7cd0114
Author: Mario Lang <address@hidden>
Date:   Mon Jun 16 20:59:44 2014 +0200

    Work on the manual.
---
 chess.info |  206 ++++++++++++++++++++++++++++++++++++------------------------
 chess.texi |   54 +++++++++++++---
 2 files changed, 168 insertions(+), 92 deletions(-)

diff --git a/chess.info b/chess.info
index 7bd37ca..42814be 100644
--- a/chess.info
+++ b/chess.info
@@ -529,10 +529,28 @@ File: chess.info,  Node: Creating plies,  Next: Ply 
details,  Prev: Plies,  Up:
      Return a list of all legal plies in POSITION.  KEYWORDS allowed
      are:
 
-     :any return t if any piece can move at all :color <t or nil> :piece
-     <piece character> :file <number 0 to 7> [can only be used if :piece
-     is present] :index <coordinate index> :target <specific target
-     index> :candidates <list of indices>
+     ‘:any’
+          Return ‘t’ if any piece can move at all.
+
+     ‘:color’
+          If ‘t’, return plies for white, if ‘nil’, return plies for
+          black.
+
+     ‘:piece’
+          Return plies for a specific piece (a character).
+
+     ‘:file’
+          Given a file number (0-7), return plies for any piece or color
+          present on that file.  ‘:piece’ or ‘:color’ must be present.
+
+     ‘:index’
+          Return plies for the piece at INDEX.
+
+     ‘:target’
+          Return plies that go to a specific coordinate.
+
+     ‘:candidates’
+          If provided, only consider these source coordinates.
 
      These will constrain the plies generated to those matching the
      above criteria.
@@ -1332,9 +1350,13 @@ File: chess.info,  Node: Basic operations,  Next: 
Selecting pieces with the keyb
      Resign the current game (‘chess-display-resign’).
 
 ‘M-w’
+‘C-u M-w’
      Copy the currently displayed position to the kill ring as a FEN
      string (‘chess-display-kill-board’).
 
+     With prefix argument, copy the current game in PGN to the kill
+     ring.
+
 ‘C-y’
      Set the current display position via a FEN string from the kill
      ring (‘chess-display-yank-board’).
@@ -1532,7 +1554,7 @@ File: chess.info,  Node: Engines,  Next: Chess Session,  
Prev: Chessboard displa
 4 Engines
 *********
 
-Engines are the representation of an opponent in Chess.  THe main type
+Engines are the representation of an opponent in Chess.  The main type
 of engine interfaces with an external chess program.  However, there can
 be other uses for engine objects, such as providing networked engined
 for playing with opponent over different types of transports.
@@ -1540,6 +1562,7 @@ for playing with opponent over different types of 
transports.
 * Menu:
 
 * Common functions::
+* The Null Engine::
 * AI::
 * Crafty::
 * Fruit::
@@ -1550,7 +1573,7 @@ for playing with opponent over different types of 
transports.
 * Stockfish::
 
 
-File: chess.info,  Node: Common functions,  Next: AI,  Prev: Engines,  Up: 
Engines
+File: chess.info,  Node: Common functions,  Next: The Null Engine,  Prev: 
Engines,  Up: Engines
 
 4.1 Common functions
 ====================
@@ -1577,9 +1600,25 @@ File: chess.info,  Node: Common functions,  Next: AI,  
Prev: Engines,  Up: Engin
      handler can take care of the data.
 
 
-File: chess.info,  Node: AI,  Next: Crafty,  Prev: Common functions,  Up: 
Engines
+File: chess.info,  Node: The Null Engine,  Next: AI,  Prev: Common functions,  
Up: Engines
+
+4.2 The Null Engine
+===================
 
-4.2 AI
+The most basic engine module is ‘chess-none’, a stub module that does
+nothing.  This is useful for a game of chess against another human,
+where both use the same computer to enter moves and display the current
+chess position.
+
+   It can also be useful for creating FEN strings of specific positions.
+
+   To bring up a chessboard with no active engine attached, use ‘C-u M-x
+chess <RET> none <RET>’.
+
+
+File: chess.info,  Node: AI,  Next: Crafty,  Prev: The Null Engine,  Up: 
Engines
+
+4.3 AI
 ======
 
 The AI engine module defines a pure Emacs Lisp implementation of an
@@ -1607,7 +1646,7 @@ entry point.
 
 File: chess.info,  Node: Crafty,  Next: Fruit,  Prev: AI,  Up: Engines
 
-4.3 Crafty
+4.4 Crafty
 ==========
 
 "Crafty" is a chess program written by Michael Byrne, UAB professor Dr.
@@ -1628,7 +1667,7 @@ play against Crafty by invoking ‘C-u M-x chess <RET> 
crafty <RET>’.
 
 File: chess.info,  Node: Fruit,  Next: Glaurung,  Prev: Crafty,  Up: Engines
 
-4.4 Fruit
+4.5 Fruit
 =========
 
 "Fruit" is a chess engine developed by Fabien Letouzey.  It was
@@ -1652,7 +1691,7 @@ play against Fruit by invoking ‘C-u M-x chess <RET> fruit 
<RET>’.
 
 File: chess.info,  Node: Glaurung,  Next: GNU Chess,  Prev: Fruit,  Up: Engines
 
-4.5 Glaurung
+4.6 Glaurung
 ============
 
 "Glaurung" is another freely distributed strong computer chess engine.
@@ -1670,7 +1709,7 @@ play against Glaurung by invoking ‘C-u M-x chess <RET> 
glaurung <RET>’.
 
 File: chess.info,  Node: GNU Chess,  Next: Phalanx,  Prev: Glaurung,  Up: 
Engines
 
-4.6 GNU Chess
+4.7 GNU Chess
 =============
 
 "GNU Chess" (http://gnu.org/software/chess/) is free software, licensed
@@ -1692,7 +1731,7 @@ play against GNU Chess by invoking ‘C-u M-x chess <RET> 
gnuchess <RET>’.
 
 File: chess.info,  Node: Phalanx,  Next: Sjeng,  Prev: GNU Chess,  Up: Engines
 
-4.7 Phalanx
+4.8 Phalanx
 ===========
 
 "Phalanx" is an old, popular chess engine, with an interesting history.
@@ -1710,7 +1749,7 @@ play against Phalanx by invoking ‘C-u M-x chess <RET> 
phalanx <RET>’.
 
 File: chess.info,  Node: Sjeng,  Next: Stockfish,  Prev: Phalanx,  Up: Engines
 
-4.8 Sjeng
+4.9 Sjeng
 =========
 
 "Sjeng" (http://sjeng.org/) is a championship-winner automated chess
@@ -1730,8 +1769,8 @@ play against Sjeng by invoking ‘C-u M-x chess <RET> sjeng 
<RET>’.
 
 File: chess.info,  Node: Stockfish,  Prev: Sjeng,  Up: Engines
 
-4.9 Stockfish
-=============
+4.10 Stockfish
+==============
 
 "Stockfish" (http://www.stockfishchess.org/) is one of the strongest
 chess engines in the world, appearing near or at the top of most chess
@@ -2224,7 +2263,7 @@ Function and Variable Index
 * chess-display-invert:                  Generic display manipulation 
functions.
                                                               (line  27)
 * chess-display-invert <1>:              Basic operations.    (line   8)
-* chess-display-kill-board:              Basic operations.    (line  39)
+* chess-display-kill-board:              Basic operations.    (line  40)
 * chess-display-move:                    Generic display manipulation 
functions.
                                                               (line  30)
 * chess-display-move-backward:           Basic operations.    (line  11)
@@ -2237,7 +2276,7 @@ Function and Variable Index
                                                               (line  37)
 * chess-display-quit:                    Generic display manipulation 
functions.
                                                               (line  40)
-* chess-display-quit <1>:                Basic operations.    (line  51)
+* chess-display-quit <1>:                Basic operations.    (line  55)
 * chess-display-resign:                  Basic operations.    (line  36)
 * chess-display-search-backward:         Basic operations.    (line  14)
 * chess-display-search-forward:          Basic operations.    (line  18)
@@ -2255,7 +2294,7 @@ Function and Variable Index
                                                               (line  56)
 * chess-display-update:                  Generic display manipulation 
functions.
                                                               (line  64)
-* chess-display-yank-board:              Basic operations.    (line  43)
+* chess-display-yank-board:              Basic operations.    (line  47)
 * chess-engine-command:                  Common functions.    (line  18)
 * chess-engine-create:                   Common functions.    (line   6)
 * chess-engine-position:                 Common functions.    (line  15)
@@ -2476,16 +2515,18 @@ Key Index
 * C-M-l:                                 Chess ICS Mode.       (line 62)
 * C-r:                                   Basic operations.     (line 13)
 * C-s:                                   Basic operations.     (line 17)
+* C-u M-w:                               Basic operations.     (line 38)
 * C-u M-x chess RET:                     Chess Session.        (line 35)
 * C-u M-x chess RET ai RET:              AI.                   (line 10)
 * C-u M-x chess RET crafty RET:          Crafty.               (line 18)
 * C-u M-x chess RET fruit RET:           Fruit.                (line 21)
 * C-u M-x chess RET glaurung RET:        Glaurung.             (line 15)
 * C-u M-x chess RET gnuchess RET:        GNU Chess.            (line 19)
+* C-u M-x chess RET none RET:            The Null Engine.      (line 13)
 * C-u M-x chess RET phalanx RET:         Phalanx.              (line 15)
 * C-u M-x chess RET sjeng RET:           Sjeng.                (line 17)
 * C-u M-x chess RET stockfish RET:       Stockfish.            (line 18)
-* C-y:                                   Basic operations.     (line 42)
+* C-y:                                   Basic operations.     (line 46)
 * d:                                     Entering moves with algebraic 
notation.
                                                                (line  6)
 * down-mouse-1:                          Selecting pieces with the mouse.
@@ -2529,7 +2570,7 @@ Key Index
 * RET <2>:                               The sought game display.
                                                                (line 24)
 * TAB:                                   Basic operations.     (line  6)
-* X:                                     Basic operations.     (line 50)
+* X:                                     Basic operations.     (line 54)
 * x:                                     Entering moves with algebraic 
notation.
                                                                (line  6)
 
@@ -2553,67 +2594,68 @@ Node: Opcode "am" avoid move(s)17228
 Node: Opcode "bm" best move(s)17669
 Node: Plies18064
 Node: Creating plies19207
-Node: Ply details20390
-Node: The "next" position21511
-Node: Algebraic notation21869
-Node: Variations23651
-Node: Creating variations24750
-Node: Variation positions25058
-Node: Variation plies25664
-Node: Making a move in a variation26110
-Node: Games26663
-Node: Creating games28245
-Node: Game tags28690
-Node: Game positions29299
-Node: Game plies29933
-Node: Making a move30202
-Node: PGN notation30633
-Node: PGN mode31367
-Node: Collections31628
-Node: Opening Databases32407
-Node: Querying Databases32902
-Node: Modifying Databases33528
-Node: Finalising Databases33800
-Node: Database Modules33975
-Node: chess-file34233
-Node: chess-scid34883
-Node: Chess Opening Books35122
-Node: ECO Classification35441
-Node: Polyglot opening book format support35884
-Node: Modules37752
-Node: Chessboard displays44528
-Node: Generic display manipulation functions45162
-Node: Chess display mode47960
-Node: Basic operations48895
-Node: Selecting pieces with the keyboard50511
-Node: Selecting pieces with the mouse51103
-Node: Entering moves with algebraic notation51669
-Node: Plain ASCII diagram displays52687
-Node: ICS1 style ASCII displays54572
-Node: Graphical displays55924
-Node: Engines56775
-Node: Common functions57291
-Node: AI58339
-Node: Crafty59318
-Node: Fruit60105
-Node: Glaurung61001
-Node: GNU Chess61641
-Node: Phalanx62566
-Node: Sjeng63198
-Node: Stockfish63937
-Node: Chess Session64752
-Node: Internet Chess Servers66519
-Node: Connecting to a server67676
-Node: Chess ICS Mode68232
-Node: Command History71745
-Node: ICS Command Ring72366
-Node: ICS History Copying75579
-Node: Seeking an opponent for a new game77097
-Node: The sought game display77746
-Node: Watching other games78774
-Node: Concept Index80256
-Node: Function and Variable Index82480
-Node: Key Index99949
+Node: Ply details20796
+Node: The "next" position21917
+Node: Algebraic notation22275
+Node: Variations24057
+Node: Creating variations25156
+Node: Variation positions25464
+Node: Variation plies26070
+Node: Making a move in a variation26516
+Node: Games27069
+Node: Creating games28651
+Node: Game tags29096
+Node: Game positions29705
+Node: Game plies30339
+Node: Making a move30608
+Node: PGN notation31039
+Node: PGN mode31773
+Node: Collections32034
+Node: Opening Databases32813
+Node: Querying Databases33308
+Node: Modifying Databases33934
+Node: Finalising Databases34206
+Node: Database Modules34381
+Node: chess-file34639
+Node: chess-scid35289
+Node: Chess Opening Books35528
+Node: ECO Classification35847
+Node: Polyglot opening book format support36290
+Node: Modules38158
+Node: Chessboard displays44934
+Node: Generic display manipulation functions45568
+Node: Chess display mode48366
+Node: Basic operations49301
+Node: Selecting pieces with the keyboard51011
+Node: Selecting pieces with the mouse51603
+Node: Entering moves with algebraic notation52169
+Node: Plain ASCII diagram displays53187
+Node: ICS1 style ASCII displays55072
+Node: Graphical displays56424
+Node: Engines57275
+Node: Common functions57811
+Node: The Null Engine58872
+Node: AI59415
+Node: Crafty60393
+Node: Fruit61180
+Node: Glaurung62076
+Node: GNU Chess62716
+Node: Phalanx63641
+Node: Sjeng64273
+Node: Stockfish65012
+Node: Chess Session65829
+Node: Internet Chess Servers67596
+Node: Connecting to a server68753
+Node: Chess ICS Mode69309
+Node: Command History72822
+Node: ICS Command Ring73443
+Node: ICS History Copying76656
+Node: Seeking an opponent for a new game78174
+Node: The sought game display78823
+Node: Watching other games79851
+Node: Concept Index81333
+Node: Function and Variable Index83557
+Node: Key Index101026
 
 End Tag Table
 
diff --git a/chess.texi b/chess.texi
index b3b9462..a943729 100644
--- a/chess.texi
+++ b/chess.texi
@@ -573,13 +573,29 @@ maneuver.
 Return a list of all legal plies in @var{position}.
 @var{keywords} allowed are:
 
-  :any   return t if any piece can move at all
-  :color <t or nil>
-  :piece <piece character>
-  :file <number 0 to 7> [can only be used if :piece is present]
-  :index <coordinate index>
-  :target <specific target index>
-  :candidates <list of indices>
address@hidden @code
address@hidden :any
+Return @code{t} if any piece can move at all.
+
address@hidden :color
+If @code{t}, return plies for white, if @code{nil}, return plies for black.
+
address@hidden :piece
+Return plies for a specific piece (a character).
+
address@hidden :file
+Given a file number (0-7), return plies for any piece or color
+present on that file.  @code{:piece} or @code{:color} must be present.
+
address@hidden :index
+Return plies for the piece at @var{index}.
+
address@hidden :target
+Return plies that go to a specific coordinate.
+
address@hidden :candidates
+If provided, only consider these source coordinates.
address@hidden table
 
 These will constrain the plies generated to those matching the above
 criteria.
@@ -1421,11 +1437,15 @@ Offer to draw the current game 
(@code{chess-display-draw}).
 Resign the current game (@code{chess-display-resign}).
 
 @kindex M-w
address@hidden C-u M-w
 @item M-w
address@hidden C-u M-w
 @findex chess-display-kill-board
 Copy the currently displayed position to the kill ring as a FEN string
 (@code{chess-display-kill-board}).
 
+With prefix argument, copy the current game in @acronym{PGN} to the kill ring.
+
 @kindex C-y
 @item C-y
 @findex chess-display-yank-board
@@ -1664,13 +1684,14 @@ For all customization options of @code{chess-images}, 
use
 @node Engines, Chess Session, Chessboard displays, Top
 @chapter Engines
 
-Engines are the representation of an opponent in Chess.  THe main type
+Engines are the representation of an opponent in Chess.  The main type
 of engine interfaces with an external chess program.  However, there
 can be other uses for engine objects, such as providing networked engined
 for playing with opponent over different types of transports.
 
 @menu
 * Common functions::
+* The Null Engine::
 * AI::
 * Crafty::
 * Fruit::
@@ -1681,7 +1702,7 @@ for playing with opponent over different types of 
transports.
 * Stockfish::
 @end menu
 
address@hidden Common functions, AI, Engines, Engines
address@hidden Common functions, The Null Engine, Engines, Engines
 @section Common functions
 
 @defun chess-engine-create module game &optional response-handler &rest 
handler-ctor-args
@@ -1727,7 +1748,20 @@ to submit the data.  Otherwise, the 'send event is 
triggered and the engine
 event handler can take care of the data.
 @end defun
 
address@hidden AI, Crafty, Common functions, Engines
address@hidden The Null Engine, AI, Common functions, Engines
address@hidden The Null Engine
+
+The most basic engine module is @code{chess-none}, a stub module that does
+nothing.  This is useful for a game of chess against another human, where
+both use the same computer to enter moves and display the current chess 
position.
+
+It can also be useful for creating @acronym{FEN} strings of specific positions.
+
address@hidden C-u M-x chess RET none RET
+To bring up a chessboard with no active engine attached, use
address@hidden M-x chess @key{RET} none @key{RET}}.
+
address@hidden AI, Crafty, The Null Engine, Engines
 @section AI
 
 The @acronym{AI} engine module defines a pure Emacs Lisp implementation



reply via email to

[Prev in Thread] Current Thread [Next in Thread]