Giter Club home page Giter Club logo

95_s_pa0_judge's Introduction

You need to be on Linux for this to work
Tester won't run on other platforms so don't complain!

If you are on OS X, use a vm other than Parallels. Its known to tweak linux system in unorthodox ways. VMWare Fusion is probably a better solution.

After downloading and unpacking the tester do as follows:

chmod +x init.sh
chmod +x start.sh
sudo ./init.sh

this will install the prerequisites for the tester and can take a while depending on your bandwidth. Once completed:

source start.sh

You are now in a python virtualenv. your shell prompt should begin with a (venv). If it doesn't then there probably something wrong.

cd script-runners

place your code under /Tester/codes (take a look at ./Tester/judge to see the format)
navigate to /Tester/codes and run:

make clean
make

navigate to /Tester/judge and run:

make clean
make

Now, the tester is ready to be run.

nvigate to /script-runners and execute:

/run.sh (you might need to chmod +x it beforehand)

Tests will run and you'll be preseneted with lots of usefull (and useless) logs and your score.

What the tester does is simply running our code with the testcases, then running yours and finaly comparing their ourputs. Any conflicts between your output and ours and you'll lose the grade for that item.
Details of the grading can be seen by consulting /script-runners/Tester/tests/key.py and messaging.py.

There are two tests:
* key.py
* messaging.py

Your final grade is calculated using this formula:
		grade(key) * 0.2 + grade(messaging) * 0.8

If you have any problems getting it to work you can shhot a mail at the course's mailinglist or email me for a quicker response.
[email protected]

There is probably an easter egg or two for those who seek it.
Good luck !

95_s_pa0_judge's People

Contributors

hishki avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.