Revoltle - new problem from Vladimir

Back to General discussions forum

zelevin     2022-08-16 11:54:16

Rodion: thanks for posting "Revoltle"! The file wordle.txt, however, is not accessible - would you mind making it so?

zelevin     2022-08-16 12:08:15

...and thanks for the quick fix!

Rodion (admin)     2022-08-16 12:18:16
User avatar

Yep, luckily you were very quick to check it and inform me :)

Let's have this topic for possible discussions around the problem also! BTW I wonder why you mentioned FORTH (except that it has 5 letter due to technical/historical reason). I'm quite fond of the language but haven't made up my mind yet to make challenges with it on codeabbey (supposing people may not like it that much).

gardengnome     2022-08-16 12:27:08
User avatar

A suggestion: could the first line of the input contain the number of lines/guesses to follow? Otherwise it is not easy to work out how many lines to read from stdin (unless you want to check for \n or similar). When you read the input via a file than the EOF provides a natural end, but that doesn't apply to general stdin input.

Rodion (admin)     2022-08-16 12:38:41
User avatar

If Vladimir won't object, I would try to add the number, yes.

On the other hand probably idea is that when you find you read enough lines to uniquely identify the word, you may stop?

BTW, Vladimir - I'm trying to add small auxiliary feature - please reload the problem's page and tell if you see the yellow button above (and if it works for you).

zelevin     2022-08-16 12:48:16

Mathias: great idea!

Rodion: I've submitted the modified checker code, including a comment at the point where changes start. Can you please add two lines which say "4" after each "input data:" line, and change the following sentence:

Your puzzle input will be several lines: a log of guesses and responses.

to this:

Your puzzle input will be a number N, followed by N lines: a log of guesses and responses.

Yes, I see the orange button. I hope the other solvers don't. :D

Vladimir

zelevin     2022-08-16 12:54:06

Oh, and also: no, there is no requirement to use Forth. But I couldn't resist the paraphrase:

https://knowyourmeme.com/photos/747556-may-the-force-be-with-you-may-the-4th-be-with-you

gardengnome     2022-08-16 12:59:43
User avatar

Thank you!

Supporting stdin input generally allows running the code in the sandbox on the server, though in this case a) Rodion's suggestion of course works and b) the loading of the wordle file makes the sandbox option difficult (unless that file exists there and we can access it).

CSFPython     2022-08-16 13:18:25

Vladimir,

Thanks for another nice problem. I had heard people talking about wordl but had never got around to looking at it. I appreciated your very clear explanation of the scoring system.

Rodion (admin)     2022-08-16 13:18:46
User avatar

Hopefully changes are visible (and consistent) now - please have a look!

Got the pun about forth and force. I really feel myself a slowpoke :)))

makes the sandbox option difficult (unless that file exists there and we can access it)

yep, regretfully it is something difficult either to implement or to manage, especially since sandbox can't be run on the "shared" hosting which hosts the site itself... in theory it is possible to collect such data files for problems in some github folder... and automatically upload / map it somehow in the "container" of the sandbox... perhaps need to try thinking about this deeper!

Rodion (admin)     2022-08-16 13:20:35
User avatar

I had heard people talking about wordl

That's curious :) as I shared to Vladimir in email, I spent quite a time in the past solving puzzles exactly at NYT web-site, as far as I remember, while participating in some very dull project with long daily calls.

Rodion (admin)     2022-08-16 13:23:15
User avatar

Yes, I see the orange button. I hope the other solvers don't.

At least I don't see. What button? what it is about at all?

Thanks for confirmation, I then iterate over problems created by you, Clive and other colleagues slowly and set the "authorship flag" which makes this button to appear to the author (what button?) - main idea is to make it easier to reuse the code.

Quandray     2022-08-16 17:39:01
User avatar

If anyone fancies another problem linked to Wordle, there's one at the bottom of https://challenges.aquaq.co.uk/ (login required)

Rodion (admin)     2022-08-17 06:41:38
User avatar

Well, this login with github could be inconvenient... But there are no specific secrets hidden (probably it is to protect input from abuse, not to hide statement), so I guess it is ok if I leave printscreen of the mentioned problem here: https://i.imgur.com/Xm6kSpq.png

Curious collection, though I'm a bit lost about who created it and with what purpose - perhaps they use it for testing candidates?

The problem seem to resemble "bulls and cows", right, but with massive input?

zelevin     2022-08-17 15:22:23

The point of that puzzle is to determine the uniqueness of the solution. As soon as that happens, a new game begins - but all the logs are glued together.

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