generated from mwc/project_game
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:
@@ -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
|
||||
Reference in New Issue
Block a user