Diamond cards by 51b

import std.stdio,std.math;void main(){for(int c,m=1,n,k;!c*m?m=~scanf("%d",&n),c=287:c--;putchar=" *-
"[c>270?2:c%18*m?abs(k%4-1)+abs(c%6-3)<2&[0,128,8194,8322,20485,20613,20805,21829,21845,3053,3965][n]>>k/4*3+c%18/6:3])k=c/18+(n>8?c%18/6%2*2:c/54);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page