Shadows of the Knight - Episode 1 - Puzzle discussion

ok thanks Mr Anderson

Nice,love it

Bonjour; je ne comprends pas quelle forme doit avoir la sortie.

  1. System.out.println(X Y);
  2. System.out.println(X, Y);
  3. System.out.println(“X, Y”);
    


Pourriez-vous m’aider svp ?

always as a String. So if you need to output a position, you do

System.out.println(x+" "+y);

Did you get this code working? Could you help me, pls?

Im stuck at last level(Not there), are it even possible to complete?

1 Like

La solution doit ressembler Ă  : “X Y” en sortie d’exĂ©cution.

hey, i could really use help on this one thanks! <3

hey this one worked for me.

For anyone using python to solve this problem, i would just like to point out that round function behaviour is a bit weird as in:
round(0.5) --> 0
round(1.5) --> 2

more information can be found here: https://stackoverflow.com/questions/10825926/python-3-x-rounding-behavior

1 Like

I need help on #4 it says i have five rounds but instantly makes me lose = (

any one know how to get bomb location in “Shadows of the knight -e1”?

I have the same problem as some other here have mentioned: only the last 2 tests fail, apparently halving the ranges is not done optimally enough. I wish someone would give some hint about the solution.

seems you managed to solve it meanwhile. Hint is “binary search”.

1 Like

Yes, thanks, in fact there was a fault in my code in a direction, but now its sorted out carrément,

I have the same problem

my code doesnt get level two validation for no reason i can think of. The test went well. what is the diference?

What does the console is saying to you ?

[Java] You should also consider the ‘round’ function.

The ranges (limits) are important.

Just use a simple schema/drawing to help you identify how to reframe the search section for each cases (U, D, DL
) for each game iteration.