Skip to content

Commit 7ddd64b

Browse files
loading from the catalog examples in tutorials
1 parent dbe751c commit 7ddd64b

2 files changed

Lines changed: 593 additions & 403 deletions

File tree

doc/tutorials/01_quickstart.ipynb

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
{
4040
"cell_type": "code",
41-
"execution_count": 1,
41+
"execution_count": 19,
4242
"id": "c58d382d",
4343
"metadata": {},
4444
"outputs": [],
@@ -50,7 +50,7 @@
5050
},
5151
{
5252
"cell_type": "code",
53-
"execution_count": 2,
53+
"execution_count": 20,
5454
"id": "2060c1ed",
5555
"metadata": {},
5656
"outputs": [
@@ -60,7 +60,7 @@
6060
"pygambit.gambit.Game"
6161
]
6262
},
63-
"execution_count": 2,
63+
"execution_count": 20,
6464
"metadata": {},
6565
"output_type": "execute_result"
6666
}
@@ -83,7 +83,7 @@
8383
},
8484
{
8585
"cell_type": "code",
86-
"execution_count": 3,
86+
"execution_count": 21,
8787
"id": "9d8203e8",
8888
"metadata": {},
8989
"outputs": [],
@@ -111,7 +111,7 @@
111111
},
112112
{
113113
"cell_type": "code",
114-
"execution_count": 4,
114+
"execution_count": 22,
115115
"id": "61030607",
116116
"metadata": {},
117117
"outputs": [],
@@ -135,7 +135,7 @@
135135
},
136136
{
137137
"cell_type": "code",
138-
"execution_count": 5,
138+
"execution_count": 23,
139139
"id": "caecc334",
140140
"metadata": {},
141141
"outputs": [
@@ -149,7 +149,7 @@
149149
"Game(title='Prisoner's Dilemma')"
150150
]
151151
},
152-
"execution_count": 5,
152+
"execution_count": 23,
153153
"metadata": {},
154154
"output_type": "execute_result"
155155
}
@@ -189,7 +189,7 @@
189189
},
190190
{
191191
"cell_type": "code",
192-
"execution_count": 6,
192+
"execution_count": 24,
193193
"id": "843ba7f3",
194194
"metadata": {},
195195
"outputs": [
@@ -203,7 +203,7 @@
203203
"Game(title='Another Prisoner's Dilemma')"
204204
]
205205
},
206-
"execution_count": 6,
206+
"execution_count": 24,
207207
"metadata": {},
208208
"output_type": "execute_result"
209209
}
@@ -233,7 +233,7 @@
233233
},
234234
{
235235
"cell_type": "code",
236-
"execution_count": 7,
236+
"execution_count": 25,
237237
"id": "5ee752c4",
238238
"metadata": {},
239239
"outputs": [
@@ -270,7 +270,7 @@
270270
},
271271
{
272272
"cell_type": "code",
273-
"execution_count": 8,
273+
"execution_count": 26,
274274
"id": "a81c06c7",
275275
"metadata": {},
276276
"outputs": [
@@ -280,7 +280,7 @@
280280
"pygambit.nash.NashComputationResult"
281281
]
282282
},
283-
"execution_count": 8,
283+
"execution_count": 26,
284284
"metadata": {},
285285
"output_type": "execute_result"
286286
}
@@ -300,7 +300,7 @@
300300
},
301301
{
302302
"cell_type": "code",
303-
"execution_count": 9,
303+
"execution_count": 27,
304304
"id": "bd395180",
305305
"metadata": {},
306306
"outputs": [
@@ -310,7 +310,7 @@
310310
"1"
311311
]
312312
},
313-
"execution_count": 9,
313+
"execution_count": 27,
314314
"metadata": {},
315315
"output_type": "execute_result"
316316
}
@@ -329,7 +329,7 @@
329329
},
330330
{
331331
"cell_type": "code",
332-
"execution_count": 10,
332+
"execution_count": 28,
333333
"id": "76570ebc",
334334
"metadata": {},
335335
"outputs": [
@@ -342,7 +342,7 @@
342342
"[[Rational(0, 1), Rational(1, 1)], [Rational(0, 1), Rational(1, 1)]]"
343343
]
344344
},
345-
"execution_count": 10,
345+
"execution_count": 28,
346346
"metadata": {},
347347
"output_type": "execute_result"
348348
}
@@ -354,7 +354,7 @@
354354
},
355355
{
356356
"cell_type": "code",
357-
"execution_count": 11,
357+
"execution_count": 29,
358358
"id": "6e8cfcde",
359359
"metadata": {},
360360
"outputs": [
@@ -364,7 +364,7 @@
364364
"pygambit.gambit.MixedStrategyProfileRational"
365365
]
366366
},
367-
"execution_count": 11,
367+
"execution_count": 29,
368368
"metadata": {},
369369
"output_type": "execute_result"
370370
}
@@ -385,7 +385,7 @@
385385
},
386386
{
387387
"cell_type": "code",
388-
"execution_count": 12,
388+
"execution_count": 30,
389389
"id": "980bf6b1",
390390
"metadata": {},
391391
"outputs": [
@@ -426,22 +426,22 @@
426426
"------------------------------\n",
427427
"\n",
428428
"Gambit includes a catalog of standard games that can be loaded directly by name.\n",
429-
"You can list all the available games in the catalog like so:"
429+
"You can list all the available games and filtering on the game type and number of players in the catalog like so:"
430430
]
431431
},
432432
{
433433
"cell_type": "code",
434-
"execution_count": null,
434+
"execution_count": 31,
435435
"id": "701aa52a",
436436
"metadata": {},
437437
"outputs": [
438438
{
439439
"data": {
440440
"text/plain": [
441-
"['PrisonersDilemma', 'TwoStageMatchingPennies', 'PrisonersDilemmaTestgame']"
441+
"['PrisonersDilemma']"
442442
]
443443
},
444-
"execution_count": 4,
444+
"execution_count": 31,
445445
"metadata": {},
446446
"output_type": "execute_result"
447447
}
@@ -460,7 +460,7 @@
460460
},
461461
{
462462
"cell_type": "code",
463-
"execution_count": 3,
463+
"execution_count": 32,
464464
"id": "6db7a29a",
465465
"metadata": {},
466466
"outputs": [
@@ -474,7 +474,7 @@
474474
"Game(title='Two person Prisoner's Dilemma game')"
475475
]
476476
},
477-
"execution_count": 3,
477+
"execution_count": 32,
478478
"metadata": {},
479479
"output_type": "execute_result"
480480
}
@@ -500,7 +500,7 @@
500500
},
501501
{
502502
"cell_type": "code",
503-
"execution_count": 15,
503+
"execution_count": 33,
504504
"id": "f58eaa77",
505505
"metadata": {},
506506
"outputs": [],
@@ -518,7 +518,7 @@
518518
},
519519
{
520520
"cell_type": "code",
521-
"execution_count": 16,
521+
"execution_count": 34,
522522
"id": "4119a2ac",
523523
"metadata": {},
524524
"outputs": [],

0 commit comments

Comments
 (0)