Okay... I don't know why it doesn't work when

the mines can be hidden, so I have a janky
workaround. You might have to try moving the
cursor multiple times but at least now it actually
works. Next step, add flagging!!!!
This commit is contained in:
Cory
2024-05-19 02:33:51 -04:00
parent 75618c1de1
commit 8e54c5fe12
9 changed files with 50 additions and 36 deletions

View File

@@ -26,4 +26,8 @@ class Cursor:
if game.is_empty(new_position):
self.position = new_position
game.log("The cursor is at " + str(self.position))
for i in range(10):
game.log("mine"+str(i) + " is located at " + str(game.get_agent_by_name("mine"+str(i)).position))
def hide(self):
pass