projects
/
reversi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
200c956
)
r4361: Automatic commit for debian_version_1_0_3-1
author
Kevin M. Rosenberg
<kevin@rosenberg.net>
Thu, 3 Apr 2003 16:29:52 +0000
(16:29 +0000)
committer
Kevin M. Rosenberg
<kevin@rosenberg.net>
Thu, 3 Apr 2003 16:29:52 +0000
(16:29 +0000)
io-clim.lisp
patch
|
blob
|
history
diff --git
a/io-clim.lisp
b/io-clim.lisp
index af7300837d9b5fc19539cf3b9502bc34edeeb586..e0146f5bb825bb0133edc486ae57fc19a75795cf 100644
(file)
--- a/
io-clim.lisp
+++ b/
io-clim.lisp
@@
-8,7
+8,7
@@
;;;; Programer: Kevin M. Rosenberg
;;;; Date Started: 1 Nov 2001
;;;;
;;;; Programer: Kevin M. Rosenberg
;;;; Date Started: 1 Nov 2001
;;;;
-;;;; $Id: io-clim.lisp,v 1.
8 2003/04/01 18:07:35
kevin Exp $
+;;;; $Id: io-clim.lisp,v 1.
9 2003/04/03 16:29:52
kevin Exp $
;;;;
;;;; This file is Copyright (c) 2001-2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file is Copyright (c) 2001-2002 by Kevin M. Rosenberg
;;;;
@@
-345,9
+345,13
@@
(format stream "Valid Moves~%~A"
(list-to-delimited-string legal-moves #\space)))))
(when (null (player game))
(format stream "Valid Moves~%~A"
(list-to-delimited-string legal-moves #\space)))))
(when (null (player game))
- (if (plusp (final-result game))
- (format stream "Black wins by ~d!" (final-result game))
- (format stream "White wins by ~d!" (- 0 (final-result game)))))))))
+ (cond
+ ((zerop (final-result games))
+ (format stream "It's a draw!"))
+ ((plusp (final-result game))
+ (format stream "Black wins by ~d!" (final-result game)))
+ (t
+ (format stream "White wins by ~d!" (- 0 (final-result game))))))))))