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.

Show(ii,jj,move)
function Show(ii,jj,move)

hold on
for kk=1:4,
    Xcir=(5+jj(kk)*cos(ii(kk)*pi/6))+0.25*cos(0:1/50:2*pi);
    Ycir=(5+jj(kk)*sin(ii(kk)*pi/6))+0.25*sin(0:1/50:2*pi);
    if move==0,  fill(Xcir,Ycir,'r','edgecolor','r');  end
    if move==1,  fill(Xcir,Ycir,'b','edgecolor','b');  end  
end

pause(1);

for kk=1:4,
    Xcir=(5+jj(kk)*cos(ii(kk)*pi/6))+0.25*cos(0:1/50:2*pi);
    Ycir=(5+jj(kk)*sin(ii(kk)*pi/6))+0.25*sin(0:1/50:2*pi);
    if move==0,  fill(Xcir,Ycir,'k','edgecolor','k');  end
    if move==1,  fill(Xcir,Ycir,'w','edgecolor','w');  end
end
hold off

Contact us at files@mathworks.com