Skip to content
sunner edited this page Apr 26, 2012 · 14 revisions

Online Judge 2 Plugin for Moodle 2

This is for Moodle 2.x only. If you are using Moodle 1.9.x, go to Online Judge for Moodle 1.9.

Features

  • New! Support multi-files assignment. (sandbox only)
  • New! Global settings.
  • New! Rejudge one submission only.
  • New! Backup & restore. And import from another course.
  • Support both Linux and Windows, 32-bit and 64-bit.
  • Locally run C/C++ code in sophisticated sandbox environment to prevent attacks (e.g. rebooting system, accessing files/network, consuming/occupying system resources). (Linux only)
  • Remotely run C/C++, Java, C#, Python, php, schema and other 40+ languages in http://ideone.com. It is safe and free. See http://ideone.com/faq for full list of supported languages.
  • Different results (e.g. Accept, Wrong Answer, Presentation Error, Compilation Error, Time/Memory/Output Limit Exceed) get different grade.
  • Support multiply test cases.
  • Grade test cases separately. E.g., there are four cases and max grade of each is 25. The student pass three of them can get 25+25+25 = 75.
  • Customized feedback/hint can be shown to who doesn't pass the test.
  • Compile only mode.
  • Teachers can trigger rejudge of any submissions and grade manually anytime.
  • Support resubmit many times and one time submit.
  • More details (program output and etc.) can be shown to teachers.
  • Highlight code preview (powered by SyntaxHighlighter).
  • Easy installation, no root required.
  • Translation: English, Simplified Chinese and Portuguese

Screenshots

FAQ

Why does sandbox refuse to make?

In local/onlinejudge/judge/sandbox/sand, run the following commands and post output to issues.

uname -a
cc -v
make clean
make

Why pending forever

  1. Check whether the judge daemon (judged) is running. The process's name should be php or php.exe. If not, follow README to launch it.
  2. If the daemon quit by itself, check your PHP log (default to syslog or Windows NT events log) for detail error messages.

Why so many internal error of ideone.com

Ideone.com will reject the later access if the delay between accesses is too short. You can increase the delay value at settings->site administration->plugins->local plugins->onlinejudge

Credits

Sun Zhigang (sunner, 孙志岗) leads the project all the time. It is sponsored by Harbin Institute of Technology.

We learned and copied much from arkaitz.garro(AT gmail.com)'s program (or called epaile) assignment type which was freezed in 2007.

Other contributors:

  • 施兴 (paradisehit AT gmail.com) designed and implemented the prototype.
  • 刘禹 (pineapple.liu AT gmail.com)gave much help and advices.
  • 刘琦卿 (lqq0205 AT foxmail.com) contributed many codes.
  • After 2011, all the contributors can be found in git log.
Clone this wiki locally