---

#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

---

The views and opinions stated within this web page are those of the author or authors which wrote them and may not reflect the views and opinions of the ISP or account user which hosts the web page. The opinions may or may not be those of the Chairman of The Skeptic Tank.

Return to The Skeptic Tank's main Index page.

E-Mail Fredric L. Rice / The Skeptic Tank