carykh / PrisonersDilemmaTournament

Watch This Place's awesome video about iterated Prisoner's Dilemma for context! https://www.youtube.com/watch?v=BOvAbjfJ0x0
MIT License
205 stars 160 forks source link

Traceback when running prisonersDilemma.py #5

Closed nobody5050 closed 3 years ago

nobody5050 commented 3 years ago

Hello! I’m nearly positive this is something I’m doing wrong but I’m getting a traceback when attempting to run prisonersDilemma.py using the code in your gemstone branch.

See below:

IMG_1602

Alextopher commented 3 years ago

Super common mistake, happens to everyone starting out. The way carykh has written the script your current working directory must be within the code/ folder.

From a command line you can run cd code/ and then python prisonersDilemma.py should work.

Also depending on how your computer is setup you might have to run python or python3

peterHoburg commented 3 years ago

Instead of running python code/prisonersDilmma.py

Go into ./code Then run python prisonersDilmma.py

nobody5050 commented 3 years ago

Neat.