コード例 #1
0
ファイル: playerstub.py プロジェクト: bsguedes/coup-core
 def play(self, must_coup, players):
     logging.info('Player play: {}'.format(must_coup))
     headers = {'Must-Coup': 'true' if must_coup else 'false'}
     r = requests.get(self.uri + "/play/", headers=headers)
     return Action.decode_action_from_dict(self.__decode_response(r),
                                           players)