📄 cccusing.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Coffee Chinese Chess 0</title>
<base target="_self">
</head>
<body bgcolor="#ffffff" text="#000000" link="#000080" vlink="#800000" alink="#ff0000">
<h2 align="center"><b><IMG align=middle border=0 height=57 src="coffeecc.gif" width=47>
<font color="#000080"> Coffee Chinese Chess</font></b></h2>
<p> </p>
<p><b>I. <font face="times new roman">How to use Coffee Chinese Chess Applet
</font></b></p>
<p><font face="times new roman">1. Unzip coffeecc.zip which contains</font></p>
<ul>
<li><font face="times new roman">coffeecc.jar (Need to upload this file to
your web site)</font>
<li><font face="times new roman">piece.gif (Need to upload this file to your
web site, you may choose other from directory demo)</font>
<li><font face="times new roman">audio/*.au (Sound files - need to upload all
directory. Otherwise, the game will have no sound. You may delete or modify
some of them. For example, if you do not want sound in background, delete
file <i>background.au</i>)</font>
<li><font face="times new roman">demo/*.* (Directory containing peace and board
pictures for demo, you may choose the best one for your web site)</font>
<li><font face="times new roman">cccmain.htm (Main HTML file - open it first
for instruction and demos)</font>
<li><font face="times new roman">ccc*.htm (Some other HTML files for instruction and
demos)</font>
<li><font face="times new roman">coffeecc.gif (Logo of this game)</font>
<li><font face="times new roman">game*.txt (Some examples of games written in
WXF format for program loading)</font></li>
</ul>
<blockquote>
<p><font face="times new roman">Do not unzip the jar file,
nor add any other files into it (because some browsers like Netscape could work
faultily).</font></p>
</blockquote>
<p><font face="times new roman">2. Upload coffeecc.jar, piece.gif, sound
directory to your web site.</font></p>
<p><font face="times new roman">3. Add following code to your html</font> (the
simplest sample HTML source):</p>
<p>Sample HTML source 1:</p>
<blockquote>
<pre><font size="2"><font COLOR="#0000c0"><applet archive=</font><font COLOR="#000000">coffeecc.jar</font><font COLOR="#0000c0"> code=</font><font COLOR="#000000">coffeecc.class</font><font COLOR="#0000c0"> width=</font><font COLOR="#000000">450</font><font COLOR="#0000c0"> height=</font><font COLOR="#000000">370</font><font COLOR="#0000c0">></font></font><font COLOR="#0000c0" size="2"></applet></font></pre>
</blockquote>
<p><font face="times new roman">4. Customize parameters as the following part.<br>
</font></p>
<p> </p>
<p><b>II. Setup parameters</b></p>
<p><b>Note:</b></p>
<ul>
<li>The default values of parameters are good in normal
cases. You need not do anything for them. Those default values will make you
work more easily. Use as many as possible.
<li>Some parameters can be set by one of two or three
names, as well as their values. Choose the most convenient.
<li>There are some ways to do the same work (e.g. set up
the initial board). Choose the most convenient.
<li>Some parameters totally compatible to some other viewers, like <i>chessviewer</i>,
<i>xqviewer</i>.
<li>Beware when you set some parameters, your users may
not be able to setback to their preferred ones. For example, if you turn off
all control panels, there is no way to undo or redo moves.
<li>You can write any integer number in decimal or
hexadecimal or octal form.
<li>You may need to re-size applet after setting up new parameters.</li>
</ul>
<p> </p>
<p><b>Parameter tables:</b></p>
<p><b>Parameters for appearances</b></p>
<table border="1" cellpadding="2" cellspacing="0" width="97%">
<tr>
<td width="36%"><b>Description</b></td>
<td width="26%"><b>Parameter</b></td>
<td width="19%"><b>Value</b></td>
<td width="19%"><b>Default value</b></td>
</tr>
<tr>
<td width="36%">Turn on / off sound</td>
<td width="26%">sound</td>
<td width="19%">0/off, 1/on</td>
<td width="19%">off</td>
</tr>
<tr>
<td width="36%">Turn on / off notation tag</td>
<td width="26%">notationtag</td>
<td width="19%">0/off, 1/on</td>
<td width="19%">on</td>
</tr>
<tr>
<td width="36%">Turn off all control panels (0) or use control panel 1, 2 or
3</td>
<td width="26%">controlpanel</td>
<td width="19%">0, 1, 2, 3</td>
<td width="19%">1</td>
</tr>
<tr>
<td width="36%">Turn on the answer button and set game in answer mode</td>
<td width="26%">answer / answerbutton</td>
<td width="19%">0/off, 1/on</td>
<td width="19%">off</td>
</tr>
<tr>
<td width="36%">Turn on / off start button</td>
<td width="26%">startbutton</td>
<td width="19%">0/off, 1/on</td>
<td width="19%">on</td>
</tr>
<tr>
<td width="36%">Turn on / off side pointer</td>
<td width="26%">sidepointer</td>
<td width="19%">0/off, 1/on</td>
<td width="19%">on</td>
</tr>
<tr>
<td width="36%">Turn on / off the copyright line (the bottom line - fair
function, isn't it?)</td>
<td width="26%">copyright</td>
<td width="19%">0/off, 1/on</td>
<td width="19%">on</td>
</tr>
<tr>
<td width="36%">Set board background color</td>
<td width="26%">boardbackgroundcolor</td>
<td width="19%">integer of color</td>
<td width="19%">0xff (blue)</td>
</tr>
<tr>
<td width="36%">Set board fore color</td>
<td width="26%">boardforecolor</td>
<td width="19%">integer of color</td>
<td width="19%">0xffffff (white)</td>
</tr>
<tr>
<td width="36%">Set background color</td>
<td width="26%">backgroundcolor</td>
<td width="19%">integer of color</td>
<td width="19%">0xffffff (white)</td>
</tr>
<tr>
<td width="36%">Set game fore color of game info line (the top line)</td>
<td width="26%">gameinfoforecolor</td>
<td width="19%">integer of color</td>
<td width="19%">0x0 (black)</td>
</tr>
<tr>
<td width="36%">Piece image file name</td>
<td width="26%">pieceimage</td>
<td width="19%">a picture file name</td>
<td width="19%">piece.gif</td>
</tr>
<tr>
<td width="36%">Board image file name</td>
<td width="26%">boardimage</td>
<td width="19%">a picture file name</td>
<td width="19%"> </td>
</tr>
<tr>
<td width="36%">Turn on / off copy button (<font color="#FF0000">new</font>)</td>
<td width="26%">copy</td>
<td width="19%">0/off, 1/on</td>
<td width="19%">on</td>
</tr>
</table>
<p>
</p>
<p><b>Parameters for setting players</b></p>
<table border="1" cellpadding="2" cellspacing="0" width="97%">
<tr>
<td width="36%"><b>Description</b></td>
<td width="26%"><b>Parameter</b></td>
<td width="19%"><b>Value</b></td>
<td width="19%"><b>Default value</b></td>
</tr>
<tr>
<td width="36%">Who moves first</td>
<td width="26%">movefirst / whomovefirst</td>
<td width="19%">1 / red / white, 2 / blue / black</td>
<td width="19%">1</td>
</tr>
<tr>
<td width="36%">Name of red player</td>
<td width="26%">whiteplayer / redplayer</td>
<td width="19%">a string</td>
<td width="19%">blank</td>
</tr>
<tr>
<td width="36%">Name of blue player</td>
<td width="26%">blackplayer / blueplayer</td>
<td width="19%">a string</td>
<td width="19%">blank</td>
</tr>
<tr>
<td width="36%">Kind of red player</td>
<td width="26%">whiteplayerkind / redplayerkind</td>
<td width="19%">0 /human, 1/computer</td>
<td width="19%">human</td>
</tr>
<tr>
<td width="36%">Kind of blue player</td>
<td width="26%">blackplayerkind/blueplayerkind</td>
<td width="19%">0/human, 1/compute</td>
<td width="19%">computer</td>
</tr>
<tr>
<td width="36%">Game information (top line)</td>
<td width="26%">gameinfo / gameinformation</td>
<td width="19%">a string</td>
<td width="19%">blank</td>
</tr>
</table>
<p>
</p>
<p><b>Parameters for setting game levels</b></p>
<table border="1" cellpadding="2" cellspacing="0" width="97%">
<tr>
<td width="36%"><b>Description</b></td>
<td width="26%"><b>Parameter</b></td>
<td width="19%"><b>Value</b></td>
<td width="19%"><b>Default value</b></td>
</tr>
<tr>
<td width="36%">Activate or turn off interactive (like a picture of board game)</td>
<td width="26%">active</td>
<td width="19%">0/off, 1/on</td>
<td width="19%">on</td>
</tr>
<tr>
<td width="36%">Set depth for move computing. The deeper you set, the better
the move is found, but the longer it takes.</td>
<td width="26%">depth</td>
<td width="19%">integer from 1</td>
<td width="19%">5</td>
</tr>
</table>
<p>
</p>
<p><b>Parameters for opening book</b></p>
<table border="1" cellpadding="2" cellspacing="0" width="97%">
<tr>
<td width="36%"><b>Description</b></td>
<td width="26%"><b>Parameter</b></td>
<td width="19%"><b>Value</b></td>
<td width="19%"><b>Default value</b></td>
</tr>
<tr>
<td width="36%">Open a game with all moves of a opening book (one of 145
opening book)</td>
<td width="26%">openingbook</td>
<td width="19%">integer from 0 to 144</td>
<td width="19%"> </td>
</tr>
</table>
<p>
</p>
<p><b>Parameters for input game</b></p>
<table border="1" cellpadding="2" cellspacing="0" width="97%">
<tr>
<td width="36%"><b>Description</b></td>
<td width="26%"><b>Parameter</b></td>
<td width="19%"><b>Value</b></td>
<td width="19%"><b>Default value</b></td>
</tr>
<tr>
<td width="36%">Open a game and stay at move number</td>
<td width="26%">movebegin</td>
<td width="19%">integer</td>
<td width="19%">1</td>
</tr>
<tr>
<td width="36%">Set board (see details below)</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -