I've participated in a few online programming contests and found the online judges used quite remarkable in functionality.
Coming to the point of the topic, my college is also about to hold an online programming contest and I'm in charge of the event. I was evaluating my options for implementing an online judge. Sure I could make use of some already available judges like the one at SPOJ but it struck me that I and a few of my friends can as well try building one. If we fail, we can always fall back on these.
So can anyone please give me some outline or resources as to how do I get about it? It'd be also helpful if I get some idea about how the judges achieve 'sandboxing'. We got about a couple of months in hand.
UPDATE This is the outcome of my effort so far in 2 weeks after asking a couple of more questions on SO itself http://github.com/anomit/loki
I am not sure what an online judge is, but I assume it is a piece of software to evaluate programs for correctness.
I would use some build, test and analysis libraries for this. Examples would be Ant, JUnit, and Checkstyle.
You would take the code provided by the participant, and drop it into a file. Use the build tool to compile it.
Then run some tests, that verify the correctness of the solution.
Finally run some code analysis utility to judge the quality of the code.
Of course you might want to shift the point values to your needs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With