Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
e9a72e3
Merge pull request #298 from Axelrod-Python/297
langner Sep 16, 2015
8fcef33
New release
drvinceknight Sep 16, 2015
9612c06
Inputting some basic tutorials.
drvinceknight Sep 18, 2015
2a7224c
Deleting this as didn't seem to have an effect
drvinceknight Sep 18, 2015
29da9e9
Writing test scripts
drvinceknight Sep 18, 2015
77e5c28
Reorganising files.
drvinceknight Sep 18, 2015
0cea46a
Removing stochastic strategies from early tutorials
drvinceknight Sep 18, 2015
5689be3
Making docs python 3 compatible.
drvinceknight Sep 18, 2015
a65d78f
Compartementalising documentation.
drvinceknight Sep 18, 2015
1c51688
Merge branch 'master' into 299
drvinceknight Oct 18, 2015
60d3200
Adding requirements.txt instructions.
drvinceknight Oct 18, 2015
6d24583
Merge conflict.
drvinceknight Oct 18, 2015
4edbedc
Adding distribution of wins section to visualisation.
drvinceknight Oct 18, 2015
47f2b86
Adding egg to gitignore
drvinceknight Oct 18, 2015
340d961
Adding noisy tournaments section.
drvinceknight Oct 18, 2015
b8c315a
Reorganisation of tutorials.
drvinceknight Oct 18, 2015
8ec0e35
First further topics tutorials.
drvinceknight Oct 18, 2015
2a66782
Modifying the doctests.
drvinceknight Oct 18, 2015
02d7fd7
Some minor rewording.
drvinceknight Oct 18, 2015
9c252db
Starting work on contributions.
drvinceknight Oct 18, 2015
0155030
Creating empty advanced topics.
drvinceknight Oct 18, 2015
488ee8d
Refresh of overview of strategies: now doctested.
drvinceknight Oct 18, 2015
737d5f3
Adding tutorial on classification
drvinceknight Oct 18, 2015
46fbb7b
Removing indices.
drvinceknight Oct 18, 2015
ab32b89
Removing merge conflict tag from travis file.
drvinceknight Oct 18, 2015
570c236
Adding glossary.
drvinceknight Oct 19, 2015
b2196cb
Adding the suggestions from Marc
drvinceknight Oct 20, 2015
86f72a4
Adding section about the command line tool.
drvinceknight Oct 20, 2015
d165b67
Tidying of the tutorials structure.
drvinceknight Oct 20, 2015
92d3bf9
Removing comment about matplotlib from guidelines.
drvinceknight Oct 20, 2015
d10983e
Merge pull request #376 from marcharper/metafix
drvinceknight Oct 21, 2015
19e4f0c
Code highlight for directory.
drvinceknight Oct 21, 2015
8def6fb
Section on writing strategies
drvinceknight Oct 21, 2015
4e9c953
Section on adding the strategy _strategies.py
drvinceknight Oct 21, 2015
8c72309
Section on classification.
drvinceknight Oct 21, 2015
2adcc5a
Section on testing.
drvinceknight Oct 21, 2015
f4e0de5
Adding section about identify new strategies.
drvinceknight Oct 21, 2015
a1ec90c
Adding section on tests.
drvinceknight Oct 21, 2015
1f1bfbd
Fixing broken doctest.
drvinceknight Oct 21, 2015
e06af3f
Writing small section about general contributions.
drvinceknight Oct 21, 2015
3e16aa0
Inputting some basic tutorials.
drvinceknight Sep 18, 2015
b980146
Deleting this as didn't seem to have an effect
drvinceknight Sep 18, 2015
aa5678e
Merge conflict
drvinceknight Oct 21, 2015
1fac8af
Reorganising files.
drvinceknight Sep 18, 2015
eff9529
Removing stochastic strategies from early tutorials
drvinceknight Sep 18, 2015
41adada
Making docs python 3 compatible.
drvinceknight Sep 18, 2015
67c1659
Compartementalising documentation.
drvinceknight Sep 18, 2015
0514fdf
Adding requirements.txt instructions.
drvinceknight Oct 18, 2015
c449c85
Adding distribution of wins section to visualisation.
drvinceknight Oct 18, 2015
10a31e4
Adding egg to gitignore
drvinceknight Oct 18, 2015
8e72d47
Adding noisy tournaments section.
drvinceknight Oct 18, 2015
f38ef4e
Reorganisation of tutorials.
drvinceknight Oct 18, 2015
e932e60
First further topics tutorials.
drvinceknight Oct 18, 2015
fd228a2
Modifying the doctests.
drvinceknight Oct 18, 2015
1b5a188
Some minor rewording.
drvinceknight Oct 18, 2015
5024ba1
Starting work on contributions.
drvinceknight Oct 18, 2015
0d1e1ac
Creating empty advanced topics.
drvinceknight Oct 18, 2015
99ad48d
Refresh of overview of strategies: now doctested.
drvinceknight Oct 18, 2015
63432f7
Adding tutorial on classification
drvinceknight Oct 18, 2015
15d7cc2
Removing indices.
drvinceknight Oct 18, 2015
5996fd9
Adding glossary.
drvinceknight Oct 19, 2015
f242d43
Adding the suggestions from Marc
drvinceknight Oct 20, 2015
5b2afea
Adding section about the command line tool.
drvinceknight Oct 20, 2015
07fd6ea
Tidying of the tutorials structure.
drvinceknight Oct 20, 2015
afaf49c
Removing comment about matplotlib from guidelines.
drvinceknight Oct 20, 2015
dc0b98d
Code highlight for directory.
drvinceknight Oct 21, 2015
7ece707
Section on writing strategies
drvinceknight Oct 21, 2015
410d193
Section on adding the strategy _strategies.py
drvinceknight Oct 21, 2015
b1d814f
Section on classification.
drvinceknight Oct 21, 2015
099e48b
Section on testing.
drvinceknight Oct 21, 2015
23c1e83
Adding section about identify new strategies.
drvinceknight Oct 21, 2015
bad6072
Adding section on tests.
drvinceknight Oct 21, 2015
ff436a8
Fixing broken doctest.
drvinceknight Oct 21, 2015
a00afc5
Writing small section about general contributions.
drvinceknight Oct 21, 2015
b589c35
Removing test script.
drvinceknight Oct 21, 2015
48bc92c
Merge branch '299' of github.com:Axelrod-Python/Axelrod into 299
drvinceknight Oct 21, 2015
33f1d49
Fixing broken doctests.
drvinceknight Oct 21, 2015
976224a
Fixing doctest for py3.
drvinceknight Oct 21, 2015
b594dad
Fixing the test again.
drvinceknight Oct 22, 2015
a3a5b28
Various fixes pointed out by Owen
drvinceknight Oct 22, 2015
68cbbed
Going with is variety.
drvinceknight Oct 22, 2015
70c7461
Adding missing graphs and violin plots as required.
drvinceknight Oct 22, 2015
04a1fdd
Removing lipsum.
drvinceknight Oct 22, 2015
32b74f8
Adding seentence about no stochastic effect.
drvinceknight Oct 22, 2015
3986514
Adding definition of a win to glossary.
drvinceknight Oct 23, 2015
ad5c4c4
Better definition of win
drvinceknight Oct 23, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ _build/
*.log
dist/
MANIFEST
Axelrod.egg-info
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ script:
- cd ..
- coverage run --source=axelrod -m unittest discover
- coverage report -m
# Run the doctests
- sh doctest
after_success:
- coveralls
42 changes: 0 additions & 42 deletions docs/auto_generate_strategies_list.py

