Code covered by the BSD License  

Highlights from
MATLAB Contest - Blockbuster

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

[1 1 0];
function moves = solver(board,nMoves)
%SOLVER Solve the Blockbuster Contest problem
%
% MOVES = SOLVER(BOARD,NMOVES) BlockBuster solver.
%
% MOVES -> [row,column,action]
% action -> 0 busts, 1 swap up, 2 swap right, 3 swap down, 4 swap left

% Copyright 2006 The MathWorks, Inc.

moves = [1 1 0];

Contact us at files@mathworks.com