Skip to content

Commit 7d03a2c

Browse files
mock up catalog section of tutorial
1 parent 6a70eeb commit 7d03a2c

1 file changed

Lines changed: 42 additions & 1 deletion

File tree

doc/tutorials/01_quickstart.ipynb

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,52 @@
417417
},
418418
{
419419
"cell_type": "markdown",
420-
"id": "24f36b0d",
420+
"id": "15ab8d84",
421421
"metadata": {},
422422
"source": [
423423
"The equilibrium shows that both players are playing their dominant strategy, which is to defect. This is because defecting is the best response to the other player's strategy, regardless of what that strategy is.\n",
424424
"\n",
425+
"Loading games from the catalog\n",
426+
"------------------------------\n",
427+
"\n",
428+
"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:"
430+
]
431+
},
432+
{
433+
"cell_type": "code",
434+
"execution_count": null,
435+
"id": "701aa52a",
436+
"metadata": {},
437+
"outputs": [],
438+
"source": [
439+
"# gambit.catalog.games()"
440+
]
441+
},
442+
{
443+
"cell_type": "markdown",
444+
"id": "a919ddf7",
445+
"metadata": {},
446+
"source": [
447+
"You can then load a specific game by its name. For example, to load the \"Prisoner's Dilemma\" game from the catalog, you would do the following:"
448+
]
449+
},
450+
{
451+
"cell_type": "code",
452+
"execution_count": null,
453+
"id": "6db7a29a",
454+
"metadata": {},
455+
"outputs": [],
456+
"source": [
457+
"# g = gbt.catalog.PrisonersDilemma()\n",
458+
"# g"
459+
]
460+
},
461+
{
462+
"cell_type": "markdown",
463+
"id": "24f36b0d",
464+
"metadata": {},
465+
"source": [
425466
"Saving and reading strategic form games to and from file\n",
426467
"--------------------\n",
427468
"\n",

0 commit comments

Comments
 (0)