Programming/Software

This one is GREAT! It works, try it!

/* Martin Haring <mwharing@cipher.xs4all.nl> || use gcc to play mastermind */
main(){int i=0,j,e,p,a[4],b;srand(time(0));for(;i<4;i++){a[i]=rand()%8;for(j=
0;j<i;j++)if(a[i]==a[j])i--;}printf("A B C D GP\n");do{system("stty cbreak");
e=p=0;for(i=0;i<4;i++){b=getchar()&7;printf(" ");if(b==a[i])p++;for(j=0;j<4;j
++)if(b==a[j])e++;}system("stty cooked");printf("%d%d\n",e-p,p);}while(p<4);}

 

A sig that creates another sig!

/*  _  */main(int k,char**n){char*i=k&1?"+L*;99,RU[,RUo+BeKAA+BECACJ+CAACA"
/* / ` */"CD+LBCACJ*":1[n],j,l=!k,m;do for(m=*i-48,j=l?m/k:m%k;m>>7?k=1<<m+
/* |   */8,!l&&puts(&l)**&l:j--;printf("  \0_/"+l));while((l^=3)||l[++i]);}
/* \_,hris Brown -- All opinions expressed are probably wrong. */

 

Leave a Reply