projects
/
reversi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r5141: Auto commit for Debian build
[reversi.git]
/
io.lisp
diff --git
a/io.lisp
b/io.lisp
index 1d3d2c81781eccb6169b1b3d61467e83b981637d..635f90c0c76aa46ca8dc998d00e503183e804974 100644
(file)
--- a/
io.lisp
+++ b/
io.lisp
@@
-8,7
+8,7
@@
;;;; Programer: Kevin Rosenberg based on code by Peter Norvig
;;;; Date Started: 1 Nov 2001
;;;;
;;;; Programer: Kevin Rosenberg based on code by Peter Norvig
;;;; Date Started: 1 Nov 2001
;;;;
-;;;; $Id: io.lisp,v 1.
4 2003/06/12 12:42:13
kevin Exp $
+;;;; $Id: io.lisp,v 1.
6 2003/06/17 05:47:18
kevin Exp $
;;;;
;;;; This file is Copyright (c) 2001-2003 by Kevin M. Rosenberg
;;;; and Copyright (c) 1998-2002 Peter Norvig
;;;;
;;;; This file is Copyright (c) 2001-2003 by Kevin M. Rosenberg
;;;; and Copyright (c) 1998-2002 Peter Norvig
@@
-26,6
+26,7
@@
(cross-product #'concat-symbol
'(? A B C D E F G H ?)
'(? 1 2 3 4 5 6 7 8 ?))))
(cross-product #'concat-symbol
'(? A B C D E F G H ?)
'(? 1 2 3 4 5 6 7 8 ?))))
+ (declare (type list square-names))
(defun h8->88 (str)
"Convert from alphanumeric to numeric square notation."
(defun h8->88 (str)
"Convert from alphanumeric to numeric square notation."
@@
-35,7
+36,7
@@
(defun 88->h8 (num)
"Convert from numeric to alphanumeric square notation."
(if (valid-p num)
(defun 88->h8 (num)
"Convert from numeric to alphanumeric square notation."
(if (valid-p num)
- (
elt square-names num
)
+ (
nth num square-names
)
num)))
(defun moves-to-string (moves)
num)))
(defun moves-to-string (moves)