You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
155 lines
6.2 KiB
155 lines
6.2 KiB
15 years ago
|
/*
|
||
|
|
||
|
|
||
|
Patience -- a general class for patience card games
|
||
|
Copyright (C) 1995 Paul Olav Tvete
|
||
|
|
||
|
* Permission to use, copy, modify, and distribute this software and its
|
||
|
* documentation for any purpose and without fee is hereby granted,
|
||
|
* provided that the above copyright notice appear in all copies and that
|
||
|
* both that copyright notice and this permission notice appear in
|
||
|
* supporting documentation.
|
||
|
*
|
||
|
* This file is provided AS IS with no warranties of any kind. The author
|
||
|
* shall have no liability with respect to the infringement of copyrights,
|
||
|
* trade secrets or any patents by this file or any part thereof. In no
|
||
|
* event will the author be liable for any lost revenue or profits or
|
||
|
* other special, indirect and consequential damages.
|
||
|
|
||
|
except for the card bitmaps contained in the files
|
||
|
|
||
|
newface.bm rank.bm suit.bm
|
||
|
|
||
|
which are
|
||
|
|
||
|
|
||
|
(c) Copyright 1989, Donald R. Woods and Sun Microsystems, Inc.
|
||
|
(c) Copyright 1990, David Lemke and Network Computing Devices Inc.
|
||
|
|
||
|
|
||
|
|
||
|
See the statement below for the terms of the copyright.
|
||
|
|
||
|
|
||
|
*/
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/**** Copyright statement from spider/copyright.h follows this line ****/
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
/*
|
||
|
* Copyright 1990 Heather Rose and Sun Microsystems, Inc.
|
||
|
*
|
||
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
||
|
* documentation for any purpose is hereby granted without fee, provided that
|
||
|
* the above copyright notice appear in all copies and that both that copyright
|
||
|
* notice and this permission notice appear in supporting documentation, and
|
||
|
* that the names of Donald Woods and Sun Microsystems not be used in
|
||
|
* advertising or publicity pertaining to distribution of the software without
|
||
|
* specific, written prior permission. Heather Rose and Sun Microsystems not be used in
|
||
|
* advertising or publicity pertaining to distribution of the software without
|
||
|
* specific, written prior permission. Heather Rose and Sun Microsystems make
|
||
|
* no representations about the suitability of this software for any purpose.
|
||
|
* It is provided "as is" without express or implied warranty.
|
||
|
*
|
||
|
* THE ABOVE-NAMED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||
|
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT
|
||
|
* SHALL HEATHER ROSE OR SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||
|
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
||
|
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
||
|
* OF THIS SOFTWARE.
|
||
|
*
|
||
|
* Author:
|
||
|
* Heather Rose
|
||
|
* hrose@sun.com
|
||
|
*
|
||
|
* Sun Microsystems, Inc.
|
||
|
* 2550 Garcia Avenue
|
||
|
* Mountain View, CA 94043
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
* Copyright 1990 David Lemke and Network Computing Devices
|
||
|
*
|
||
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
||
|
* documentation for any purpose is hereby granted without fee, provided that
|
||
|
* the above copyright notice appear in all copies and that both that
|
||
|
* copyright notice and this permission notice appear in supporting
|
||
|
* documentation, and that the name of Network Computing Devices not be
|
||
|
* used in advertising or publicity pertaining to distribution of the
|
||
|
* software without specific, written prior permission. Network Computing
|
||
|
* Devices makes no representations about the suitability of this software
|
||
|
* for any purpose. It is provided "as is" without express or implied
|
||
|
* warranty.
|
||
|
*
|
||
|
* NETWORK COMPUTING DEVICES DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
|
||
|
* SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS,
|
||
|
* IN NO EVENT SHALL NETWORK COMPUTING DEVICES BE LIABLE FOR ANY SPECIAL,
|
||
|
* INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
|
||
|
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
|
||
|
* OR PERFORMANCE OF THIS SOFTWARE.
|
||
|
*
|
||
|
* Author:
|
||
|
* Dave Lemke
|
||
|
* lemke@ncd.com
|
||
|
*
|
||
|
* Network Computing Devices, Inc
|
||
|
* 350 North Bernardo Ave
|
||
|
* Mountain View, CA 94043
|
||
|
*
|
||
|
* @(#)copyright.h 2.2 90/04/27
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
% Copyright (c) 1989, Donald R. Woods and Sun Microsystems, Inc.
|
||
|
%
|
||
|
% Permission to use, copy, modify, distribute, and sell this software and its
|
||
|
% documentation for any purpose is hereby granted without fee, provided that
|
||
|
% the above copyright notice appear in all copies and that both that copyright
|
||
|
% notice and this permission notice appear in supporting documentation, and
|
||
|
% that the names of Donald Woods and Sun Microsystems not be used in
|
||
|
% advertising or publicity pertaining to distribution of the software without
|
||
|
% specific, written prior permission. Donald Woods and Sun Microsystems make
|
||
|
% no representations about the suitability of this software for any purpose.
|
||
|
% It is provided "as is" without express or implied warranty.
|
||
|
%
|
||
|
% THE ABOVE-NAMED DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||
|
% INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT
|
||
|
% SHALL DONALD WOODS OR SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||
|
% CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
||
|
% DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||
|
% TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
||
|
% OF THIS SOFTWARE.
|
||
|
%
|
||
|
% History: Spider is a solitaire card game that can be found in various books
|
||
|
% of same; the rules are presumed to be in the public domain. The author's
|
||
|
% first computer implementation was on the Stanford Artificial Intelligence Lab
|
||
|
% system (SAIL). It was later ported to the Xerox Development Environment.
|
||
|
% The card images are loosely based on scanned-in images but were largely
|
||
|
% redrawn by the author with help from Larry Rosenberg.
|
||
|
%
|
||
|
% This program is written entirely in NeWS and runs on OPEN WINDOWS 1.0.
|
||
|
% It could be made to run much faster if parts of it were written in C, using
|
||
|
% NeWS mainly for its display and input capabilities, but that is left as an
|
||
|
% exercise for the reader. Spider may also run with little or no modification
|
||
|
% on subsequent releases of OPEN WINDOWS, but no guarantee is made on this
|
||
|
% point (nor any other; see above!). To run Spider, feed this file to 'psh'.
|
||
|
%
|
||
|
% Author: Don Woods
|
||
|
% woods@sun.com
|
||
|
%
|
||
|
% Sun Microsystems, Inc.
|
||
|
% 2550 Garcia Avenue
|
||
|
% Mountain View, CA 94043
|
||
|
*/
|