Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix makes_use_of on MindReader #1331

Merged
merged 5 commits into from
Apr 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 4 additions & 2 deletions axelrod/data/all_classifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,8 @@ Mind Controller:
Mind Reader:
inspects_source: true
long_run_time: false
makes_use_of: !!set {}
makes_use_of: !!set
game: null
manipulates_source: false
manipulates_state: false
memory_depth: .inf
Expand Down Expand Up @@ -1295,7 +1296,8 @@ Prober 4:
Protected Mind Reader:
inspects_source: true
long_run_time: false
makes_use_of: !!set {}
makes_use_of: !!set
game: null
manipulates_source: true
manipulates_state: false
memory_depth: .inf
Expand Down
4 changes: 2 additions & 2 deletions axelrod/strategies/mindreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MindReader(Player):
classifier = {
"memory_depth": float("inf"),
"stochastic": False,
"makes_use_of": set(),
"makes_use_of": {"game"},
"long_run_time": False,
"inspects_source": True, # Finds out what opponent will do
"manipulates_source": False,
Expand Down Expand Up @@ -61,7 +61,7 @@ class ProtectedMindReader(MindReader):
classifier = {
"memory_depth": float("inf"),
"stochastic": False,
"makes_use_of": set(),
"makes_use_of": {"game"},
"long_run_time": False,
"inspects_source": True, # Finds out what opponent will do
"manipulates_source": True, # Stops opponent's strategy
Expand Down
4 changes: 2 additions & 2 deletions axelrod/tests/strategies/test_mindreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class TestMindReader(TestPlayer):
expected_classifier = {
"memory_depth": float("inf"),
"stochastic": False,
"makes_use_of": set(),
"makes_use_of": {"game"},
"long_run_time": False,
"inspects_source": True,
"manipulates_source": False,
Expand Down Expand Up @@ -101,7 +101,7 @@ class TestProtectedMindReader(TestPlayer):
expected_classifier = {
"memory_depth": float("inf"),
"stochastic": False,
"makes_use_of": set(),
"makes_use_of": {"game"},
"long_run_time": False,
"inspects_source": True, # Finds out what opponent will do
"manipulates_source": True, # Stops opponent's strategy
Expand Down