Code covered by the BSD License  

Highlights from
MATLAB Contest - Flooding

image thumbnail
from MATLAB Contest - Flooding by The MATLAB Contest Team
All the files needed to develop and score an entry for the MATLABĀ® Programming Contest.

grade(board,goal,solutionVector)
function score = grade(board,goal,solutionVector)
modSolutionVector = validateSolutionVector(solutionVector,board);
boardToScore = runSolutionVector(modSolutionVector, board, goal, false);
score = sum(boardToScore(:)) + sum(modSolutionVector);

Contact us at files@mathworks.com