euler icon indicating copy to clipboard operation
euler copied to clipboard

Standardize Output

Open kalisjoshua opened this issue 11 years ago • 5 comments

If we have a common output format for all solutions then parsing or otherwise using the result of a solution attempt will be easier.

kalisjoshua avatar Sep 10 '13 02:09 kalisjoshua

JSON?

joetech avatar Sep 10 '13 03:09 joetech

We should probably think about masking the answer to prevent people from Googling the problem and getting an answer immediately. Kind of detracts from the spirit of Project Euler.

johnbfair avatar Sep 15 '13 19:09 johnbfair

Perhaps a file that is added manually that contains the answers (one per line) and is listed in .gitignore to prevent it from getting shared (or overwritten)?

joetech avatar Sep 16 '13 03:09 joetech

I thought about adding a single file with all the answers - because the answers are the same no matter the language - but decided against it because I didn't want to bloat the repo with file I/O functionality when all we need to do is include a number in each working file.

But I could be convinced in another direction possibly.

I wasn't too worried about people finding the answer in this repo since this in unlikely to become the canonical repo for Project Euler solutions anytime soon. But who knows I guess.

Everyone is doing a great job.

kalisjoshua avatar Sep 16 '13 16:09 kalisjoshua

I'm in favor of a single answers file where the answers are (perhaps) Base64 encoded (meaning their values won't be indexable by google, but anyone who wants to cheat could go through the exercise of decoding them).

I've already removed all of the answers from the F# examples.

johnbfair avatar Sep 16 '13 23:09 johnbfair