charMING

Play: frog_maze ice_maze merge overboard plus puzzle rings rows tile_maze_game tiles

Back to Steve's homepage


charMING.c



char*M,*I,*N,*G
,O=1,l=0,
b,y,_,S,H[1995];


#include <stdio.h>

void main() {
	FILE *f;
	do {
		f = fopen("board", "r+");


	           if(N=I=H+
	      126,l=!l){for(;~(*      I=
	    getc(f));I++)b=10-*I?b+		  1:
	1;  *I=0;M=I-2*b;if(49>--O)
	    {for(puts(    N);N>H;*--
	    N=0)O=2[M]     ;y=*gets(
	     I)&2?*I&     4?1:b:*I&4   ?
	                ~0:-b;H[*++I 
 ?	              *I:42]=S=4[M]	     ;}
	             }for(;_=*I,G
	    =I     -y,l?0:I-M+b
	           ;I++)putc(
	           H[*G]?H[_
	            ]|_==32		  ?


	            *G:(S-=
	l=        _[H]=1,y*=S
	          -47&&_-*N,_    ):
	          H[_]?32:_,f
	    );      _=!10[H		  ];
	


		fclose(f);
	} while(_);
	printf("Yippy!");
}