# [Community Puzzle] Shoot Enemy Aircraft

this had me thinking like 2 whole days, aint no way this is easyyy
but it was fun tho

1 Like

It was fun.
I handled shift down of aircrafts when they arenāt targetable before they reach altitude boundaries .

Itās badly that this kind of scenario wasnāt checked by validators/test.
Because this usecase need more work on implementations.

This puzzle was supposed to be a CoC so I didnāt made it too difficult. Every aircraft can be shot. Maybe I should have added unreachable aircraft ā¦ I didnāt think about it when I made this puzzle as an easy one.

Description is certainly lacking, it should clearly describe all possible (and impossible) conditions.
For example, what happens if planes collide?
Is it always possible to shoot all planes?
Does the missile gets destroyed when it hits the plane, or does it travel further?
I know certain things might be obvious, but all assumptions on input data should be unambiguous

Yes it was obvious for me, and nobody asked me to add these informations when the puzzle wasnāt approved yet.
The statement has been updated, thanks for your feedback.

I really enjoyed that, thanks!

1 Like

Yes, very good one, thank you

is there any other test case? having the same problem as the above comment

Thank you, this is a really nice puzzle. Concise and intriguing.
I have passed all the testcases. I also tested it with multiple hardcore scenarios including the one you suggested but after submitting I only receive 75% score. I have spent half my day on it and just need that 100% as a compensate.

Are you failing āHold the lineā? See here: [Community Puzzle] Shoot Enemy Aircraft - #15 by Remi

i did it and all tests were correct but when i submit my code, i take 75%

Took me two days to understand there is a simple solution without actually drawing the missiles

Very nice idea, butā¦
I assume that a spaceship that reaches the border (without being hit), changes its direction and moves one row down. But this does not happen and the behaviour is not mentioned in the description.
Also, there is not enough tests.

Each turn they move one cell forward.

This is subject to interpretation.

A spaceship that reaches the border just disappears and you missed it, it was obvious for me but I can add it to the statement if you think itās necessary.