MATLAB Programming Contest Blog

November 4th, 2009

Color Bridge Contest is now under way

This Fall’s contest is based on the game Flood-it.

As usual, we are starting out in Darkness moving into Twilight, then Daylight. The contest will run until next Wednesday, November 11, 2009, high noon (Boston time). Links to get started:

Enjoy!

Helen and the MATLAB Central Contest Team

2 Responses to “Color Bridge Contest is now under way”

  1. Michael replied on :

    The syntax of the function ‘solver’ as explained in the rules is:
    colors = solver(A,[targetRow targetColumn])

    while in the distributed functions it is:
    colors = solver(A,targetRowAndColumn)
    This also fits the ‘testsuite_sample.mat’ is built.

    What is the correct one (should we use a linear index of the target or subscripts)?

    Thank you

  2. Doug replied on :

    Everyone,

    Sorry about that. I wrote the contest code in absolute indexing, and then changed it to match the rules. I pushed the absolute indexing version accidentally. My bad.

    We just modified the rules to match the contest suite as it is on the File Exchange. Looks like some of the early entries figured it out and are doing well. Use ind2sub to convert to row column if you happen to need it.

    sorry,
    Doug

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks
The MATLAB Programming Contest is a semi-annual competition where contestants submit MATLAB code to try to solve a challenge.

See behind the scenes of the MATLAB Programming Contest

These postings are the author's and don't necessarily represent the opinions of The MathWorks.