from
Chess with "Greedy Edi"
by Wolfgang Garn
Play chess against "Greedy Edi".
|
| displayMovesHistoryList
|
function displayMovesHistoryList
% displayMovesHistoryList Displays all moves done so far as a list
%
% Notes
% Chess fonts
% http://www.rebel.nl/epd2diag.htm#E2P_TTF
% http://www.chessvariants.com/d.font/
% http://www.chess.com/downloads/fonts
%
% Chessopolis
% http://www.chessopolis.com/software.htm
%
%% Signature
% Author: W.Garn
% E-Mail: wgarn@yahoo.com
% Date: 2010/04/14
%
% Copyright 2010 W.Garn
%
global board
global history;
fid=1;
nwm = length(history.white); %number of moves
nbm = length(history.black);
for k=1:nbm
fprintf(fid,'%2i. %s \t %s\n',k, history.white{k}, history.black{k});
end
if nwm>nbm
fprintf(fid,'%2i. %s\n',nwm, history.white{nwm});
end
|
|
Contact us at files@mathworks.com