natsukagami / kjudge

A simple system for hosting competitive programming contests.
GNU Affero General Public License v3.0
23 stars 11 forks source link

Move sandbox code to seperated module #104

Closed minhnhatnoe closed 1 year ago

minhnhatnoe commented 1 year ago

There might be more sandboxes in the future, so moving them to a separate folder should be better.

Also created NewSandbox() function in worker/sandbox.go to create a sandbox instance, given a name. I was trying to make a new module for comparing sandboxes' performance, and saw that sandbox creation was implemented in cmd/kjudge/main.go.