[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 04/07: [gnugo int] Use ‘gnugo /sgf-create’ more.
From: |
Thien-Thi Nguyen |
Subject: |
[elpa] 04/07: [gnugo int] Use ‘gnugo /sgf-create’ more. |
Date: |
Sat, 05 Apr 2014 11:09:30 +0000 |
ttn pushed a commit to branch master
in repository elpa.
commit 88e429efb99939841f5518eb3df61264c23dd130
Author: Thien-Thi Nguyen <address@hidden>
Date: Sat Apr 5 10:51:58 2014 +0200
[gnugo int] Use ‘gnugo/sgf-create’ more.
* packages/gnugo/gnugo.el (gnugo-board-mode): ...here,
for uninitialized board setup, instead of manual consing.
---
packages/gnugo/gnugo.el | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/packages/gnugo/gnugo.el b/packages/gnugo/gnugo.el
index fe8fde6..c135824 100644
--- a/packages/gnugo/gnugo.el
+++ b/packages/gnugo/gnugo.el
@@ -2068,9 +2068,10 @@ In this mode, keys do not self insert.
(gnugo-put :rparen-ov (let ((ov (make-overlay 1 1)))
(overlay-put ov 'display ")")
ov))
- (let ((tree (vector (list (list '(:FF . 4) '(:GM . 1))))))
+ (let* ((coll (gnugo/sgf-create "(;FF[4]GM[1])" t))
+ (tree (car coll)))
(gnugo-put :sgf-gametree tree)
- (gnugo-put :sgf-collection (list tree))
+ (gnugo-put :sgf-collection coll)
(gnugo-put :monkey (vector (aref tree 0) 0 0)))
(gnugo--SZ! board-size)
(loop with gb = (gnugo--blackp (gnugo-other user-color))
- [elpa] branch master updated (0a73626 -> 3f390d3), Thien-Thi Nguyen, 2014/04/05
- [elpa] 02/07: [gnugo int] Avoid double list-reverse., Thien-Thi Nguyen, 2014/04/05
- [elpa] 03/07: [gnugo] Support SGF[4] parsing from string data., Thien-Thi Nguyen, 2014/04/05
- [elpa] 04/07: [gnugo int] Use ‘gnugo /sgf-create’ more.,
Thien-Thi Nguyen <=
- [elpa] 06/07: [gnugo int] Make ‘gnug o--no-regrets’ take ENDS directly., Thien-Thi Nguyen, 2014/04/05
- [elpa] 07/07: [gnugo] Declare dependency on ‘ascii-art-to-unicode’., Thien-Thi Nguyen, 2014/04/05
- [elpa] 05/07: [gnugo int] Add abstractions: gnugo--{, set-}tree-ends, Thien-Thi Nguyen, 2014/04/05
- [elpa] 01/07: [gnugo int] Specify STREAM to ‘pp’ directly., Thien-Thi Nguyen, 2014/04/05