This file was deleted.

File renamed without changes.
4 changes: 0 additions & 4 deletions docs/description.rst

This file was deleted.

19 changes: 4 additions & 15 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,14 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

Welcome to the documentation for an implementation of Axelrod's tournament in Python
====================================================================================

This project is both:

* A python library that reproduces Axelrod's tournament.
* A github experiment allowing anyone to contribute a strategy.


Contents:
Welcome to the documentation for the Axelrod Python library
===========================================================

.. toctree::
:maxdepth: 2

background
usage
overview_of_strategies
index_of_strategies
contributing
tutorials/index.rst
reference/index.rst


Indices and tables
Expand Down
90 changes: 0 additions & 90 deletions docs/index_of_strategies.rst

This file was deleted.

68 changes: 68 additions & 0 deletions docs/reference/glossary.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
Glossary
========

There are a variety of terms used in the documentation and throughout the
library. Here is an overview:

An action
---------

An **action** is either :code:`C` or :code:`D`.
You can access these actions as follows but should not really have a reason to::

>>> import axelrod as axl
>>> axl.Actions.C
'C'
>>> axl.Actions.D
'D'

A play
------

A **play** is a single player choosing an **action**.
In terms of code this is equivalent to::

>>> p1, p2 = axl.Cooperator(), axl.Defector()
>>> p1.play(p2) # This constitues two 'plays' (p1 plays and p2 plays).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Equivalent to p2.play(p1). Either function invokes both p1.strategy(p2) and p2.strategy(p1).

