Skill Rating
Rating models
| Command | Description |
|---|---|
gameflow models create --name NAME --match-format FORMAT | Create a skill rating model. |
gameflow models list | List skill rating models. |
gameflow models get --model-id ID | Show a model. |
gameflow models update --model-id ID | Change a model's settings. Only the flags you pass change. |
gameflow models leaderboard --model-id ID --game-id GAME_ID | Show a model's leaderboard, best rated first. See Pagination. |
gameflow models player get --model-id ID --game-id GAME_ID --player-id PLAYER_ID | Show one player's rating. An unknown player gets the default rating. |
gameflow models delete --model-id ID | Delete a model with all its ratings and match records. |
Create a model
gameflow models create \
--name "Ranked 5v5" \
--match-format MATCH_FORMAT_TEAMS \
--number-of-teams 2 \
--players-per-team 5 \
--scored-by SCORED_BY_WIN_LOSS
--name and --match-format are required.
| Flag | Description | Values |
|---|---|---|
--match-format | The shape of a match. | MATCH_FORMAT_TEAMSMATCH_FORMAT_FFAMATCH_FORMAT_BATTLE_ROYALE |
--number-of-teams | How many teams a match has. | 1 to 10 |
--players-per-team | How many players fill each team. | 1 to 10 |
--scored-by | How you rank teams when you report a result. | SCORED_BY_WIN_LOSSSCORED_BY_PLACEMENTSCORED_BY_NUMERIC |
--status | Create the model live, or as a draft. Defaults to live. | SKILL_MODEL_STATUS_LIVESKILL_MODEL_STATUS_DRAFT |
--rating-algorithm | The rating algorithm. | See gameflow schema. |
--slug | A slug for the model. |
The match format, team shape and scoring are locked once the model exists. See Creating a Model.
Smoke-test rating
This command lets you check a setup end to end without writing a backend. It exists for testing, not as a replacement for the API calls your game makes.
| Command | Description |
|---|---|
gameflow ratings report --from-file match.json | Report a finished match and get the players' updated ratings. |