Move 1988-2004 entries into subdirs
We we move 1988-2004 entries from all of a year's winning entries in a single directory to each winner being in their own sub-directory under the given year directory.
This commit is contained in:
1 parent
1e82e8aa3e
commit
d2a42f42e8
478 files changed
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#define O B F U S C A T E D
|
||||
#define I 8;}t(p){r(p?W:o);XClearWindow(V,m);}main(i,f)char**f;{M((T(h=f),
|
||||
#define K Y(o,XMapRaised(V,e);)x=3;x--;)for(y=3;y--;r(G))XMapRaised(V,R[D]
|
||||
#define N z(x+i,(z(H-x-i,x),x)))x<i||z(x-i,x)|z(H-x+i,x)Y(W,)l=k;l>20&&l>x
|
||||
#define XIMOfIC Z;XID(*w)()=XCreateWindow,m,e,o[2],W[2],G[2],R[2][O]);}GC*g
|
||||
#define E (++D)));}r(XID*z){XSetWindowBackgroundPixmap(V=d[D],m=R[D][x][y],z[
|
||||
#define L ;XStoreName(V,e=w(V,RootWindow(V,s),0,0,152,152,2,0,1,0,0,0),"II"+D
|
||||
#define B 3][3];Display*V,*d[2];char**h,k=25,b[2500],H=50,D,s,x,y,i;T(){float
|
||||
#define S +k),z(k-P=w(V,e,H*x,H*y,H,H,1,0,1,0,2048,&c));}XEvent J;M(){XFlush(
|
||||
#define Y(z,y) ;for(z[D]=XCreatePixmapFromBitmapData(Q,x=0,H*H);x<H;x++)y for(
|
||||
#define A x][y]&&!b[x+k*y]++?t(D),t(!(D^=1)):D);M();}z(x,y){b[x/8+y*7]|=1<<x%I
|
||||
#define P x,y)-z(y,x+k)+z(y,k-x)*z(x+k,y=H-y),z(k-x,y),z(y,k-x),z(y,k+x)K[x][y]
|
||||
#define Q V,e,b,H,H,BlackPixel(V,s),WhitePixel(V,s),DefaultDepth(V,s)),memset(b
|
||||
#define C d[!D]);x=3;for(XNextEvent(V,&J);x--;)for(y=3;y--;J.xany.window==R[D][
|
||||
#define F l;XSetWindowAttributes c;s=XDefaultScreen(V=d[D]=XOpenDisplay(*(h+=!!
|
||||
#define U *h)))L)Y(G,)i=c.event_mask=4;i--;x+i>H||N;l-=.5)z(x+k,y=sqrt(l*l-x*x)
|
||||
#include <math.h>
|
||||
#include <X11/Xlib.h>
|
||||
@@ -0,0 +1,45 @@
|
||||
Best X11 Entry:
|
||||
|
||||
Jon Thingvold
|
||||
University of Oslo
|
||||
Gaustadveien 10B
|
||||
N 0372 Oslo
|
||||
Norway
|
||||
|
||||
http://www.uio.no/~jonth/
|
||||
|
||||
|
||||
Judges' comments:
|
||||
|
||||
To use:
|
||||
make jonth
|
||||
|
||||
./jonth
|
||||
|
||||
Also try:
|
||||
|
||||
./jonth host1:0 host2:0
|
||||
|
||||
NOTE: You may need to change the Makefile depending on where X11
|
||||
include files are found and what libs are required. For
|
||||
example Solaris and Slowlaris need -lsocket. :-)
|
||||
|
||||
For extra credit, figure out how you can cheat by taking over
|
||||
a square already occupied by an opponent.
|
||||
|
||||
|
||||
Selected notes from the author:
|
||||
|
||||
This is mulituser tictactoe for X Windows. You may give one or two X
|
||||
displays as arguments to this game.
|
||||
|
||||
Known bugs:
|
||||
|
||||
Sometimes on Solaris X gets confused and this program core dumps,
|
||||
solution: give two display arguments (prog host:0 host:0)
|
||||
|
||||
If one (or both) windows look like a copy of the window(s) below,
|
||||
try xrefresh command.
|
||||
|
||||
Have a nice(1) day.
|
||||
|
||||
Reference in new issue
Block a user