This is equivalent to :code:`p2.play(p1)`. Either function invokes both
:code:`p1.strategy(p2)` and :code:`p2.strategy(p1)`.

A turn
------

A **turn** is a 1 shot interaction between two players. It is in effect a
composition of two **plays**.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Each turn has four possible sets of plays: (C, C), (C, D), (D, C), or (D, D).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @marcharper have added both of those suggestions: b2196cb


Each turn has four possible outcomes of a play: :code:`(C, C)`, :code:`(C, D)`,
:code:`(D, C)`, or :code:`(D, D)`.

A match
-------

A **match** is a consecutive number of **turns**. The default number of turns
used in the tournament is 200. Here is a single match between two players over
10 turns::

>>> p1, p2 = axl.Cooperator(), axl.Defector()
>>> for turn in range(10):
... p1.play(p2)
>>> p1.history, p2.history
(['C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'], ['D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'])

A win
-----

A **win** is attributed to the player who has the higher total score at the end
of a match. For the example above, :code:`Defector` would win that match.

A round robin
-------------

A **round robin** is the set of all potential (order invariant) matches between
a given collection of players.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should mention here that a round robin also includes self-interactions

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good point. Will do.

On 22 October 2015 at 17:35, Owen Campbell notifications@github.com wrote:

In docs/reference/glossary.rst
#372 (comment):

+A match is a consecutive number of turns. The default number of turns
+used in the tournament is 200. Here is a single match between two players over
+10 turns::
+

  • p1, p2 = axl.Cooperator(), axl.Defector()

  • for turn in range(10):

  • ... p1.play(p2)
  • p1.history, p2.history

  • (['C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C'], ['D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D', 'D'])

+A round robin
+-------------
+
+A round robin is the set of all potential (order invariant) matches between
+a given collection of players.
+

We should mention here that a round robin also includes self-interactions


Reply to this email directly or view it on GitHub
https://github.com/Axelrod-Python/Axelrod/pull/372/files#r42772158.

Dr Vincent Knight
Cardiff School of Mathematics
Senghennydd Road,
Cardiff
CF24 4AG
(+44) 29 2087 5548

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I don't think we should, this self-interaction is only relevant to the playoff matrix but (shouldn't be) isn't relevant to an actual tournament.

A tournament
------------

A **tournament** is a repetition of round robins so as to smooth out stochastic effects.
12 changes: 12 additions & 0 deletions docs/reference/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Reference
=========

This section is the reference guide for the various components of the library.

Contents:

.. toctree::
:maxdepth: 2

overview_of_strategies.rst
glossary.rst
Loading