We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

dontbeajerk • 1 year ago

wow this is cool

luke-guyton • 1 year ago

typo: heard -> head

dontbeajerk • 1 year ago
tuning • 1 year ago

what

StormyPluto3865 • 3 months ago

How do I create a validator?

[CG]Thibaud • 3 months ago

a validator is just a regular test. If you're creating a puzzle using the platform directly, you add tests by pairs: the IDE test and its corresponding validators. With the SDK, it's a bit different

Xlos • 7 months ago

On CoC: Binary outputs should be avoided in CoC.

I don't think this makes any sense. If anyone really wants to solve the problem by binary searching for the hidden values on 7 validators and giving the right output, I think they have done more work than actually solving the problem. This is double true considering that these are CoC rules, not puzzles.
Many problems are naturally posed as binary and better left that way. A better rule would be "binary outputs should be accompanied by many test cases" or something.

tutubalin • 7 months ago

print(True) may give more than 50% scores.

ZackGabri • 7 months ago

they mean binary outputs such as outputting `true` or `false` only
binary is anything made out of 2, not necessarily binary counting

Alcalyn • 1 year ago

About "
The player's id should be 0.",how to handle that in multiplayer game ?

Should we transform index to players relative position to make them always appears as 0, and transform back their index in their output to retrieve the real index ? (I tried, it works but displays the relative index in game output so other players see this when playing game)

Or we should ignore and tell to the player with index he is ?

I looked at the "Chip poker race" multiplayer game, it tells to the player which index he is, so I'll follow this for now

[CG]Thibaud • 1 year ago

Yes, first option is better.