Skip to content

Commit

Permalink
Merge pull request #1058 from drvinceknight/dbs-long-run-time
Browse files Browse the repository at this point in the history
Re classify run time for dbs.
  • Loading branch information
meatballs authored Jul 11, 2017
2 parents 5e31724 + fa9c6b5 commit 4c9bc4f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion axelrod/strategies/dbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DBS(Player):
'memory_depth': float('inf'),
'stochastic': False,
'makes_use_of': set(),
'long_run_time': False,
'long_run_time': True,
'inspects_source': False,
'manipulates_source': False,
'manipulates_state': False
Expand Down
2 changes: 1 addition & 1 deletion axelrod/tests/strategies/test_dbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class TestDBS(TestPlayer):
'memory_depth': float('inf'),
'stochastic': False,
'makes_use_of': set(),
'long_run_time': False,
'long_run_time': True,
'inspects_source': False,
'manipulates_source': False,
'manipulates_state': False
Expand Down
13 changes: 7 additions & 6 deletions axelrod/tests/unit/test_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,21 +188,22 @@ def test_inclusion_of_strategy_lists(self):

def test_long_run_strategies(self):
long_run_time_strategies = [
axl.DBS,
axl.MetaMajority,
axl.MetaMajorityFiniteMemory,
axl.MetaMajorityLongMemory,
axl.MetaMinority,
axl.MetaMixer,
axl.MetaWinner,
axl.MetaWinnerDeterministic,
axl.MetaWinnerEnsemble,
axl.MetaMajorityFiniteMemory,
axl.MetaWinnerFiniteMemory,
axl.MetaMajorityLongMemory,
axl.MetaWinnerLongMemory,
axl.MetaMixer,
axl.MetaWinnerStochastic,
axl.NMWEDeterministic,
axl.NMWEFiniteMemory,
axl.MetaWinnerDeterministic,
axl.NMWELongMemory,
axl.NMWEStochastic,
axl.NMWEDeterministic,
axl.MetaWinnerStochastic,
axl.NiceMetaWinner,
axl.NiceMetaWinnerEnsemble
]
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/advanced/classification_of_strategies.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ Some strategies have been classified as having a particularly long run time::
... }
>>> strategies = axl.filtered_strategies(filterset)
>>> len(strategies)
17
18

Strategies that :code:`manipulate_source`, :code:`manipulate_state`
and/or :code:`inspect_source` return :code:`False` for the :code:`obey_axelrod`
Expand Down

0 comments on commit 4c9bc4f

Please sign in to comment.