image thumbnail
from Clock Bell by Krishna Lalith
Place the coins on turn basis, on the board to complete &/or to block to gain different medals.

[H]=SwitchModel(H)
function [H]=SwitchModel(H)

    switch H
        case 12,  H=3;
        case 11,  H=4;
        case 10,  H=5;
        case 9,   H=6;
        case 8,   H=7;
        case 7,   H=8;
        case 6,   H=9;
        case 5,   H=10;
        case 4,   H=11;
        case 3,   H=12;
        case 2,   H=1;
        case 1,   H=2;
        case 0,   H=3;
    end

Contact us at files@mathworks.com