Skip to content

Instantly share code, notes, and snippets.

@pistatium
Created September 10, 2019 08:46
Show Gist options
  • Select an option

  • Save pistatium/7c801fb0bb42e5ab8c5848bb2e562165 to your computer and use it in GitHub Desktop.

Select an option

Save pistatium/7c801fb0bb42e5ab8c5848bb2e562165 to your computer and use it in GitHub Desktop.
pong_team
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
# 追加で必要なパッケージがあれば記載してください。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment