From 2cbfd6f05c959cd4387595121347b7feb72084e4 Mon Sep 17 00:00:00 2001 From: dunkyl <38872099+dunkyl@users.noreply.github.com> Date: Wed, 19 May 2021 15:32:09 -0700 Subject: [PATCH] Update comment to reflect readme and code --- code/prisonersDilemma.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/prisonersDilemma.py b/code/prisonersDilemma.py index 738b16d..c0bbee1 100644 --- a/code/prisonersDilemma.py +++ b/code/prisonersDilemma.py @@ -41,7 +41,7 @@ def runRound(pair): memoryA = None memoryB = None - LENGTH_OF_GAME = int(200-40*np.log(random.random())) # The games are a minimum of 50 turns long. The np.log here guarantees that every turn after the 50th has an equal (low) chance of being the final turn. + LENGTH_OF_GAME = int(200-40*np.log(random.random())) # The games are a minimum of 200 turns long. The np.log here guarantees that every turn after the 200th has an equal (low) chance of being the final turn. history = np.zeros((2,LENGTH_OF_GAME),dtype=int) for turn in range(LENGTH_OF_GAME):