Thank you for the solution, I will try it. Ah yes, I forgot to provide the spoiler flag.
The solution handled the distance incorrectly.
For example CT position: [0, 1], Bomb position: [4, 2], Kit position: [0, 0]
CT position: [0, 1], Bomb position: [4, 2], Kit position: [0, 0]
Distance of CT to Bomb should be 4. However, your solution gives 1. Same for Kit to Bomb.
4
1
Also, next time, put spoiler flag in your post when sending your code so that people who haven't solved it cannot see your solution.
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
Thank you for the solution, I will try it. Ah yes, I forgot to provide the spoiler flag.
The solution handled the distance incorrectly.
For example
CT position: [0, 1], Bomb position: [4, 2], Kit position: [0, 0]
Distance of CT to Bomb should be
4
. However, your solution gives1
. Same for Kit to Bomb.Also, next time, put spoiler flag in your post when sending your code so that people who haven't solved it cannot see your solution.
This comment is hidden because it contains spoiler information about the solution