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

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

[elpa] 02/04: [gnugo maint] Update HACKING; nfc.


From: Thien-Thi Nguyen
Subject: [elpa] 02/04: [gnugo maint] Update HACKING; nfc.
Date: Sat, 12 Apr 2014 10:27:40 +0000

ttn pushed a commit to branch master
in repository elpa.

commit ba4a17e0f7648903d456c69a0c2817392228e2bb
Author: Thien-Thi Nguyen <address@hidden>
Date:   Sat Apr 12 11:34:19 2014 +0200

    [gnugo maint] Update HACKING; nfc.
    
    The debugging aids functionality is now part of gnugo.el.
    
    The various ideas / wishlist items are now realized, except for
    "dribble the SGF tree", which is bunk, and "SGF tree traversal",
    which awaits a nicer (user-level) node-ref facility.
---
 packages/gnugo/HACKING |   37 +------------------------------------
 1 files changed, 1 insertions(+), 36 deletions(-)

diff --git a/packages/gnugo/HACKING b/packages/gnugo/HACKING
index 988878e..a62cff1 100644
--- a/packages/gnugo/HACKING
+++ b/packages/gnugo/HACKING
@@ -11,37 +11,6 @@ This file is both a guide for newcomers and a todo list for 
oldstayers.
 *** [[file:gnugo.el::defun.gnugo-toggle-dead-group][gnugo-toggle-dead-group]] 
only half-complete
 *** no error-handling in SGF parsing
 *** performance -- ‘compare-strings’ approach too clever/slow :-/
-* debugging aids
-*** swizzling branches for frolicking fun
-(defun SWIZ (a b)
-  (let* ((ends (gnugo--tree-ends (gnugo-get :sgf-gametree)))
-         (monkey (gnugo-get :monkey))
-         (bidx (aref monkey 1)))
-    (rotatef (aref ends a)
-             (aref ends b))
-    (cond ((= a bidx) (aset monkey 1 b))
-          ((= b bidx) (aset monkey 1 a)))))
-
-(defun SWIZ-RANDOM ()
-  (interactive)
-  (let* ((n (length (gnugo--tree-ends (gnugo-get :sgf-gametree))))
-         (one (random n))
-         (two (if (= 1 n)
-                  one
-                (loop with try
-                      while (= one (setq try (random n)))
-                      finally return try))))
-    (SWIZ one two)
-    (message "%d <-> %d" one two)))
-
-(defun UNSWIZ ()
-  (interactive)
-  (let* ((monkey (gnugo-get :monkey))
-         (cur (aref monkey 1)))
-    (if (zerop cur)
-        (message "(nothing to do)")
-      (SWIZ 0 cur)
-      (message "0 <-> %d" cur))))
 * ideas / wishlist
 *** set ‘lexical-binding’ (if possible!)
     Hmm, lots of symbol trickery going on; initial attempts FAIL.
@@ -54,11 +23,7 @@ This file is both a guide for newcomers and a todo list for 
oldstayers.
 *** extend GNUGO Board mode to manage another subprocess for analysis only
 *** command ‘C’ to add a comment to the SGF tree
 *** command ‘C-u =’ to label a position
-*** SGF tree display, traversal (belongs in sgf.el)
-*** review game history in another buffer
-*** branch subgame tree at arbitrary point
-*** subgame branch matriculation (maturity: child leaves the family)
-*** dribble the SGF tree
+*** SGF tree traversal
 *** "undo undo undoing"; integrate Emacs undo, GTP undo, subgame branching
 *** make buffer name format configurable (but enforce uniqueness)
 *** more tilde escapes for 
[[file:gnugo.el::defvar.gnugo-mode-line][gnugo-mode-line]]



reply via email to

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