[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 139/255: fixed off-by-one in igs moves & tracking last move
From: |
Eric Schulte |
Subject: |
[elpa] 139/255: fixed off-by-one in igs moves & tracking last move |
Date: |
Sun, 16 Mar 2014 01:02:35 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 695f752368d9a0f733177b80fcabf7b4d0feb1e3
Author: Eric Schulte <address@hidden>
Date: Sat Jun 2 18:55:01 2012 -0600
fixed off-by-one in igs moves & tracking last move
---
back-ends/igs.el | 2 +-
go-board.el | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/back-ends/igs.el b/back-ends/igs.el
index effd428..298117a 100644
--- a/back-ends/igs.el
+++ b/back-ends/igs.el
@@ -252,7 +252,7 @@
(cons (make-keyword color)
(cons :pos
(cons (char-to-num (aref igs 0))
- (read (substring igs 1))))))
+ (1- (read (substring igs 1)))))))
(defun igs-current-game ()
(aget *igs-games* *igs-current-game*))
diff --git a/go-board.el b/go-board.el
index bf86413..b843143 100644
--- a/go-board.el
+++ b/go-board.el
@@ -378,6 +378,7 @@
(defmethod set-go-move ((board board) move)
(with-board board
(apply-turn-to-board (list move))
+ (goto-char (point-of-pos (cddr move)))
(setf *turn* (other-color *turn*))))
(defmethod go-labels ((board board))
- [elpa] 119/255: test cleanup, (continued)
- [elpa] 119/255: test cleanup, Eric Schulte, 2014/03/15
- [elpa] 132/255: moving char-to-num and num-to-char to util, Eric Schulte, 2014/03/15
- [elpa] 115/255: uniform gnugo prefix, Eric Schulte, 2014/03/15
- [elpa] 134/255: notes, Eric Schulte, 2014/03/15
- [elpa] 131/255: transitioning IGS interface to use client mode, Eric Schulte, 2014/03/15
- [elpa] 140/255: board propagates setf'd moves to trackers, Eric Schulte, 2014/03/15
- [elpa] 137/255: setf method for aget, Eric Schulte, 2014/03/15
- [elpa] 133/255: igs using a process filter for asynch processing, Eric Schulte, 2014/03/15
- [elpa] 136/255: two small fixes, Eric Schulte, 2014/03/15
- [elpa] 135/255: stubbed out API interface for go-board, Eric Schulte, 2014/03/15
- [elpa] 139/255: fixed off-by-one in igs moves & tracking last move,
Eric Schulte <=
- [elpa] 138/255: igs can track a current game and apply moves, Eric Schulte, 2014/03/15
- [elpa] 142/255: TODO igs probably needs to periodically ping the server, Eric Schulte, 2014/03/15
- [elpa] 143/255: pass move through board to *back-end*, Eric Schulte, 2014/03/15
- [elpa] 144/255: tests require igs, Eric Schulte, 2014/03/15
- [elpa] 146/255: print igs kibitz strings, Eric Schulte, 2014/03/15
- [elpa] 141/255: beginning of infrastructure for player names & info, Eric Schulte, 2014/03/15
- [elpa] 145/255: periodically ping IGS server to prevent disconnect, Eric Schulte, 2014/03/15
- [elpa] 147/255: igs implements the go back-end API, Eric Schulte, 2014/03/15
- [elpa] 148/255: improved the setf method for aget, Eric Schulte, 2014/03/15
- [elpa] 150/255: more lenient regexp for matching game listing, Eric Schulte, 2014/03/15