Skip to content

bitbrain-za/judge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIT license dependency status Continuous integration

Welcome to the Judge!

This purpose of this application is to mediate your submissions to the code challenge. It will run your submission and record the results, adding them to the scoreboard. It can also let you view the scoreboard in a variety of different ways.

Features

  • Generates a random data set
  • Invokes the challenger program, passes the data set and records execution time
  • Updates a MYSQL database with the player name and results.
  • Posts the results to a teams channel

Dependencies

Usage

0. Admin

  • --announcement release To announce a new release
  • --announcement launch To announce when a new challenge is opened
  • --version Prints the version

1. Scoreboard

  • -p REQUIRED Prints the score board (use -n to limit the lines printed)
  • -l OPTIONAL Number of entries to print (if not provided the entire table is returned)
  • --unique players OPTIONAL Only show the first score per a player
  • --unique binaries OPTIONAL Only show the first score per a binary
  • --unique language OPTIONAL Only show the first score per a binary
  • --player <playername> OPTIONAL only show scores for the given player (can be used multiple times to select multiple players)
  • --language <language> OPTIONAL only show scores for the given language (can be used multiple times to select more than one language)
  • --binary <binary_name> OPTIONAL only show scores for the given binary (can be used multiple times to select more than one binary)
  • --sort <player/binary/language/time> OPTIONAL sort the list by the givn column (default is time)

Filters: The filters will be aplied in the order they are provided.

2. Running a test

  • -c <COMMAND> REQUIRED The command that was run (if you have parameters, include quotation marks)
  • -L <language> REQUIRED The language you wrote your binary in
  • -t OPTIONAL Test-mode - Results will not be saved to the DB
  • -q OPTIONAL Quiet Mode - No messages published to the teams channel
  • -C <challenge> REQUIRED - The challenge you're submitting for

To wipe the DB:

  • -w Wipes the DB (requires root)

3. Debug Options

  • -v <LEVEL> OPTIONAL Defaults to info
    • error
    • info
    • warn
    • debug
    • trace
  • -o <OUTPUT> OPTIONAL Defaults to syslog
    • syslog
    • stdout

About

Judge application for pikkewyne code challenge

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages