Created
September 10, 2019 08:46
-
-
Save pistatium/7c801fb0bb42e5ab8c5848bb2e562165 to your computer and use it in GitHub Desktop.
pong_team
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pongpy.interfaces.team import Team | |
| from pongpy.models.game_info import GameInfo | |
| from pongpy.models.state import State | |
| class MyTeam(Team): | |
| """ https://github.com/pistatium/pong """ | |
| @property | |
| def name(self) -> str: | |
| return 'myteam' | |
| def atk_action(self, info: GameInfo, state: State) -> int: | |
| return 1 | |
| def def_action(self, info: GameInfo, state: State) -> int: | |
| return 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 追加で必要なパッケージがあれば記載してください。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment