diff options
author | McSinyx <vn.mcsinyx@gmail.com> | 2016-06-12 21:32:18 +0700 |
---|---|---|
committer | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2016-11-20 16:44:03 +0700 |
commit | 7f78a0cdfe4fed67df084f968a350454073fa710 (patch) | |
tree | e38052ad1810a8d87dc089ddacabdaf51629faf5 /bin | |
parent | d7c33b06906fa3a5737e5b4e809c6653b06466c0 (diff) | |
download | dotfiles-7f78a0cdfe4fed67df084f968a350454073fa710.tar.gz |
Remove some shits
Diffstat (limited to 'bin')
-rw-r--r-- | bin/.local/bin/2048.c | 11 | ||||
-rwxr-xr-x | bin/.local/bin/scot.sh | 3 |
2 files changed, 0 insertions, 14 deletions
diff --git a/bin/.local/bin/2048.c b/bin/.local/bin/2048.c deleted file mode 100644 index 197b66f..0000000 --- a/bin/.local/bin/2048.c +++ /dev/null @@ -1,11 +0,0 @@ -M[16],X=16,W,k;main(){T(system("stty cbreak") -);puts(W&1?"WIN":"LOSE");}K[]={2,3,1};s(f,d,i -,j,l,P){for(i=4;i--;)for(j=k=l=0;k<4;)j<4?P=M -[w(d,i,j++)],W|=P>>11,l*P&&(f?M[w(d,i,k)]=l<< -(l==P):0,k++),l=l?P?l-P?P:0:l:P:(f?M[w(d,i,k) -]=l:0,++k,W|=2*!l,l=0);}w(d,i,j){return d?w(d --1,j,3-i):4*i+j;}T(i){for(i=X+rand()%X;M[i%X] -*i;i--);i?M[i%X]=2<<rand()%2:0;for(W=i=0;i<4; -)s(0,i++);for(i=X,puts("\e[2J\e[H");i--;i%4|| -puts(""))printf(M[i]?"%4d|":" |",M[i]);W-2 -||read(0,&k,3)|T(s (1,K[(k>>X)%4]));}//[2048] diff --git a/bin/.local/bin/scot.sh b/bin/.local/bin/scot.sh deleted file mode 100755 index 8e9dc1c..0000000 --- a/bin/.local/bin/scot.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -cd ~/Pictures/Screenshots -scrot '%F_%T.png' |