📄 slider.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML lang="en">
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META http-equiv="Content-Style-Type" content="text/css">
<meta NAME="Author" CONTENT="Sven K黱zler">
<title>The Slider Game</title>
<style type="text/css">
<!--
h1,h2 {font-family:Garamond,serif}
body {font-family:sans-serif;background: white}
td {text-align: center}
#disclaimer {text-align:justify}
// -->
</style>
</head>
<body>
<h1><a name="top"></a>The
Slider Game</h1>
<p>Version 1.1 (released 2001-05-04)</p>
<h2>Table of Contents</h2>
<ol>
<li><A HREF="#copy">Copyright</A>
<li><A HREF="#about">Credits</A>
<li><A HREF="#purpose">Purpose</A>
<li><A HREF="#install">How to Install</A>
<li><A HREF="#usage">How to Use</A>
<li><A HREF="#relnotes">Famous Last Words</A>
</ol>
<h2><A NAME="copy"></A>Copyright</h2>
<p>Copyright © 1998, 2001 X-Watch Software, Sven Künzler. All rights
reserved.</p>
<p>Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:</p>
<ol>
<li>Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
<li> Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
<li> The end-user documentation included with the redistribution,
if any, must include the following acknowledgment:
<blockquote><p>This product includes software developed by
X-Watch Software (<a href="http://www.xwatch.de/">http://www.xwatch.de/</a>).</p></blockquote>
Alternately, this acknowledgment may appear in the software itself,
if and wherever such third-party acknowledgments normally appear.
<li> The names "Slider" and "X-Watch" must
not be used to endorse or promote products derived from this
software without prior written permission. For written
permission, please contact <a href="mailto:svenk@gmx.net">svenk@gmx.net</a>.
<li> Products derived from this software may not be called "Slider",
nor may "Slider" appear in their name, without prior written
permission of X-Watch Software.
</ol>
<p id="disclaimer">THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL X-WATCH SOFTWARE OR
ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.</p>
<p>Note: The conditions of this license correspond to those of the <a href="http://www.apache.org/">Apache</a> Software License, Version 1.1.</p>
<p><<A HREF="#top">Table of contents</A>></p>
<h2><A NAME="about"></A>Credits</h2>
<P>This program was inspired by publications of the following people
<UL>
<LI>
Michael Karg, TU Wien</LI>
<LI>
Geert-Jan von Opdorp, AI Engineering</LI>
<LI>
Stefan Edelkamp, Universität Freiburg</LI>
</UL>
<p><<A HREF="#top">Table of contents</A>></p>
<h2><A NAME="purpose"></A>Purpose</h2>
<P>Slider implements the famous 3x3-puzzle.
The goal is to order the numbers from 1 to 8 by moving the pieces.
<BR>
<TABLE WIDTH="100%" >
<TR>
<TD>
<TABLE BORDER WIDTH="100%" >
<TR>
<TD>
3
</TD>
<TD>
5
</TD>
<TD>
6
</TD>
</TR>
<TR>
<TD>
1
</TD>
<TD>
8
</TD>
<TD>
2
</TD>
</TR>
<TR>
<TD>
7
</TD>
<TD>
4
</TD>
<TD>
</TD>
</TR>
</TABLE>
</TD>
<TD>—></TD>
<TD>
<TABLE BORDER WIDTH="100%" >
<TR>
<TD>
3
</TD>
<TD>
5
</TD>
<TD>
6
</TD>
</TR>
<TR>
<TD>
1
</TD>
<TD>
8
</TD>
<TD>
</TD>
</TR>
<TR>
<TD>
7
</TD>
<TD>
4
</TD>
<TD>
2
</TD>
</TR>
</TABLE>
</TD>
<TD>—> ... —></TD>
<TD>
<TABLE BORDER WIDTH="100%" >
<TR>
<TD>
1
</TD>
<TD>
2
</TD>
<TD>
3
</TD>
</TR>
<TR>
<TD>
4
</TD>
<TD>
5
</TD>
<TD>
6
</TD>
</TR>
<TR>
<TD>
7
</TD>
<TD>
8
</TD>
<TD>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
<p><<A HREF="#top">Table of contents</A>></p>
<h2><A NAME="install"></A>How to Install</h2>
<p>Just unpack the archive and start Slider.exe.</p>
<P><<A HREF="#top">Table of contents</A>>
<h2><A NAME="usage"></A>How to Use</h2>
<p>After starting Slider, you get a playfield
which is mixed up. You may move the pieces which are next to the gap. The
status line shows how many moves you made so far.</p>
<P>There are also few menu options:
<P><strong>File|New Game</strong> mixes the pieces again
<BR><strong>File|Next Move</strong> shows the next move
for an optimal solution (minimum of moves necessary). When you select this
option the computer has to look up the best solution which can take a little
time.
<BR><strong>File|Solve</strong> computes this best solution
and shows it as an animation. Stop the demo with the <Escape> key.
<BR><strong>File|Quit</strong> This option is experimental.
It exits Slider. Most probably you won't want to use it.
<BR>
<BR><strong>View|Progress</strong> show the progress
during computation. Slows down the algorithm, so you may want to uncheck
this.
<BR>
<BR><strong>Help|Info</strong> Author information and copyright.
<P><<A HREF="#top">Table of contents</A>>
<h2><A NAME="relnotes"></A>Famous Last Words</h2>
<P>Slider was written by <A HREF="mailto:svenk@gmx.net">Sven
Künzler</A>
<p>If you understand german language you
might want to visit my homepage at <A HREF="http://www.xwatch.de/">http://www.xwatch.de/</A>. There is also a small <a href="http://www.xwatch.de/en/delphi/">english section</a> available.</p>
<p>
The goal of this program is not to provide
the ultimate game design but to explore ways to solve the problem automatically.
Though the task is quite simple for a
human being the computerized solving is a somewhat more diffcult.
</p><p>Currently, the algorithm thinks up all possible
moves and their predecessors. Given a starting position, there is a maximum
of 4 possible moves. But each of them has 2 or 3 predecessors and so on,
thus, there is a lot of data to be maintained.
</p>
<P>In the current release, there is much room
for improvements:
<UL>
<LI>
one main goal would be to improve the algorithm.
In the source, there is an example of a worst case scenario. Maybe someone
gets Slider to solve this in less than 14 minutes...</LI>
<LI>
Add an option for 4x4 or 5x5 playfields</LI>
<LI>
Add an animation for the moving of a piece</LI>
<LI>
Add an option to use a graphic as puzzle</LI>
</UL>
<p>If you find bugs in the program or make
improvements to it, please <A HREF="mailto:svenk@gmx.net">send me an email</A>.
</p>
<P><<A HREF="#top">Table of contents</A>>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -