📄 cccpurpose.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 - Demos of some purposes</font></b></h2>
<p align="left"><b>I. As a board picture</b></p>
<p align="center"><APPLET code=coffeecc.class height=220 width=192 archive="coffeecc.jar">
<PARAM NAME="notationtag" VALUE="0">
<PARAM NAME="controlpanel" VALUE="0">
<PARAM NAME="active" VALUE="0">
<PARAM NAME="wxffilename" VALUE="game3.txt">
<PARAM NAME="copyright" VALUE="0">
<PARAM NAME="pieceimage" VALUE="demo/piecesmall.gif">
</APPLET>
</p>
<p align="left">The program reads the content of game from text file <A href="game3.txt">game3.txt</A>. The users
can see the game without playing or interacting with it. When you want to update
a new
game, simply change and upload this text file.</p>
<p align="left">If you do not want to change the content frequently, use parameter
<i>
position</i> or <i> board </i> or <i> piece </i> instead.</p>
<p align="left"> </p>
<p align="left"><b>II. As a game viewer</b></p>
<p align="left">1. This applet reads the content of game from text file <A href="game1.txt">game1.txt</A>.
This is a whole real game. There is
enough information in this file. You may open this game in the middle by setting up
parameter <i>movebegin</i> to any number of moves. The setting control panel 2 and start
button off seem to be the most suitable for the game viewer.</p>
<p align="center"><APPLET code=coffeecc.class height=311 width=360 archive="coffeecc.jar">
<PARAM NAME="blueplayerkind" VALUE="0">
<PARAM NAME="controlpanel" VALUE="2">
<PARAM NAME="wxffilename" VALUE="game1.txt">
<PARAM NAME="copyright" VALUE="0">
<PARAM NAME="pieceimage" VALUE="demo/piecesmall.gif">
<PARAM NAME="sound" VALUE="on">
<PARAM NAME="startbutton" VALUE="off">
<PARAM NAME="movebegin" VALUE="15">
</APPLET>
</p>
<p align="left">2. This applet reads the content of game from text file <A href="game2.txt">game2.txt</A>.
This is a part of real game, starting from the middle. And the program has to
set up board based on information retrieving from SETUP statement.</p>
<p align="center"><APPLET code=coffeecc.class height=311 width=360 archive="coffeecc.jar">
<PARAM NAME="blueplayerkind" VALUE="0">
<PARAM NAME="controlpanel" VALUE="2">
<PARAM NAME="wxffilename" VALUE="game2.txt">
<PARAM NAME="copyright" VALUE="0">
<PARAM NAME="pieceimage" VALUE="demo/piecesmall.gif">
<PARAM NAME="sound" VALUE="on">
<PARAM NAME="startbutton" VALUE="off">
<PARAM NAME="copy" VALUE="off">
<PARAM NAME="movebegin" VALUE="10">
</APPLET>
</p>
<p align="left">3. Read game from parametter</p>
<p align="center"><APPLET code=coffeecc.class height=311 width=360 archive="coffeecc.jar">
<PARAM NAME="pieceimage" VALUE="demo/piecesmall.gif">
<param name="blueplayerkind" value="0">
<param name="wxfgame" value="FORMAT WXF<br>GAME Li Laiqun(D)Xu Yinchuan<br>TIME 0; 0<br>RED Li Laiqun;;;<br>BLACK Xu Yinchuan;;;<br>DATE 09-01-1999<br>RESULT 0.5-0.5<br>EVENT 5 Ram cup; 1999<br>START{<br> 1. H2+3 P7+1 2. C8.6 H8+7 <br> 3. H8+7 H2+1 4. R9.8 R1.2 5. P7+1 C2+4 6. E3+5 C8.9 7. R1.2 R9.8 8. H7+6 C2-1 9. H6-7 C2+1 10. H7+6 C2-1 11. H6-7 C2+1 }END">
<PARAM NAME="copyright" VALUE="0">
</applet>
</p>
<p align="left"> </p>
<p align="left"><b>III. Practice opening book</b></p>
<p align="left">You can display one of the 145 opening books. Name it and add more
comment.</p>
<p align="center"><APPLET code=coffeecc.class height=243 width=360 archive="coffeecc.jar">
<PARAM NAME="openingbook" VALUE="0">
<PARAM NAME="controlpanel" VALUE="1">
<PARAM NAME="pieceimage" VALUE="demo/piecesmall.gif">
<PARAM NAME="sound" VALUE="on">
</APPLET>
</p>
<p align="center"><i>One of common opening books.</i>
</p>
<p align="left"> </p>
<p align="left"><b>IV. Practice end game</b></p>
<p align="left">a) Simple case</p>
<p align="center"><APPLET code=coffeecc.class height=260 width=195 archive="coffeecc.jar">
<PARAM NAME="notationtag" VALUE="0">
<PARAM NAME="controlpanel" VALUE="3">
<PARAM NAME="piece" VALUE="Ke0, Eg0, Ce2, Rg6, Hi6, ad9, kf9, ae8, hi8, rf5, re3">
<PARAM NAME="pieceimage" VALUE="demo/piecesmall.gif">
<PARAM NAME="sound" VALUE="on">
<PARAM NAME="startbutton" VALUE="0">
</APPLET>
</p>
<p align="center"><i>This game is easy, no need solution.</i>
</p>
<p align="left">b) If you have one solution</p>
<p align="left">The best way, let users try solving first; then they could get
the solution by clicking the Answer button. To do this, turn on the Answer button.</p>
<p align="center"><APPLET code=coffeecc.class height=239 width=339 archive="coffeecc.jar">
<PARAM NAME="controlpanel" VALUE="2">
<PARAM NAME="answer" VALUE="1">
<PARAM NAME="boardbackcolor" VALUE="0">
<PARAM NAME="piece" VALUE="Ke1Cc6Re6kf9rf3">
<PARAM NAME="copyright" VALUE="0">
<PARAM NAME="pieceimage" VALUE="demo/piecesmall.gif">
<PARAM NAME="movelist" VALUE="R5+3,K6+1,C7.1,R6+2,K5+1,R6-5,C1+3,R6+5,C1.4,R6.8,R5-5,R8-1,K5-1,R8+1,K5-1,R8+1,K5+1,R8-7,R5.4,R8.6,C4-2,K6-1">
<PARAM NAME="sound" VALUE="on">
<PARAM NAME="startbutton" VALUE="0">
</APPLET>
</p>
<p align="center"><i>This game may be difficult with somebody. Solution needed.<br>
Users
will click the Answer button for getting it.</i></p>
<p align="left"> </p>
<p align="left">c) If you have more than one solution</p>
<p align="left">Set the first solution by parameter movelist as usual, the
second by movelist1, the third by movelist2 and so on. The number and
total of solutions will be displayed on the Answer button after the first click. See
the puzzle (a) below.</p>
<p align="left"> </p>
<p align="left"><b>V. Puzzle</b></p>
<p align="left"> Puzzle is similar to the endgame but it has higher
difficulty levels. As a result, in some cases, the program should be set up in higher
levels (depth) and may take a long time for computing the correct reaction.</p>
<p align="left">a. A puzzle is simple for computing</p>
<p align="left">Even though this game looks complex and difficult, it is
actually easy
for computing. The default depth (=6) is enough for all correct reactions. There are
two answers for this puzzle.</p>
<p align="center"><APPLET code=coffeecc.class height=239 width=339 archive="coffeecc.jar">
<PARAM NAME="controlpanel" VALUE="2">
<PARAM NAME="answer" VALUE="1">
<PARAM NAME="piece" VALUE="Ec0Ke0Af0Eg0Ae1Ha2Cd2Hg2Pa3Pc3Pe3Pi3Cb8Rd8Rf8rb9ec9ad9ke9eg9ae8ha7cd7ce7hg7pe6pi6pa5pc5pg5rg3">
<PARAM NAME="copyright" VALUE="0">
<PARAM NAME="pieceimage" VALUE="demo/piecesmall.gif">
<PARAM NAME="movelist1" VALUE="C8.5,C4.3,C6+7,R2+3,C6.3,P3+1,K5.6,P3.4">
<PARAM NAME="movelist" VALUE="C8.5,C4.3,C6+7,R2+3,C6.3,C3+1,C5-2,C5+4,K5.6,C5.4,R4.5,K5.6,R6+1 REDWON">
<PARAM NAME="sound" VALUE="on">
<PARAM NAME="startbutton" VALUE="0">
</APPLET>
</p>
<p align="left">b. A puzzle is not simple for computing</p>
<p align="left">In contrast, this game requires a very high level of computing.
The program should be set up to the depth = 9 for all correct reactions (in fact, only one
reaction - move number 10 of blue, really needs this depth). This depth may take 2-5
minutes per move in
a strong computer
(e.g. Pentium III 733) and much longer in the weaker ones.</p>
<p align="left">You should check and
choose the lowest depth for your puzzle.</p>
<p align="left"> </p>
<p align="center"><APPLET code=coffeecc.class height=350 width=440 archive="coffeecc.jar">
<PARAM NAME="boardbackgroundcolor" VALUE="0xffffff">
<PARAM NAME="boardforecolor" VALUE="0xb0b0bb">
<PARAM NAME="controlpanel" VALUE="1">
<PARAM NAME="answer" VALUE="1">
<PARAM NAME="piece" VALUE="Ke0,Cg4,Ha5,Ci5,Pb6,Pf8,Ri8,ad9,ke9,ch9,ae8,rh6,pe5,pi4,pg2,pf1,pb0">
<PARAM NAME="depth" VALUE="9">
<PARAM NAME="copyright" VALUE="0">
<PARAM NAME="movelist" VALUE="R1.2,R8-2,C1+4 A5-6,C3+5 A6+5,C3-6A5-6,C3.5A4+5,P4+1K5.4,P4.5K4+1,H9+7K4+1,H7+8K4-1,C1-1P2.3,H8-7K4+1,H7-5K4-1,C5.6P3.4,K5.6R8.9,H5+7K4+1,H7-6K4.5,H6+4K5.4,P8.7K4-1,H4-6A5+4,H6+5K4.5,C6.5">
<PARAM NAME="sound" VALUE="on">
<PARAM NAME="startbutton" VALUE="0">
</APPLET>
</p>
<p align="center"> </p>
<p> </p>
<p><a href="http://www.nchess.com">Go to my home
page</a><font size="2"><br>
Email: <a href="mailto:webmaster@nchess.com">Pham Hong Nguyen</a></font></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -