From 4d2e4573ae0550095ae61f17ebbdb29dba756f2c Mon Sep 17 00:00:00 2001 From: Sasha Vezhnevets Date: Wed, 6 Dec 2023 04:09:34 -0800 Subject: [PATCH] aligning interface class and the game_master PiperOrigin-RevId: 588373107 Change-Id: I69f8bd66985c9a0f9c063d4c331fbc73aa254370 --- concordia/typing/game_master.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/concordia/typing/game_master.py b/concordia/typing/game_master.py index 8315e083..82984830 100644 --- a/concordia/typing/game_master.py +++ b/concordia/typing/game_master.py @@ -29,7 +29,6 @@ class GameMaster(metaclass=abc.ABCMeta): """A game master class.""" - @property @abc.abstractmethod def name( self, @@ -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.