[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 206/255: ensure prisoners are 0 at the start of a new game
From: |
Eric Schulte |
Subject: |
[elpa] 206/255: ensure prisoners are 0 at the start of a new game |
Date: |
Sun, 16 Mar 2014 01:02:49 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 89e86027c773ad4231cde71ec994c778b7a825ba
Author: Eric Schulte <address@hidden>
Date: Tue May 21 16:40:18 2013 -0600
ensure prisoners are 0 at the start of a new game
---
go-board.el | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/go-board.el b/go-board.el
index ca731c8..a4f8c67 100644
--- a/go-board.el
+++ b/go-board.el
@@ -303,7 +303,8 @@
"\n\n"
comment)))
(go-board-paint)
- (goto-char point))))
+ (goto-char point)))
+ buffer)
(defun go-board (back-end &rest trackers)
(let ((buffer (generate-new-buffer "*GO*")))
@@ -323,10 +324,11 @@
(mapcar (lambda (tr) (setf (go-size tr) *size*)) trackers)
(set (make-local-variable '*history*)
(list (board-to-pieces (make-board *size*))))
- (set (make-local-variable '*trackers*) trackers)
- (set (make-local-variable '*trackers*) trackers)
- (update-display (current-buffer)))
- (pop-to-buffer buffer)))
+ (set (make-local-variable '*trackers*) trackers))
+ (pop-to-buffer buffer)
+ (plist-put *black* :prisoners 0)
+ (plist-put *white* :prisoners 0)
+ (update-display buffer)))
;;; User input
- [elpa] 199/255: marking captured territory when game ends, (continued)
- [elpa] 199/255: marking captured territory when game ends, Eric Schulte, 2014/03/15
- [elpa] 197/255: use new mark machinery to apply labels, Eric Schulte, 2014/03/15
- [elpa] 195/255: query backend for territory, Eric Schulte, 2014/03/15
- [elpa] 201/255: print score after marking territory, Eric Schulte, 2014/03/15
- [elpa] 189/255: replace flet with cl-flet, Eric Schulte, 2014/03/15
- [elpa] 190/255: set level (mainly for playing GNUGO), Eric Schulte, 2014/03/15
- [elpa] 204/255: prefix external names with package name, Eric Schulte, 2014/03/15
- [elpa] 165/255: working on placing backgrounds behind pieces, Eric Schulte, 2014/03/15
- [elpa] 202/255: added interface function to view an SGF file, Eric Schulte, 2014/03/15
- [elpa] 205/255: update the README, Eric Schulte, 2014/03/15
- [elpa] 206/255: ensure prisoners are 0 at the start of a new game,
Eric Schulte <=
- [elpa] 208/255: support for viewing lists in a buffer, Eric Schulte, 2014/03/15
- [elpa] 207/255: robustly handle prematurely quitting process, Eric Schulte, 2014/03/15
- [elpa] 209/255: adding curry, rcurry and compose helpers, Eric Schulte, 2014/03/15
- [elpa] 213/255: include headers in width calculation, Eric Schulte, 2014/03/15
- [elpa] 215/255: smaller ldots, Eric Schulte, 2014/03/15
- [elpa] 200/255: refresh the go board, Eric Schulte, 2014/03/15
- [elpa] 214/255: refresh list every time the buffer changes size, Eric Schulte, 2014/03/15
- [elpa] 212/255: bug fix, wrong function name, Eric Schulte, 2014/03/15
- [elpa] 225/255: quit observing IGS game w/o closing connection, Eric Schulte, 2014/03/15
- [elpa] 171/255: bigger stones, Eric Schulte, 2014/03/15