Closed y-arjun-y closed 3 years ago
Try adding os.chdir(os.path.dirname(os.path.abspath(__file__)))
after all the imports (line 6) in "prisonersDilemna.py". This changes the working directory to the path the script was ran in.
Hello, it seems like the import in line 6 is now working, but now, I'm getting this error:
Traceback (most recent call last):
File "/Users/arjunyadav/Desktop/PrisonersDilemmaTournament/code/prisonersDilemma.py", line 121, in
Also, if I comment that line, I get a warning saying:
RuntimeWarning: invalid value encountered in double_scalars scorePer = score/(len(STRATEGY_LIST)-1)
So, the result.txt ends up like:
TOTAL SCORES
Never mind, I got it to work, thank you for the help!
Good luck on your strategy!
Hello, I cloned the repository into VSCode, however, I cannot open the strategies folder nor the result.txt file, any help?