Skip to content

Commit

Permalink
aligning interface class and the game_master
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 588373107
Change-Id: I69f8bd66985c9a0f9c063d4c331fbc73aa254370
  • Loading branch information
vezhnick authored and copybara-github committed Dec 6, 2023
1 parent 7a1603a commit 4d2e457
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions concordia/typing/game_master.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
class GameMaster(metaclass=abc.ABCMeta):
"""A game master class."""

@property
@abc.abstractmethod
def name(
self,
Expand All @@ -40,15 +39,15 @@ def name(
@abc.abstractmethod
def update_from_player(
self,
action_attempt: str,
player_name: str,
action_attempt: str,
) -> str:
"""Returns the outcome of the action attempt.
Args:
player_name: the name of the player performing the action
action_attempt: a description of an action that the player is trying to
perform. It can succeed or fail.
player_name: the name of the player performing the action
Returns:
the outcome of the action_attempt.
Expand Down

0 comments on commit 4d2e457

Please sign in to comment.