X-Git-Url: http://git.kpe.io/?p=reversi.git;a=blobdiff_plain;f=io.lisp;h=3de7a2aeb202a47f3bb6cd390ac5a6f07ed4befe;hp=c31392e552af4a88eba7683ed367d0effdc40db4;hb=a8b65e823b3a59faba717887aee3a8a4a8cf0a28;hpb=062d6c95c94ac969bd49083dea184c9bb81d6fea diff --git a/io.lisp b/io.lisp index c31392e..3de7a2a 100644 --- a/io.lisp +++ b/io.lisp @@ -2,7 +2,7 @@ ;;;;*************************************************************************** ;;;; ;;;; FILE IDENTIFICATION -;;;; +;;;; ;;;; Name: io.lisp ;;;; Purpose: Basic Input-Output for reversi ;;;; Programer: Kevin Rosenberg based on code by Peter Norvig @@ -10,7 +10,7 @@ ;;;; ;;;; $Id$ ;;;; -;;;; This file is Copyright (c) 2001-2003 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 @@ -22,7 +22,7 @@ (eval-when (:compile-toplevel :load-toplevel :execute) -(let ((square-names +(let ((square-names (cross-product #'concat-symbol '(? A B C D E F G H ?) '(? 1 2 3 4 5 6 7 8 ?)))) @@ -43,10 +43,10 @@ (let (move-list) (dotimes (i (length moves)) (push (format nil "~2d: ~a ~a~%" - (1+ i) - (title-of (nth 1 (elt moves i))) - (symbol-name (88->h8 (nth 0 (elt moves i))))) - move-list)) + (1+ i) + (title-of (nth 1 (elt moves i))) + (symbol-name (88->h8 (nth 0 (elt moves i))))) + move-list)) (setq move-list (nreverse move-list)) (list-to-delimited-string move-list #\space)))) @@ -84,5 +84,5 @@ (format nil "~2d:~2,'0d" min sec))) - - + +