There is no Spoon - Episode 1 puzzle discussion


#44

I see no problem with that input.


#45

ok ok… I find my fault… :slight_smile:


#47

u have me missed of some different testcase other than mentioned in problem.


#49

hi guys,
i think this puzzle is bug.
Why under Visual studio 2015 all case work and not with this compiler?


#50

I don’t understand how the output should look like.
My code outputs one line per node, line looks like this for example:

0 1 -1 -1 -1 -1

The lines are printed out one by one. The game says:
Timeout: the program did not provide 1 input lines in due time…


#51

What are the keys to use? Do you know or anybody else that does either ?


#52

I am new at coding. I just had one question. Don’t understand how the inputs are put in. I know that they are coordinates according to the grid, I think. I just don’t know how to make them work with one another. I am using JAVA SCRIPT if anyone would kindly give me tips. I am honestly not looking to complete the puzzle just yet. I just need to work towards it.


#53

First off, it’s the width and height in two rows. That part’s filled in for you already.

5
3

The data itself is a matrix of .'s a 0’s that will look something like this:

000.0
.0.0.
0...0

The coordinates are the position in the matrix, where (0,0) is the top left position.


#54

What data type is best to use for storing the input? If I use int, the .'s throw me off. If I use char, I get weird data stored in my array.


#55

I’m trying to solve this in Java, but I’m failing the horizontal (and square) tests. The output I get is:
Standard Error Stream:
height=3,i=0: line = 0.0
height=3,i=1: line = …
height=3,i=2: line = 0.0
Standard Output Stream:
0 0 -1 -1 -1 -1
Game information:
(-1, -1) is not to the right of (0, 0). Expected (2, 0).

It seems to me that the right-hand neighbor of (0,0) doesn’t exist (the value is ‘.’). I don’t see why the correct answer would be (2,0). Can someone explain that to me? (My vertical tests succeeded).


#56

Oh, I get it. I just read carefully through the instructions again.


#57

you missed the <<endl after 6 integers ( i have to put << endl after only 6 integers)


#58

Why does this puzzle has Lists (and only Lists) specified in it’s tags?
Seems kinda random to me. Am I the only one who cannot see an obvious solution involving lists?
(other than, you know, the fact that a 2D array can technically be described as a list of lists)


#59

because the next doesn’t really mean the “next”, more like the next node.


#61

Hello, I got stuck on the diagonal test of the puzzle. I have an algorithm that after finding the node, it searches the next neighbour node, and if it doesnt find any, (for example, while searching the closest right neighbour, searching ends at when it reaches the value width value) stops and writes “-1 -1”. However this algorithim doesnt work for diagonal. Thank you in advance.


#62

Okay - I am a beginner.
I am trying to print debugging messages in Python, but the program errors saying "invalid input. Expected ‘x1 y1 x2 y2 x3 y3’ but found ‘Debug messages… 2 2’ and it never gets past the first print message. I have done used the print function to debug on the other beginner programs with no issues.


#63

Try adding a call to sys.stderr.flush() after your debug print calls.

  • danBhentschel

#64

Thank you for the idea…but I still only get the first print line and nothing else.


#65

Mp your code so I can quickly look into it.


#66

Sample Code

just to note - this is just me trying to get something to print.