from
Chess with "Greedy Edi"
by Wolfgang Garn
Play chess against "Greedy Edi".
|
| saveChessStatus (name)
|
function saveChessStatus (name)
% Save status of a chess game.
if nargin<1
name=['ChessGame-' datestr(now,'yyyy-mm-dd-HH-MM') '.mat'];
end
global board; % all information related to the chess board (NOT display)
global layer; % display info
global cursor; % cursor information for moving the figures
global history; % record of moves
global EDIs %EDIs information (Artificial Intelligence)
global game;
save(name,'board','history','EDIs','game','cursor');
|
|
Contact us at files@mathworks.com