See the whole article here.
Edit english-iterated-prisoners-dilemma.py
or french-iterated-prisoners-dilemma.py
to create your own strategies.
To test them and create the graphics with all the strategies, run:
pip install -r requirements.txt
python3 english-iterated-prisoners-dilemma.py