Code covered by the BSD License  

Highlights from
Automata Engineer 2010 NITK

image thumbnail

Automata Engineer 2010 NITK

by

 

29 Oct 2010 (Updated )

This code solves the problem statement of Automata Engineer 2010 NITK.

botloc( prop )
function [ bot_loc ] = botloc( prop )
% Returns the location of the bot
%   Input: the area matrix of the arena obtained using regionprops.Area
%   Output: Location of the Bot(2-31)
%   the calculation is done by comparing the area
for i=2:31
    if(prop(i).Area<4000)
        bot_loc=i;
        break;
    end
end

end

Contact us