Skip to content

Commit e350c01

Browse files
author
gaffney2010
committed
Update documentation.
1 parent 31ed308 commit e350c01

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/tutorials/advanced/using_the_cache.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ Let us rerun the above match but using the cache::
4040
We can take a look at the cache::
4141

4242
>>> cache # doctest: +ELLIPSIS
43-
{('Soft Go By Majority', 'Alternator', 200): [(C, C), ..., (C, D)]}
43+
{('Soft Go By Majority', 'Alternator'): [(C, C), ..., (C, D)]}
4444
>>> len(cache)
4545
1
46+
>>> len(cache[(axl.GoByMajority(), axl.Alternator())])
47+
200
4648

4749
This maps a triplet of 2 player names and the match length to the resulting
4850
interactions. We can rerun the code and compare the timing::

0 commit comments

Comments
 (0)