im stuck as the same place as last time lol

This commit is contained in:
mollychi
2025-12-13 19:13:20 -05:00
parent 12f0b05e25
commit b2dd17e4ad
3 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -14,7 +14,8 @@ class Frog:
if keystroke.name == "KEY_RIGHT":
new_position = (x + 1, y)
if keystroke.name == "KEY_UP":
new_position = (x, y + 1)
froggy = game.get_agent_by_name('froggy')
froggy.position = (froggy.position[0], froggy.position[1]+1)
if game.on_board(new_position):
if game.is_empty(new_position):
self.position = new_position