When there is an almost infinite time-frame during an exam, a creative student is able to convert it in an education experience. So, it stops being an assessment!

Task: Prove us your coding skills through the fun environment of CodingGame.

An autonomy-oriented student transforms the very first simplest assignment into a reverse engineering procedure which allows for secret details of the construct to be revealed!

After several attempts to make it right, I have managed to discover that the maximum value of "dist1" and "dist2" is less than 100! It must be an integer (assumption).

Then (I 'm too bored to post several images with adjusting the value of "dist1" in the "if" statement), I observed that a distance of "5" must be very near to our gun firing aliens!

P.S. No. I haven't "cheated" by watching the values in the console output because it wouldn't be more fun.

So, an autonomy-oriented student (in our case, an extremist) is able to improve the code before even it is suggested to him. We have managed to understand that we could increase the efficiency of your gun (killing aliens faster) without the need to increase its firing rate!?

#education #eLearning #remoteLearning #technologyEnhancedLearning #CooperativeLearning #programming #java #reverseEngineering #fun #teaching

If the "<" is not a ">" (the first part of the "if" statement ) in the image tooted here describing the procedure, then the reverse engineering attempt is jeopardized since the second part of the "if" statement (dist1<100) stops being able to affect the outcome of our problem,. regardless the value of the integer "100".