⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 国际象棋程序,解压到当前目录,在matlab窗口输入chess即可应用
💻 TXT
字号:
Version 0.3
Summary:
Play chess against "Greedy Edi".
 
Matlab Release: V7 R14 SP2
 
Required Products: -
 
Description: 
Play chess against "Greedy Edi". 
 
Get started...
1. extract zip file
2. change current directory to the new "chess" directory
3. Run "Chess" (optionally for text figures run Chess(2)) 
 
Some help ...
a) How to move the chess figures ...
   1. Position the mouse over the figure you like to move
   2. Press the mouse button and keep it pressed
   3. Move the mouse over the desired field and relase the mouse button 
b) How to play chess ...
If you don't know anything about chess. I have included a little chess 
tutorial (ChessTutorial.pdf). Perhaps, at a later time you will find an 
updated version at (http://osiris.tuwien.ac.at/~wgarn/chess).
 
c) Help about the functions
If you like to change the program or if you like to know more about the 
implementation, then check out the html folder for help descriptions on 
the functions. The "index.html" file gives an overview of all the functions 
used. This help files were generated by using the "wg_publish_dir" 
function, which can be found at the Central File Exchange Depot.
(http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=9687&objectType=FILE)

 
What I still intend to do...
- let "Greedy Edi" realize, when he is checked, that he can do 
something else beside running away.
Additional Edi characters
a) Careful Edi ... which looks out, whether he will be eaten
b) Happy Edi ... looking tow and a half move ahead
c) Smart Edi ... knowing strategy, tricks and learning on its own
 
How could you help me...
1. By testing this program and telling me any wrong moves (wgarn@yahoo.com)
x2. There is a transparency issue, which I could not figure out ...
   A transparent image with a patch as background colour???
   I have include a m-script (TransparencyProblem.m), illustrating the problem.
   -> Thank's to J閞鬽e. This problem is solved. 
    Add 2nd axes and send them to the back :) 
3. Finding other chess sets 
4. Other constructive comments and contributions ;)
 
I am proud of the following...
1. a "new" Matlab object orientated concept ...
The chess figures m-functions represent objects. Of course I know that 
Matlab offer OO programming. But, I do not like copying everything. Hence 
I came out with the "persistent" structure idea. 
For instance, let us have a look at the knights.
First we have only the "empty" function, which I call class. 
When calling the function "Knight('init',...)", an instance is derived from
the class (actually: into the class). Assume you like to have a second
knight, just call the "method" again. The function "findPos" is sufficient 
to identify the required instance (which is done internally).
 
2. the usage of function pointers
The usage of function pointers (@Knight, @Queen,...) saved me a lot of work.
 
3. the cursor events
I have never really used this Mouse events before, but it worked out pretty 
good.
 
 
 
This work is free software; 
you can redistribute it and/or modify it under the terms of the 
GNU General Public License as published by the Free Software Foundation; 
either version 2 of the License, or (at your option) any later version. 
This work is distributed in the hope that it will be useful, 
but WITHOUT ANY WARRANTY; without even the implied warranty 
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See the GNU General Public License for more details.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -