File: gui.efg.html

package info (click to toggle)
gambit-doc 0.97.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge, squeeze
  • size: 1,344 kB
  • sloc: makefile: 19; sh: 10
file content (488 lines) | stat: -rw-r--r-- 10,607 bytes parent folder | download
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML
><HEAD
><TITLE
>Extensive form games</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.59"><LINK
REL="HOME"
TITLE="Gambit"
HREF="gambit.html"><LINK
REL="UP"
TITLE="Graphical Interface Reference"
HREF="gui.ref.html"><LINK
REL="PREVIOUS"
TITLE="Graphical Interface Reference"
HREF="gui.ref.html"><LINK
REL="NEXT"
TITLE="Normal form games"
HREF="gui.nfg.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Gambit: Software Tools for Game Theory</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="gui.ref.html"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Graphical Interface Reference</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="gui.nfg.html"
>Next &#62;&#62;&#62;</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="GUI.EFG"
>Extensive form games</A
></H1
><P
></P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="GUI.EFG.PRELIM"
>Extensive form games: Conventions and preliminaries</A
></H2
><P
>Gambit displays extensive form games as a tree, with time flowing from
left to right.  As the tree is built, Gambit uses an automatic layout
algorithm to render the tree.
<A
NAME="AEN421"
HREF="#FTN.AEN421"
>[1]</A
>
Some options are provided to customize the display of the tree;
see <A
HREF="gui.efg.html#GUI.EFG.DISPLAY"
>Changing how the tree is displayed</A
> for details.  The current objective
of these options is to provide sufficient customizability to be able to
use Gambit to create figures suitable for use in classroom materials and
working papers; however, it might not be sufficient at this state for
users who desire fine control over tree figures.</P
><P
>Extensive form games have one or more players.  The players
are specified when the game is created (see <A
HREF="gui.efg.html#GUI.EFG.FILE.NEW"
>the section called <I
>Creating a new extensive form game</I
></A
>);
players may also be added on the fly using the 
<TT
CLASS="GUILABEL"
><B
>Extensive form properties</B
></TT
> dialog
(see <A
HREF="gui.efg.html#GUI.EFG.EDIT.GAME"
>the section called <I
>Viewing and changing extensive form game properties</I
></A
>).
<A
NAME="AEN428"
HREF="#FTN.AEN428"
>[2]</A
>
Each player is indexed by her player number, which ranges from 1 to the
number of players.  The player number 0 is reserved for the 
player called "chance" or "nature".
For each player, the nodes at which she chooses are partitioned into
information sets.  For convenience, Gambit assigns an ordered pair
to each information set of the form (player number, information set number).
The information set number ranges from 1 to the number of information
sets a player has, and information set numbers are only unique within
a player; therefore, information set (1,1), which is player 1's information
set number 1, is distinct from information set (2,1), which is player 2's
information set number 1.  
The information set ID's are arbitrary, and have no significance in terms
of analysis.  By default, Gambit displays information set ID's below
each node; this feature can be configured by editing the display
settings (see <A
HREF="gui.efg.html#GUI.EFG.DISPLAY"
>Changing how the tree is displayed</A
>).</P
><P
>Gambit has a flexible interpretation of the concept of an outcome.
An outcome is an object which has associated with it a vector of
payoffs, one for each player.  A particular outcome may appear at
multiple nodes in a tree, a feature used in the poker game example
in <A
HREF="gui.start.html#GUI.POKER"
>the section called <I
>A simple game of poker</I
> in the chapter called <I
>Getting Started with the Graphical Interface</I
></A
>.  Outcomes may even appear at
non-terminal nodes within a game; in such cases, they are interpreted
as incremental payoffs.  Permitting outcomes to appear at non-terminal
nodes makes it easier to construct trees where a stage game is repeated,
with the supergame payoffs being the sum of the stage game payoffs earned.
<A
NAME="AEN433"
HREF="#FTN.AEN433"
>[3]</A
></P
><P
>Most of the operations involving constructing and editing games require
the selection of a node.  A node is selected by clicking with the left
mouse button on a node, which may be represented by a circle, square,
diamond, or horizontal line, depending on the selected style.  A selected
node is drawn using a thicker line than its non-selected counterparts.
Left-clicking the tree window away from any node unselects all nodes.
Shortcuts are provided for quickly navigating through a tree; see
<A
HREF="gui.efg.html#GUI.EFG.NAV"
>the section called <I
>Navigating extensive form game trees</I
></A
> for a complete list.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="GUI.EFG.FILE.NEW"
>Creating a new extensive form game</A
></H2
><P
></P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="GUI.EFG.FILE.OPEN"
>Reading an extensive form game from disk</A
></H2
><P
></P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="GUI.EFG.INSERT"
>Adding or inserting a move into the tree</A
></H2
><P
>This dialog is used to add a move to the extensive form game, and is
accessed through the {\bf Edit-&#62;Node-&#62;AddMove} or {\bf 
Edit-&#62;Node-&#62;InsertMove} menu items in the extensive form GUI.  

Select the player to be in control of the move by clicking on a player
in the Player choicebox.  The player can be either chance or an
existing player, or a "New Player."  If New Player is chosen, a new
player will be created and given a default name "Player \#."  If this
node is to belong to an existing information set, choose the desired
infoset from the Infoset choicebox.  If a new information set is to be
created, just enter the number of branches desired.  If the node
created was a CHANCE node, you will be prompted for the
probabilities associated with each branch.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="GUI.EFG.NAV"
>Navigating extensive form game trees</A
></H2
><P
></P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="GUI.EFG.EDIT.GAME"
>Viewing and changing extensive form game properties</A
></H2
><P
></P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="GUI.EFG.DISPLAY"
>Changing how the tree is displayed</A
></H2
><P
>      The graphical interface offers a number of options which
      allow the user to customize the display of game trees to
      his or her own tastes.
    </P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN456"
>Customizing tree layout</A
></H3
><P
>	  The layout of a game tree can be customized using the
	  Layout Parameters dialog, which is accessible by way of the
	  <B
CLASS="GUIMENUITEM"
>Layout</B
> item on the
	  <B
CLASS="GUIMENU"
>Format</B
> menu.
	</P
><P
>	  All lengths are in pixels.  The
	  <TT
CLASS="GUILABEL"
><B
>Show Infoset Lines</B
></TT
>
	  choicebox is used to select a mode for display of
	  information sets on the extensive form. 
	  <TT
CLASS="GUILABEL"
><B
>None</B
></TT
> means no
	  lines are drawn connecting members of information sets.
	  <TT
CLASS="GUILABEL"
><B
>Same Level</B
></TT
>
	  means only members of an information set at
	  the same level of the tree are connected with lines. 
	  <TT
CLASS="GUILABEL"
><B
>All Levels</B
></TT
> means that all nodes are connected,
	  using lagged lines if necessary.  (See Figure~\ref{fig_lag_iset}
	  in the extensive form section for an
	  illustration.)
	</P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN466"
>Customizing tree legends</A
></H3
><P
>	  The text labels displayed on nodes and branches can be
	  customized using the Legends dialog
	  (<B
CLASS="GUIMENU"
>Format</B
> menu, <B
CLASS="GUIMENUITEM"
>Legends</B
>
	  item).
	</P
><P
>	  There are two positions where information can be displayed for each
	  branch (above and below.)  In each of these positions, you can select
	  to display information about the game tree (such as branch numbers or
	  action names), or information about the currently selected solution
	  (such as action probabilities or action values).  Similarly, there are
	  three positions at which information can be displayed for a node
	  (above, below, and to the right).  In the positions above and below
	  the node, you can select to display information about the game tree
	  (such as infoset name or ID), or information about the currently
	  selected solution (such as realization probabilities, node values,
	  belief probabilities). The position to the right of the node is
	  reserved for information relating to outcomes, and here you can select
	  to display the outcome name or outcome vector.
	</P
></DIV
></DIV
></DIV
><H3
CLASS="FOOTNOTES"
>Notes</H3
><TABLE
BORDER="0"
CLASS="FOOTNOTES"
WIDTH="100%"
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="5%"
><A
NAME="FTN.AEN421"
HREF="gui.efg.html#AEN421"
>[1]</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="95%"
><P
>That is, there is no mechanism currently for customizing the
location of nodes in the tree display.  This is an item on the list for
future enhancement.</P
></TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="5%"
><A
NAME="FTN.AEN428"
HREF="gui.efg.html#AEN428"
>[2]</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="95%"
><P
>Note that on-the-fly player adding is not currently supported in
normal form games.</P
></TD
></TR
><TR
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="5%"
><A
NAME="FTN.AEN433"
HREF="gui.efg.html#AEN433"
>[3]</A
></TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
WIDTH="95%"
><P
>A two-stage Bayesian game using outcomes at non-terminal nodes in this
fashion can be found in the <TT
CLASS="FILENAME"
>bayes2a.efg</TT
> game in
the standard Gambit distribution.</P
></TD
></TR
></TABLE
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="gui.ref.html"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="gambit.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="gui.nfg.html"
>Next &#62;&#62;&#62;</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Graphical Interface Reference</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="gui.ref.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Normal form games</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>