kalisjoshua / euler

Project Euler solutions; they ask people not publish their answers but I want to be able to look at and share my solutions.
28 stars 16 forks source link

Standardize Output #28

Open kalisjoshua opened 11 years ago

kalisjoshua commented 11 years ago

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

joetech commented 11 years ago

JSON?

johnbfair commented 11 years ago

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.

joetech commented 11 years ago

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)?

kalisjoshua commented 11 years ago

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.

johnbfair commented 11 years ago

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.