You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.AssertionError: Assert failed: Invalid dest for message #maelstrom.net.message.Message{:id 1, :src "n0", :dest "c0", :body {:in_reply_to 1, :type "init_ok"}}
I sorta guessed by reading the spec that making my code emit a newline after each message would follow the stated spec better and might just work. And it did! Simply adding (displayln "") before (flush-output) in the above code makes it work and pass the tests.
The way to run the above code is, assuming Racket 8.8 is installed, to generate an executable using raco exe echo.rkt, then running the resulting echo binary with maelstrom.
PS I don't feel too strongly about this thing and wouldn't mind if the issue is closed as unimportant
The text was updated successfully, but these errors were encountered:
I tried the "echo" challenge from the fly-io site. Good idea to have a simple echo things to sort out the basic setup.
So one program I tried was the following Racket code:
The above code results in the following error:
I sorta guessed by reading the spec that making my code emit a newline after each message would follow the stated spec better and might just work. And it did! Simply adding
(displayln "")
before(flush-output)
in the above code makes it work and pass the tests.The way to run the above code is, assuming
Racket 8.8
is installed, to generate an executable usingraco exe echo.rkt
, then running the resultingecho
binary with maelstrom.PS I don't feel too strongly about this thing and wouldn't mind if the issue is closed as unimportant
The text was updated successfully, but these errors were encountered: