Skip to content

A Simple Code Judging that made from Go. It's help your to auto test result from your code.

License

Notifications You must be signed in to change notification settings

TheNongice/go-grader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Code Judging

A code judging system is made from GoLang. This system is made for using with C/C++ programing languages. Currently, This system is in prototype for using to learn how to create automation code judging system only.

This programs is make for Debian & Ubuntu.

Feature

  • Auto compile C/C++ source code.
  • Auto judging the result from execute files.
  • Check walltime, runtime to decide time out. (Using Isolate)
  • It can specific the wrong & correct answer.

Setup

This program currently in alpha. I'm not make auto-install script untill it's in beta. (Manual Setup)

  1. Install GoLang (Version 1.23.x)
  2. Install Isolate (MANUAL INSTALL)
  3. Setup go-grader in .env with these example!
ISOLATE_PATH=/var/local/lib/isolate/
DIR_GRADER_PATH=/home/YOUR_USER/go_grader/
# Please don't forget / (black-slash).
  1. You can create problem testcase following this method:
  • Make new directory as ./problem/<problem_id>/
  • Make output and input file as:
  • Input use <number_testcase>.int
  • Output use <number_testcase>.out
  • Make a description of problem as desc.json with these content:
{
    "problem_title": "Problem_Name",
    "max_time": 1,
    "max_memory": 65536,
    "amount_testcase": 3
}

If you can't imagine what's you should to make them, You can use this picture as reference.

Sample Folder Structure to add new problem list

Note: max_time and max_memory are used seconds and kilobytes (kB)

  1. Let's start! (with many bug!)

Cautions

This programs is in testing. It support for Debian. Who's interest to use/contributed this script. You're welcome!

About

A Simple Code Judging that made from Go. It's help your to auto test result from your code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published