chess2011_01_20
play edi 

所属分类:人工智能/神经网络/深度学习
开发工具:matlab
文件大小:553KB
下载次数:3
上传日期:2012-09-20 17:46:25
上 传 者kdn
说明:  Play chess against "Greedy Edi".

文件列表:
chess (0, 2012-01-25)
chess\addHistoryMove.m (1681, 2010-04-19)
chess\Bishop.m (7280, 2010-04-24)
chess\c2m.m (1038, 2010-11-12)
chess\Chess.m (8677, 2010-09-15)
chess\chess2matrix.m (740, 2010-11-11)
chess\ChessTutorial.pdf (68032, 2006-03-25)
chess\cursorListener.m (1381, 2010-04-15)
chess\displayAllMoves.m (1725, 2011-01-21)
chess\displayCursor.m (1416, 2010-04-15)
chess\displayMovesHistoryList.m (711, 2010-04-15)
chess\EDIs_move.m (6329, 2010-04-26)
chess\findPos.m (991, 2006-03-24)
chess\fonts (0, 2011-01-21)
chess\fonts\TrueType fonts by Armando H. Marroquin (0, 2011-01-21)
chess\fonts\TrueType fonts by Armando H. Marroquin\FIG-TB-1.TTF (67936, 1998-03-18)
chess\fonts\TrueType fonts by Armando H. Marroquin\FIG-TN-1.TTF (67972, 1998-03-18)
chess\fonts\TrueType fonts by Armando H. Marroquin\figrom1.zip (86016, 2010-04-15)
chess\fonts\TrueType fonts by Armando H. Marroquin\GUIDE_T1.DOC (83456, 1998-03-18)
chess\fonts\TrueType fonts by Armando H. Marroquin\temp_board.mat (1021, 2010-04-16)
chess\general_legal_move.m (874, 2010-04-24)
chess\getColor.m (766, 2010-04-24)
chess\getFigureName.m (1350, 2006-03-24)
chess\has_moved.m (1334, 2010-04-26)
chess\html (0, 2010-09-03)
chess\html\addHistoryMove.html (4167, 2006-03-25)
chess\html\Bishop.html (5071, 2006-03-25)
chess\html\Chess.html (4465, 2006-03-25)
chess\html\cursorListener.html (4823, 2006-03-25)
chess\html\displayCursor.html (4624, 2006-03-25)
chess\html\EDIs_move.html (5826, 2006-03-25)
chess\html\findPos.html (4778, 2006-03-25)
chess\html\getColor.html (4312, 2006-03-25)
chess\html\getFigureName.html (4465, 2006-03-25)
chess\html\has_moved.html (4439, 2006-03-25)
chess\html\index.html (2935, 2006-03-25)
chess\html\is_in_check.html (4463, 2006-03-25)
chess\html\King.html (5019, 2006-03-25)
chess\html\Knight.html (5071, 2006-03-25)
... ...

Version 2010-04-25 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érme. 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 kind of Matlab object orientated alternative concept ... The chess figures m-functions represent objects. Of course I know that Matlab offers 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. Updates: 25/04/2010 Improved legal move; new undo move; new change player colour; etc.

近期下载者

相关文件


收藏者