private function getRingAngle($ring, $hash)
    {
        return 10 * pow(2, 3 - $ring) * array_reduce(
            str_split($hash, pow(2, 3 - $ring)),
            function ($total, $substr) {
                return $total + (hexdec($substr) % 2);
            },
            0
        );
    }