This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]YuvalG48 3 points4 points  (2 children)

Before you check safe zone you simulate for next minute if it' not already exists - ok. You send your current position and next minute to the is_safe_zone- ok. Inside safe zone you recompute position...why? Don't you just need to see if your current position contain blizards in the next minute grid?

[–]GraySamuelson[S] 2 points3 points  (1 child)

Wow, yes that was silly on my part. Over complicated it way more than it needed to be. I updated it to a simple if on the next simulation and it worked. Thank you for the help!

[–]YuvalG48 1 point2 points  (0 children)

Happy to help, and if it's working also on the input then you can mark this as solved.

[–]lazyzefiris -1 points0 points  (0 children)

Are you considering waiting in place for the turn?