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 ([email protected])
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�r�me. 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.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
【达摩老生出品,必属精品,亲测校正,质量保证】 资源名:chess_matlab 资源类型:matlab项目全套源码 源码说明: 全部项目源码都是经过测试校正后百分百成功运行的,如果您下载后不能运行可联系我进行指导或者更换。 适合人群:新手及有一定经验的开发人员
资源推荐
资源详情
资源评论
收起资源包目录
chess_matlab (111个子文件)
Matlab实现无约束条件下普列姆(Prim)算法.docx 14KB
EDIs_move.html 6KB
stopCursor.html 5KB
legal_move.html 5KB
Bishop.html 5KB
Knight.html 5KB
Queen.html 5KB
Pawn.html 5KB
Rook.html 5KB
King.html 5KB
show.html 5KB
cursorListener.html 5KB
findPos.html 5KB
replaceRGBValue.html 5KB
displayCursor.html 5KB
remove_figure.html 4KB
getFigureName.html 4KB
Chess.html 4KB
is_in_check.html 4KB
setCursor.html 4KB
has_moved.html 4KB
getColor.html 4KB
xy2matrix.html 4KB
matrix2xy.html 4KB
Value_of_Figure.html 4KB
addHistoryMove.html 4KB
setFiguresPosition.html 4KB
matrix2chess.html 4KB
mirrorImage.html 4KB
reset_cursor.html 3KB
index.html 3KB
ChessBoard.jpg 55KB
Pawn.m 12KB
King.m 10KB
Queen.m 9KB
Rook.m 7KB
Bishop.m 7KB
EDIs_move.m 6KB
Knight.m 6KB
Chess.m 4KB
stopCursor.m 4KB
show.m 3KB
in_check.m 3KB
is_in_check.m 3KB
TransparencyProblem.m 2KB
setCursor.m 1KB
legal_move.m 1KB
displayCursor.m 1KB
remove_figure.m 1KB
cursorListener.m 1KB
addHistoryMove.m 1KB
getFigureName.m 1KB
has_moved.m 1KB
findPos.m 991B
replaceRGBValue.m 990B
Value_of_Figure.m 839B
setFiguresPosition.m 826B
getColor.m 780B
mirrorImage.m 702B
xy2matrix.m 693B
matrix2xy.m 671B
matrix2chess.m 621B
reset_cursor.m 619B
temp_board.mat 871B
ChessTutorial.pdf 66KB
script_Chess_01.png 24KB
script_Chess_03.png 21KB
120px-Chess_tile_ql.png 10KB
script_Chess_02.png 8KB
120px-Chess_tile_kd.png 8KB
120px-Chess_tile_kl.png 7KB
120px-Chess_tile_qd.png 6KB
120px-Chess_tile_bl.png 6KB
120px-Chess_tile_nl.png 5KB
script_Chess.png 5KB
120px-Chess_tile_nd.png 4KB
120px-Chess_tile_bd.png 3KB
Chess_dll44.png 3KB
120px-Chess_tile_pl.png 3KB
Chess_dld44.png 3KB
Chess_ddl44.png 3KB
Chess_all44.png 2KB
Chess_ald44.png 2KB
Chess_kdd44.png 2KB
Chess_kdl44.png 2KB
Chess_adl44.png 2KB
Chess_kld44.png 2KB
Chess_bll44.png 2KB
Chess_kll44.png 2KB
Chess_bld44.png 2KB
Chess_hld44.png 2KB
Chess_hll44.png 2KB
Chess_hdl44.png 2KB
Chess_bdl44.png 2KB
Chess_hdd44.png 2KB
Chess_add44.png 2KB
Chess_bdd44.png 2KB
120px-Chess_tile_rl.png 2KB
120px-Chess_tile_rd.png 1KB
Chess_rld44.png 1KB
共 111 条
- 1
- 2
资源评论
阿里matlab建模师
- 粉丝: 3308
- 资源: 2784
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功