faisalsayed10 / sinerider-scoring

The scoring server for SineRider game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SineRider scoring server

The SineRider scoring API

How to use (endpoints)

It will return an object of the form

{
  "id": "id of record in airtable",
  "expression": "the-math-expression",
  "T": 3.5,
  "level": "levelName",
  "charCount": 5,
  "gameplay": "URL to a video of the gameplay using submitted solution"
}
  • Send a GET request to /all to get all the scores that have been saved. The scores have been sorted by charCount and T both in ascending order.

  • Send a GET request to /level/<LEVEL_NAME> (e.g /level/HELLO_WORLD) to get all scores for that specific level sorted by charCount and T.

  • Send a GET request to /generate to generate a new level and store it in airtable. Does not return the URL to the generated game

  • Send a GET request to /daily to get a random level from the airtable to play. Once the level is returned, the game url will be marked as played and may not be returned in the future.

About

The scoring server for SineRider game


Languages

Language:TypeScript 69.6%Language:Python 25.1%Language:JavaScript 2.5%Language:Dockerfile 1.4%Language:Shell 1.3%