forked from stengel/ecta2002
-
Notifications
You must be signed in to change notification settings - Fork 0
/
leaves.h
28 lines (21 loc) · 725 Bytes
/
leaves.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* leaves.h
* 1 June 2000
*/
/* #include before: "rat.h" */
#define MAXLINELENGTH 1000 /* max chars in input line */
/* read in lines from stdin, process them one by one by
* oklinetobehavprob()
* output leaves in equilibrium path with probabilities
*/
void leavesfrominput (void);
/* convert a line previously generated with showeq()
* where bshortequil == 1 to behavior strategies in ->behavprob
* for the two players.
* return 1 if the line was syntactically OK, otherwise 0
*/
Bool oklinetobehavprob (char *line);
/* output the leaves that are reached by ->realprob in the form
* leafno:jointprob
* prefixed by "SUP>(docuseed)<" to identify the game
*/
void outleavesreached (int docuseed);