I was able to make the obstacles spawn on the screen more than just the top, now just need to work on moving my frog!

This commit is contained in:
mollychi
2025-12-06 17:43:02 -05:00
parent 4f3655867f
commit 12f0b05e25
5 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ class Obstacle:
game.remove_agent(self)
else:
froggy = game.get_agent_by_name('froggy')
new_position = (x, y + 1)
new_position = (x, y)
if new_position == froggy.position:
game.end()
else: