# Iterated Prisoner's Dilemma

This weekend I watched Dr Hannah Fry's documentary on game theory, and was inspired by her discussion of Robert Axelrod's tournament to simulate the iterated prisoner's dilemma (IPD) for myself.

This weekend I watched Dr Hannah Fry's documentary on game theory, and was inspired by her discussion of Robert Axelrod's tournament to simulate the iterated prisoner's dilemma (IPD) for myself.

Today I became curious about the relative frequencies of the digits that appear in prime numbers (in base 10).

Naturally, I wrote a little program to show the answer - digit-freq2:

The other day I stumbled across the Wikipedia entry for Halstead software complexity and became curious about how the language Perl would measure up.

Now I knew the adage that "only perl can parse perl", but I also knew about the PPI set of modules on the CPAN. So I got to reading/experimenting...

Continue reading Halstead Software Complexity of Perl Code...

Today I decided to revisit the Bach Choral Harmony data set and look at chord progression transitions.

In order to do this I wrote a small program that tallies the movement from one chord to another, and then outputs a Graphviz dot file that can be turned into an image.

**Questions:**

- What is the number of primes per n-slice of the decimal part of pi?
- What does the graph look like?
- Are there many overlapping primes (i.e. start at the same position in the slice)?