Skip to main content

Skill Rating

Rating models​

CommandDescription
gameflow models create --name NAME --match-format FORMATCreate a skill rating model.
gameflow models listList skill rating models.
gameflow models get --model-id IDShow a model.
gameflow models update --model-id IDChange a model's settings. Only the flags you pass change.
gameflow models leaderboard --model-id ID --game-id GAME_IDShow a model's leaderboard, best rated first. See Pagination.
gameflow models player get --model-id ID --game-id GAME_ID --player-id PLAYER_IDShow one player's rating. An unknown player gets the default rating.
gameflow models delete --model-id IDDelete 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.

FlagDescriptionValues
--match-formatThe shape of a match.MATCH_FORMAT_TEAMS
MATCH_FORMAT_FFA
MATCH_FORMAT_BATTLE_ROYALE
--number-of-teamsHow many teams a match has.1 to 10
--players-per-teamHow many players fill each team.1 to 10
--scored-byHow you rank teams when you report a result.SCORED_BY_WIN_LOSS
SCORED_BY_PLACEMENT
SCORED_BY_NUMERIC
--statusCreate the model live, or as a draft. Defaults to live.SKILL_MODEL_STATUS_LIVE
SKILL_MODEL_STATUS_DRAFT
--rating-algorithmThe rating algorithm.See gameflow schema.
--slugA 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.

CommandDescription
gameflow ratings report --from-file match.jsonReport a finished match and get the players' updated ratings.