[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 20/255: alright "i" *is* a valid position identifier
From: |
Eric Schulte |
Subject: |
[elpa] 20/255: alright "i" *is* a valid position identifier |
Date: |
Sun, 16 Mar 2014 01:02:11 +0000 |
eschulte pushed a commit to branch go
in repository elpa.
commit 0d1f564c2dc9a67fe8af5337bece82737a924499
Author: Eric Schulte <address@hidden>
Date: Tue May 15 18:46:41 2012 -0400
alright "i" *is* a valid position identifier
---
sgf-files/3-4-joseki.sgf | 16 ++++++++--------
sgf.el | 6 +-----
2 files changed, 9 insertions(+), 13 deletions(-)
diff --git a/sgf-files/3-4-joseki.sgf b/sgf-files/3-4-joseki.sgf
index 08e048a..644600c 100644
--- a/sgf-files/3-4-joseki.sgf
+++ b/sgf-files/3-4-joseki.sgf
@@ -1,12 +1,12 @@
(;EV[simple joseki]
S[19]
C[Here is a simple 3-4 joseki used mainly as an example in tests.]
- ;B[qc]
- ;W[re]
- ;B[pd]
- ;W[qg]
- ;B[kc]
- ;W[rl]
- ;B[rd]
+ ;B[pc]
;W[qe]
- ;B[sd])
+ ;B[pd]
+ ;W[pg]
+ ;B[jc]
+ ;W[ql]
+ ;B[qd]
+ ;W[pe]
+ ;B[rd])
diff --git a/sgf.el b/sgf.el
index 9bd8891..5a8c207 100644
--- a/sgf.el
+++ b/sgf.el
@@ -165,11 +165,7 @@
(cond
((or (< char ?A) (< ?z char))
(error "sgf: invalid char %s" char))
- ((< char ?I) (+ 26 (- char ?A)))
- ((= char ?I) (error "sgf: \"I\" is an invalid char"))
- ((< char ?a) (+ 25 (- char ?A)))
- ((< char ?i) (- char ?a))
- ((= char ?i) (error "sgf: \"i\" is an invalid char"))
+ ((< char ?a) (+ 26 (- char ?A)))
(t (- (- char ?a) 1))))
(defun process-position (position-string)
- [elpa] 08/255: parsing simple trees, (continued)
- [elpa] 08/255: parsing simple trees, Eric Schulte, 2014/03/15
- [elpa] 06/255: passing all tests, Eric Schulte, 2014/03/15
- [elpa] 07/255: some fixes, Eric Schulte, 2014/03/15
- [elpa] 11/255: ignore data directory, Eric Schulte, 2014/03/15
- [elpa] 14/255: processing simple/core properties, Eric Schulte, 2014/03/15
- [elpa] 13/255: splitting into sections & stubbing out parsing, Eric Schulte, 2014/03/15
- [elpa] 12/255: headers, Eric Schulte, 2014/03/15
- [elpa] 15/255: board display, Eric Schulte, 2014/03/15
- [elpa] 22/255: example sgf file generated using gcoban, Eric Schulte, 2014/03/15
- [elpa] 17/255: not using "I" as an index, Eric Schulte, 2014/03/15
- [elpa] 20/255: alright "i" *is* a valid position identifier,
Eric Schulte <=
- [elpa] 16/255: cleaned up board printing, Eric Schulte, 2014/03/15
- [elpa] 09/255: parsing more complex trees, Eric Schulte, 2014/03/15
- [elpa] 19/255: moving games/ -> sgf-files/, Eric Schulte, 2014/03/15
- [elpa] 10/255: helper functions, Eric Schulte, 2014/03/15
- [elpa] 24/255: right and left implemented but buggy, Eric Schulte, 2014/03/15
- [elpa] 23/255: more complex but more intuitive and useful `range', Eric Schulte, 2014/03/15
- [elpa] 21/255: display sgf file as a go board in a buffer, Eric Schulte, 2014/03/15
- [elpa] 25/255: right and left are mainly working, Eric Schulte, 2014/03/15
- [elpa] 29/255: q now quits a sgf display buffer, Eric Schulte, 2014/03/15
- [elpa] 28/255: adding a major mode for board navigation keys, Eric Schulte, 2014/03/15