projects
/
reversi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r4847: Auto commit for Debian build
[reversi.git]
/
io-clim.lisp
diff --git
a/io-clim.lisp
b/io-clim.lisp
index e0146f5bb825bb0133edc486ae57fc19a75795cf..7516869528412c8732f8576c8d4ea1d7b1dd6f04 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.
9 2003/04/03 16:29:52
kevin Exp $
+;;;; $Id: io-clim.lisp,v 1.
12 2003/05/06 15:53:47
kevin Exp $
;;;;
;;;; This file is Copyright (c) 2001-2002 by Kevin M. Rosenberg
;;;;
;;;;
;;;; This file is Copyright (c) 2001-2002 by Kevin M. Rosenberg
;;;;
@@
-17,7
+17,9
@@
;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;;***************************************************************************
;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
;;;;***************************************************************************
-(in-package :reversi)
+(in-package #:reversi)
+
+#+mcclim (shadowing-import 'clim-internals::stream-set-cursor-position)
(defparameter cell-inner-width 40)
(defparameter cell-inner-height 40)
(defparameter cell-inner-width 40)
(defparameter cell-inner-height 40)
@@
-346,7
+348,7
@@
(list-to-delimited-string legal-moves #\space)))))
(when (null (player game))
(cond
(list-to-delimited-string legal-moves #\space)))))
(when (null (player game))
(cond
- ((zerop (final-result game
s
))
+ ((zerop (final-result game))
(format stream "It's a draw!"))
((plusp (final-result game))
(format stream "Black wins by ~d!" (final-result game)))
(format stream "It's a draw!"))
((plusp (final-result game))
(format stream "Black wins by ~d!" (final-result game)))
@@
-675,10
+677,7
@@
(+ label-height (* cell-height i)
half-cell-inner-height))
:align-x :left :align-y :center))
(+ label-height (* cell-height i)
half-cell-inner-height))
:align-x :left :align-y :center))
- (if (find-package 'mcclim)
- (setf (stream-set-cursor-position stream)
- (values label-width label-height))
- (stream-set-cursor-position stream label-width label-height))
+ (stream-set-cursor-position stream label-width label-height)
(surrounding-output-with-border (stream)
(formatting-table (stream :y-spacing 0 :x-spacing 0)
(dotimes (row 8)
(surrounding-output-with-border (stream)
(formatting-table (stream :y-spacing 0 :x-spacing 0)
(dotimes (row 8)