X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=io.lisp;h=c31392e552af4a88eba7683ed367d0effdc40db4;hb=4c844bde197de54c0343f7ab500153278f859ec6;hp=1837c18027bd413277828fc33b97d3b286cea2f8;hpb=1758cfb593196dd65c70199aa1ebd90cbd6e7ee5;p=reversi.git diff --git a/io.lisp b/io.lisp index 1837c18..c31392e 100644 --- a/io.lisp +++ b/io.lisp @@ -8,9 +8,9 @@ ;;;; Programer: Kevin Rosenberg based on code by Peter Norvig ;;;; Date Started: 1 Nov 2001 ;;;; -;;;; $Id: io.lisp,v 1.2 2002/10/25 09:23:39 kevin Exp $ +;;;; $Id$ ;;;; -;;;; This file is Copyright (c) 2001-2002 by Kevin M. Rosenberg +;;;; This file is Copyright (c) 2001-2003 by Kevin M. Rosenberg ;;;; and Copyright (c) 1998-2002 Peter Norvig ;;;; ;;;; Reversi users are granted the rights to distribute and use this software @@ -18,8 +18,7 @@ ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;;*************************************************************************** -(in-package :reversi) -(declaim (optimize (safety 1) (debug 3) (speed 3))) +(in-package #:reversi) (eval-when (:compile-toplevel :load-toplevel :execute) @@ -27,6 +26,7 @@ (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." @@ -36,7 +36,7 @@ (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)