Code covered by the BSD License
-
armyantsimulator(contestAntFH...
MATLAB 2008 Army Ants Contest
-
getComplexity(filename)
GETCOMPLEXITY Calculate the maximum complexity in an M-file.
-
grade(main,foodStart,red,blac...
Copyright 2008 The MathWorks, Inc.
-
house_solver(mainMap,foodMap,...
Copyright 2008 The MathWorks, Inc.
-
runcontest(drawboard,doBoards)
RUNCONTEST Test an entry.
-
solver(mainMap,foodMap,myAntM...
Copyright 2008 The MathWorks, Inc.
-
View all files
from
MATLAB Contest - Army Ants
by The MATLAB Contest Team
All the files needed to develop and score an entry for the MATLABĀ® Programming Contest.
|
| house_solver(mainMap,foodMap,myAntMap,opAntMap, ...
|
function [dRow,dCol,action,mark] = house_solver(mainMap,foodMap,myAntMap,opAntMap, ...
myScentMap,opScentMap,myDeathMap,opDeathMap)
% Copyright 2008 The MathWorks, Inc.
dRow = round(rand*2) - 1;
dCol = round(rand*2) - 1;
action = -1; %-1 attack, 1 carry
mark = 5; % scent
end
|
|
Contact us at files@mathworks.com