<?php

declare(strict_types=1);

namespace Tournament\Scoring;

interface ScoringStrategy
{
    /**
     * Calculate the final score of a participant.
     *
     * @param array{
     *     participant_id: int,
     *     score?: float|int|null,
     *     placement?: int|null,
     *     kills?: int|null
     * } $result
     */
    public function calculateScore(
        array $result
    ): float;
}