Seabed Security (Fall Challenge 2023) - Puzzle Discussion

Feel free to send your feedback or ask some help here!

Game link: Seabed Security - Fall Challenge 2023

Don’t hesitate to check out the topic for the corresponding contest: Coding Games and Programming Challenges to Code Better

Thanks! You see, I would like to use my robot’s X and Y coordinates and battery level to code my code, but I think my code isn’t working because the X and Y coordinate and battery level variable of my enemy are LITERALLY THE SAME. Could someone give me advice regarding to this issue?