[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gnugo bcc7fef 166/357: [gnugo maint] Update HACKING; nf
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gnugo bcc7fef 166/357: [gnugo maint] Update HACKING; nfc. |
Date: |
Sun, 29 Nov 2020 14:51:13 -0500 (EST) |
branch: externals/gnugo
commit bcc7fefc53c4ab030c37f17297128b03ebef2725
Author: Thien-Thi Nguyen <ttn@gnu.org>
Commit: Thien-Thi Nguyen <ttn@gnu.org>
[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.
---
HACKING | 37 +------------------------------------
1 file changed, 1 insertion(+), 36 deletions(-)
diff --git a/HACKING b/HACKING
index 988878e..a62cff1 100644
--- a/HACKING
+++ b/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]]
- [elpa] externals/gnugo 0b08017 114/357: [gnugo int] Avoid double list-reverse., (continued)
- [elpa] externals/gnugo 0b08017 114/357: [gnugo int] Avoid double list-reverse., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 08c3378 116/357: [gnugo int] Use ‘gnugo/sgf-create’ more., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 44c2dc4 118/357: [gnugo int] Make ‘gnugo--no-regrets’ take ENDS directly., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 7705eca 126/357: [gnugo int] Drop :monkey COUNT; use node's tree MNUM directly., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 4b24b56 142/357: [gnugo frolic int] Don't go through ‘gnugo-frolic-quit’ for refresh., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo dfc130d 136/357: [gnugo frolic] Add backward/forward branch navigation commands., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo e75eb8a 135/357: [gnugo frolic] Add some branch swizzling commands., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo f279f99 146/357: [gnugo frolic int] Regularize keymap decl + init., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo f810771 162/357: [gnugo int] Decruft: Delete unused local vars., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo b0d3543 171/357: fixup! [gnugo frolic] Add previous/next move navigation commands., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo bcc7fef 166/357: [gnugo maint] Update HACKING; nfc.,
Stefan Monnier <=
- [elpa] externals/gnugo 9589d64 167/357: [gnugo int] Add abstraction: gnugo--as-cc-func, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo d71bab7 174/357: [gnugo int] Add abstractions: gnugo--{user-}play-stone, Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo e3a50ca 014/357: [gnugo int] Use ‘display’ property more., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo c02cc72 030/357: [gnugo maint] Update NEWS file; nfc., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 1dcff48 019/357: [gnugo maint] Revamp "ChangeLog discipline" in HACKING; nfc., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo f0aa02d 033/357: [gnugo int] Zonk unused local var., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 74ff909 038/357: [gnugo] Fix bug: Relax sync regexp., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo f09af15 058/357: [gnugo maint] Reindent; nfc., Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 052ea8a 045/357: [gnugo] New command: ‘A’ (gnugo-switch-to-another), Stefan Monnier, 2020/11/29
- [elpa] externals/gnugo 6e26e76 061/357: [gnugo int] Add abstraction: gnugo--begin-exchange, Stefan Monnier, 2020/11/29