And yet another possible new problem

Back to General discussions forum

zelevin     2022-09-06 16:10:57

...where my code generates a murder mystery and asks you to write a code that solves this mystery. Rodion: it's in your mailbox.

P.S. I also added my own solution to The Catacombs of Chronos. Alabama Adams will return in a future adventure.

Rodion (admin)     2022-09-07 09:15:20
User avatar

Vladimir, thanks a lot! It is published - sorry for delay - and looks curious, somewhat different from what we get used to, which is nice :) I cherish slight hope it is bit easier compared to some recent problems and going to try it myself bit later!

gardengnome     2022-09-07 10:59:52
User avatar

Not quite working just yet: :)

Expected answer was: ballroom, with the Miss Scarlett, in the rope.

zelevin     2022-09-07 13:07:22

Augh. The site Python is old and doesn't keep dictionary entries in the order of addition.

Rodion: I've emailed you a fixed script; sorry about that, and thanks!

Rodion (admin)     2022-09-07 13:11:54
User avatar

just a sec! but really one shouldn't rely on dictionary being ordered, I guess :)

Rodion (admin)     2022-09-07 13:13:57
User avatar

It is updated! Sorry for I really forget to relogin as testuser and check the expected answer generation at least myself, but unluckily got distracted by some work calls :)

zelevin     2022-09-07 13:25:51

Thank you!

Mathias, feel free to try again. Looks like you got an idea re: how this works.

gardengnome     2022-09-07 13:26:45
User avatar

Thanks, we are getting closer.

Reply: Expected answer: Colonel Mustard, with the rope, in the library. It should be: Culprit, in the location, with the weapon.

(I could of course change my output format to pass but I rather wait.)

zelevin     2022-09-07 13:32:01

This is entirely my fault this time. Rodion, please check your mailbox again and my repeated apologies.

gardengnome     2022-09-07 13:33:31
User avatar

No need to apologise whatsoever, rather a big thank to everybody who contributes with fun challenges!

Rodion (admin)     2022-09-07 13:40:06
User avatar

Updated again - and I agree no need for much apologies :)

Regretfully the flow of contributing problems is far from comfortable for you. Perhaps it would be nice to have some kind of playground, but regretfully this interpreter is the one used by the hosting provider itself, so it has potential of doing much harm even unintentionally :(

So let's agree that it's quite ok that problem may be tested-amended after publishing, moreover that it wasn't yet solved by hundreds of people :)

gardengnome     2022-09-07 13:44:53
User avatar

Working!

Btw, after the first hint but before the actual publishing of the problem, I checked how to get Prolog running on my machine, either directly or via PySwip in python. That wasn't as straightforward as I had hoped, but I might still come back to it as Prolog should be ideal for such kind of problems.

Rodion (admin)     2022-09-07 14:26:14
User avatar

Hm, about Prolog this is very curious. I remember trying to tinker with it 15-20 years ago, but got impression that it is a cool idea but lacking any real problems to be solved by it...

how to get Prolog running on my machine

Why not trying to find suitable docker image? After understanding how to launch docker few years ago I prefer to use almost any development-related software via it, if possible :)

Please login and solve 5 problems to be able to post at forum