Basic API call
POST /scores
{
"warrior_name": "Test Warrior",
"level_number": 1,
"level_score": 10,
"total_score": 10,
"source_code": "class Player ... end",
"time_bonus": 0
}
The default endpoint, and example site, is available at: http://rubywarrior.herokuapp.com/
Please use the scoreboard_rubywarrior gem in conjunction with this website. It will automatically post results to the endpoint you specify
- If the
HIDE_SOURCE
ENV variable is present, source code will be hidden - If the
HIDE_FLOG
ENV variable is present, flog details will be hidden
Many many thanks to Ryan Bates for creating the ruby-warrior gem.