Esempio n. 1
0
main() {
	int x;
	char answer;

	printf("\nBTP100 Black Jack\n=================\n");
	srand(time(NULL));
	do {
		most();
		do {
			printf("Another game ? ");
			scanf("%c", &answer);
			while ( getchar() != '\n' ) 
				;
			switch(answer){
				case 'y':
					x=1;
					break;
				case 'n':
					x=0;
					break;
				default:
					x = -1;
					printf("* Invalid selection *\n");
			}
		} while ( x == -1);
	} while ( x != 0 );
}
Esempio n. 2
0
int main(int argc, char *argv[])
{
#if 0
   static volatile int debug_me = 1;
   while (debug_me == 1)
     {
	sleep (1);
     }
#endif
   if (argc > 1)
     {
	if ((0 == strcmp (argv[1], "--version"))
	    || (0 == strcmp (argv[1], "--help")))
	  {
	     most_usage ();
	     exit (1);
	  }
     }
   
   most_initialize_most ();
   return most (argc, argv);
}