Skip to content

Commit

Permalink
library: Support rotate action
Browse files Browse the repository at this point in the history
  • Loading branch information
tchx84 committed Feb 22, 2024
1 parent d84e6e3 commit e7af523
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gameeky/library/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ def idle(self, time: int = 0) -> None:
def move(self, direction: Direction, time: int = 0) -> None:
self.perform(Action.MOVE, direction, time)

def rotate(self, direction: Direction, time: int = 0) -> None:
self.perform(Action.ROTATE, direction, time)

def take(self, time: int = 0) -> None:
self.perform(Action.TAKE, time=time)

Expand Down

0 comments on commit e7af523

Please sign in to comment.