#include stdio.h #ifndef TURBOC #define randomize() srand(getpid()^(unsigned) time(NULL)/2

---
Master Index Current Directory Index Go to SkepticTank Go to Human Rights activist Keith Henson Go to Scientology cult

Skeptic Tank!

#include #ifndef __TURBOC__ #define randomize() srand(getpid()^(unsigned) time(NULL)/2); #define random(x) (rand() % x) #endif #ifndef MAXFSM #define MAXFSM 50 #endif #ifndef MAXSTATE #define MAXSTATE 16 #endif int table[2][2]={{3,0},{5,1}}; int fsm[MAXFSM][MAXSTATE][4],first[MAXFSM]; long score[MAXFSM]; void makeran(int pos){ int index; for(index=0;index0) && !done); } void dupe(int source,int dest){ int index1,index2; for(index1=0;index1=0;--num){ if(random(MAXSTATE+1)==0) first[pl]^=1; for(index=0;index

---

E-Mail Fredric L. Rice / The Skeptic Tank