-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
askmarilyn: Can she (as the Judge) tell me how much I drank? #15
Comments
The way to do it is to read a directory name from I agree that it's nice to tell the user whether their strategy is bad of if they are just outputting things in the wrong format. |
Turns out there is an Well… I can of course run one-round interactions by hand (and that works and puts |
I don't know a good way to test it; I would be inclined to take your commit as is and then test it on Kattis when the problem has been installed (which could happen far in advance of the contest if you email Kattis people and tell them that this requires early testing). If you feel the need for manual testing, then yeah, you probably do need to write that script yourself, or hack problemtools to leave temporary files around -- there's no built-in functionality for it AFAIK. |
I’ll write my own script. ’twill be good fun. Where do I put it without confusing problemtools? |
Basically anywhere that isn't |
OK, I’m going this route:
I find this extremely useful for development. Does it make sense to polish it and make it a pull request or am I wasting everybody’s time with something like that? |
It now summarises over test data and reports the last message for each submission, just like the rest of the verdicts. Seems to work great and makes the problem so much more accessible.
|
Hehe. The stubborn WA player |
Seems reasonable to submit a problemtools PR for! Have it read judgemessage.txt as well though and prefer that if it exists; teammessage.txt is rarer and generally gives more vague errors. |
Solved by patching verifyproblem and updated feedback accordingly in 526f6ca . Patch submitted as PR at Kattis/problemtools#140 |
The infrastructure with interactive problems is still a bit of a mystery to me. (It’s hard to simulate the user experience from the command line.)
I would love Marilyn to end the interaction with “You ended up with 659 beers. Well done.” (for AC) or “You ended up with only 502 beers. Too bad.” (for WA). This would be particularly useful for solvers who implement the wrong strategy. I know there is some way for Kattis to show hints, but I’m not sure how to write judge messages that end up in the right place.
The text was updated successfully, but these errors were encountered: