Skip to content
Snippets Groups Projects
Commit 01b75411 authored by Tessaris Sergio's avatar Tessaris Sergio
Browse files

Docstring for UserPlayer

parent c916fbc0
No related branches found
No related tags found
No related merge requests found
......@@ -364,6 +364,7 @@ class RandomPlayer(Player):
class UserPlayer(Player):
"""This player asks the user for the next move, if it's not ambiguous it accepts also commands initials and ignores the case."""
def play(self, turn: int, state, actions: Iterable[Agent.Actions]) -> Agent.Actions:
actions_dict = {a.name: a for a in actions}
print('{} percept:'.format(self.name))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment