91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 0.34M
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2021-03-27
  • 語言: Matlab
  • 標(biāo)簽: matlab??

資源簡介


Chess MATLAB編寫的國際象棋游戲 很牛B啊。。。 對學(xué)習(xí)matlab很有幫助的!

資源截圖

代碼片段和文件信息

function?addHistoryMove(fromto)
%?addHistoryMove???Adds?a?move?to?the?history?structure.
%
%?Inputs:
%?*?from?...?field?in?matrix?notation?(i.e?[1?2]~b8)
%?*?to?...?field?in?matrix?notation?(i.e?[3?3]~c6)
%?*?global?board?...?chess?board?and?related?information
%
%?Outputs:
%?*?global?history?...?a?move?is?added?to?the?game?history
%
%?Example
%?Add?the?knigth?move?from?b8?to?c6:
%??|addHistoryMove([1?2][3?3])|
%
%?See?also:?Chess?stopCursor
%
%%?Signature
%?Author:?W.Garn
%?E-Mail:?wgarn@yahoo.com
%?Date:?2006/03/23?12:00:00?
%?
%?Copyright?2006?W.Garn
%
global?board
global?history

color?=?getColor(to);
fig?=?upper(board.figures(to(1)to(2)));
if?color?%white
????k?=?size(history.white1)?+?1;
????history.white_pos{k1}?=?from;
????history.white_pos{k2}?=?to;
????history.white_fig{k}???=?fig;
????if?board.last2field?==?‘?‘?%empty
????????cs?=?‘?-?‘;
????else
????????cs?=?‘?x?‘;
????end
????history.white{k1}?=?[fig?matrix2chess(from)?cs?matr

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

?????文件???????1351??2006-03-23?19:12??chess\addHistoryMove.m

?????文件???????7251??2006-03-23?23:08??chess\Bishop.m

?????文件???????4595??2006-03-30?13:26??chess\Chess.m

?????文件??????68032??2006-03-24?14:59??chess\ChessTutorial.pdf

?????文件???????1382??2006-03-23?22:59??chess\cursorListener.m

?????文件???????1416??2006-03-23?23:22??chess\displayCursor.m

?????文件???????6147??2006-03-30?19:31??chess\EDIs_move.m

?????文件????????991??2006-03-23?20:00??chess\findPos.m

?????文件????????780??2006-03-23?20:06??chess\getColor.m

?????文件???????1350??2006-03-23?20:11??chess\getFigureName.m

?????文件???????1337??2006-03-23?23:06??chess\has_moved.m

?????文件???????4167??2006-03-24?13:34??chess\html\addHistoryMove.html

?????文件???????5071??2006-03-24?13:33??chess\html\Bishop.html

?????文件???????4465??2006-03-24?13:33??chess\html\Chess.html

?????文件???????4823??2006-03-24?13:34??chess\html\cursorListener.html

?????文件???????4624??2006-03-24?13:34??chess\html\displayCursor.html

?????文件???????5826??2006-03-24?13:33??chess\html\EDIs_move.html

?????文件???????4778??2006-03-24?13:34??chess\html\findPos.html

?????文件???????4312??2006-03-24?13:34??chess\html\getColor.html

?????文件???????4465??2006-03-24?13:34??chess\html\getFigureName.html

?????文件???????4439??2006-03-24?13:34??chess\html\has_moved.html

?????文件???????2935??2006-03-24?15:15??chess\html\index.html

?????文件???????4463??2006-03-24?13:34??chess\html\is_in_check.html

?????文件???????5019??2006-03-24?13:33??chess\html\King.html

?????文件???????5071??2006-03-24?13:33??chess\html\Knight.html

?????文件???????5237??2006-03-24?13:34??chess\html\legal_move.html

?????文件???????4111??2006-03-24?13:35??chess\html\matrix2chess.html

?????文件???????4257??2006-03-24?13:35??chess\html\matrix2xy.html

?????文件???????4067??2006-03-24?13:35??chess\html\mirrorImage.html

?????文件???????5023??2006-03-24?13:33??chess\html\Pawn.html

............此處省略88個(gè)文件信息

評論

共有 條評論