| 1 | #! /bin/false | ||||||||||||
| 2 | |||||||||||||
| 3 | # Copyright (C) 2021-2026 Guido Flohr <guido.flohr@cantanea.com>, | ||||||||||||
| 4 | # all rights reserved. | ||||||||||||
| 5 | |||||||||||||
| 6 | # This program is free software. It comes without any warranty, to | ||||||||||||
| 7 | # the extent permitted by applicable law. You can redistribute it | ||||||||||||
| 8 | # and/or modify it under the terms of the Do What the Fuck You Want | ||||||||||||
| 9 | # to Public License, Version 2, as published by Sam Hocevar. See | ||||||||||||
| 10 | # http://www.wtfpl.net/ for more details. | ||||||||||||
| 11 | |||||||||||||
| 12 | # Make Dist::Zilla happy. | ||||||||||||
| 13 | # ABSTRACT: Analyze chess games in PGN format | ||||||||||||
| 14 | |||||||||||||
| 15 | package Chess::Plisco::Engine::TimeControl; | ||||||||||||
| 16 | 7 | $Chess::Plisco::Engine::TimeControl::VERSION = 'v1.0.3'; | |||||||||||
| 17 | 7 | ▶ | use strict; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 18 | |||||||||||||
| 19 | 7 | ▶ | use Time::HiRes qw(gettimeofday tv_interval); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 20 | |||||||||||||
| 21 | 7 | ▶ | use Chess::Plisco::Engine::TimeControl::MovesToGo; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 22 | |||||||||||||
| 23 | 7 | my $log10 = log 10; | |||||||||||
| 24 | |||||||||||||
| 25 | 706 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 26 | 706 | my ($class, $tree) = @_; | |||||||||||
| 27 | |||||||||||||
| 28 | 706 | my $self = { | |||||||||||
| 29 | start_time => 0, | ||||||||||||
| 30 | optimum => 0, | ||||||||||||
| 31 | maximum => 0, | ||||||||||||
| 32 | tree => $tree, | ||||||||||||
| 33 | }; | ||||||||||||
| 34 | |||||||||||||
| 35 | 706 | bless $self, $class; | |||||||||||
| 36 | } | ||||||||||||
| 37 | |||||||||||||
| 38 | 10 | ▶ | my $min = sub { | ||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
| |||||||||||||
| 39 | 10 | my ($A, $B) = @_; | |||||||||||
| 40 | |||||||||||||
| 41 | 10 | ▶ | return $A < $B ? $A : $B; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 42 | 7 | }; | |||||||||||
| 43 | |||||||||||||
| 44 | 4 | ▶ | my $max = sub { | ||||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
| |||||||||||||
| 45 | 4 | my ($A, $B) = @_; | |||||||||||
| 46 | |||||||||||||
| 47 | 4 | ▶ | return $A > $B ? $A : $B; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 48 | 7 | }; | |||||||||||
| 49 | |||||||||||||
| 50 | # Called at the beginning of the search. | ||||||||||||
| 51 | 354 | ▶ | sub init { | ||||||||||
|
Subroutine
init: called CC=8 SCAR=21.7
Pod
undocumented
| |||||||||||||
| 52 | 354 | my ($self, $limits, $us, $ply, $params, $original_time_adjust) = @_; | |||||||||||
| 53 | |||||||||||||
| 54 | 354 | $self->{start_time} = $limits->{start_time}; | |||||||||||
| 55 | |||||||||||||
| 56 | 354 | my $my_time = $limits->{time}->[$us]; | |||||||||||
| 57 | |||||||||||||
| 58 | 354 | ▶ | return if !$my_time; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 59 | |||||||||||||
| 60 | 2 | my $move_overhead = $min->($params->{move_overhead}, 5000); | |||||||||||
| 61 | 2 | my ($opt_scale, $max_scale); | |||||||||||
| 62 | |||||||||||||
| 63 | 2 | my $scaled_time = $my_time; | |||||||||||
| 64 | |||||||||||||
| 65 | # FIXME! This can be replaced by our empirically found numbers. | ||||||||||||
| 66 | 2 | ▶ | my $centi_mtg = $limits->{movestogo} ? $min->($limits->{movestogo} * 100, 5000) : 5051; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 67 | |||||||||||||
| 68 | 2 | ▶ | if ($scaled_time < 1000) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 69 | 0 | $centi_mtg = $scaled_time * 5.051; | |||||||||||
| 70 | } | ||||||||||||
| 71 | |||||||||||||
| 72 | my $time_left = $max->(1, | ||||||||||||
| 73 | $my_time | ||||||||||||
| 74 | 2 | + ($limits->{inc}->[$us] * ($centi_mtg - 100) - $move_overhead * (200 + $centi_mtg)) / 100 | |||||||||||
| 75 | ); | ||||||||||||
| 76 | |||||||||||||
| 77 | 2 | ▶ | if ($limits->{movestogo} == 0) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 78 | 2 | ▶ | if ($$original_time_adjust < 0) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 79 | 1 | $$original_time_adjust = 0.3128 * log($time_left) / $log10 - 0.4354; | |||||||||||
| 80 | } | ||||||||||||
| 81 | |||||||||||||
| 82 | 2 | my $log_time_in_sec = log($scaled_time / 1000) / $log10; | |||||||||||
| 83 | 2 | my $opt_constant = $min->(0.0032116 + 0.000321123 * $log_time_in_sec, 0.00508017); | |||||||||||
| 84 | 2 | my $max_constant = $max->(3.3977 + 3.03950 * $log_time_in_sec, 2.94761); | |||||||||||
| 85 | |||||||||||||
| 86 | 2 | $opt_scale = $min->(0.0121431 + ($ply + 2.94693) ** 0.461073 * $opt_constant, | |||||||||||
| 87 | 0.213035 * $my_time / $time_left) | ||||||||||||
| 88 | * $$original_time_adjust; | ||||||||||||
| 89 | |||||||||||||
| 90 | 2 | $max_scale = $min->(6.67704, $max_constant + $ply / 11.9847); | |||||||||||
| 91 | } else { | ||||||||||||
| 92 | 0 | $opt_scale = | |||||||||||
| 93 | $min->((0.88 + $ply / 116.4) / ($centi_mtg / 100.0), 0.88 * $my_time / $time_left); | ||||||||||||
| 94 | 0 | $max_scale = 1.3 + 0.11 * ($centi_mtg / 100.0); | |||||||||||
| 95 | } | ||||||||||||
| 96 | |||||||||||||
| 97 | 2 | $self->{tree}->{optimum} = ($opt_scale * $time_left); | |||||||||||
| 98 | $self->{tree}->{maximum} = | ||||||||||||
| 99 | 2 | $min->(0.825179 * $my_time - $move_overhead, $max_scale * $self->{tree}->{optimum}) - 10; | |||||||||||
| 100 | 2 | ▶ | $self->{tree}->{maximum} = $self->{tree}->{optimum} if $self->{tree}->{maximum} <= 0; | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 101 | |||||||||||||
| 102 | 2 | ▶ | if ($params->{ponder}) { | ||||||||||
|
Branch: 1 branch
| |||||||||||||
| 103 | 0 | $self->{tree}->{optimum} += $self->{optimum} >> 2; | |||||||||||
| 104 | } | ||||||||||||
| 105 | } | ||||||||||||
| 106 | |||||||||||||
| 107 | 0 | ▶ | sub elapsed { | ||||||||||
|
Subroutine
elapsed: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 108 | 0 | my ($self) = @_; | |||||||||||
| 109 | |||||||||||||
| 110 | 0 | return 1000 * tv_interval($self->{start_time}); | |||||||||||
| 111 | } | ||||||||||||
| 112 | |||||||||||||
| 113 | 0 | ▶ | sub movesToGo { | ||||||||||
|
Subroutine
movesToGo: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||
| 114 | 0 | my ($self) = @_; | |||||||||||
| 115 | |||||||||||||
| 116 | 0 | my $position = $self->{__tree}->{position}; | |||||||||||
| 117 | 0 | my $score = abs($position->evaluate); | |||||||||||
| 118 | |||||||||||||
| 119 | 0 | ▶ | my $mtg = Chess::Plisco::Engine::TimeControl::MovesToGo::MOVES_TO_GO->[$score] | ||||||||||
|
Condition0%0/2
["26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.2","26.12","26.08","25.96","25.92","25.84","25.84","26.08","26.12","26.12","26.28","26.36","26.36","26.32","26.24","26.2","26.08","25.96","25.88","25.8","25.74","25.66","25.62","25.58","25.58","25.54","25.54","25.54","25.62","25.58","25.58","25.54","25.22","25.14","25.06","24.82","24.62","24.5","24.42","24.34","24.22","24.18","24.06","23.98","23.9","23.8","23.72","23.6","23.56","23.44","23.32","23.2","23.08","22.84","22.72","22.6","22.48","22.4","22.28","22.2","22.08",22,"21.92","21.8","21.72","21.6","21.48","21.4","21.28","21.2","21.16","21.04","20.96","20.84","20.72","20.64","20.52","20.44","20.32","20.28","20.16","20.08","19.96","19.84","19.76","19.68","19.56","19.46","19.42","19.34","19.26","19.18","19.14","19.06","18.98","18.82","18.78","18.66","18.54","18.46","18.34","18.22","18.1","18.06","17.94","17.86","17.78","17.74","17.7","17.62","17.54","17.48","17.42","17.34","17.26","17.18","17.1","16.98","16.86","16.78","16.7","16.62","16.54","16.5","16.46","16.42","16.42","16.38","16.3","16.26","16.22","16.18","16.14","16.06","15.98","15.94","15.88","15.8","15.72","15.64","15.6","15.56","15.52","15.52","15.48","15.42","15.42","15.46","15.42","15.34","15.3","15.26","15.22","15.22","15.14","15.1","15.06","14.98","14.98","14.98","14.9","14.82","14.82","14.78","14.74","14.74","14.74","14.7","14.7","14.66","14.68","14.64","14.52","14.48","14.44","14.4","14.36","14.28","14.24","14.24","14.2","14.16","14.16","14.16","14.08","14.12","14.12","14.12","14.16","14.16","14.12","14.08","14.08","14.04","14.04","13.96","13.88","13.92","13.92","13.9","13.9","13.86","13.86","13.82","13.78","13.74","13.74","13.66","13.66","13.66","13.62","13.7","13.58","13.54","13.5","13.54","13.5","13.5","13.46","13.42","13.42","13.46","13.42","13.42","13.48","13.44","13.44","13.48","13.48","13.48","13.48","13.44","13.48","13.4","13.36","13.32","13.24","13.28","13.28","13.28","13.2","13.16","13.12","13.12","13.16","13.12","13.08","13.04","13.04","13.04","13.04","13.04",13,13,"13.04","13.04","13.04","13.04","13.04","13.08","13.12","13.12","13.12","13.08","13.04","13.04","13.14","13.14","13.18","13.14","13.18","13.18","13.26","13.26","13.22","13.22","13.26","13.3","13.3","13.3","13.34","13.38","13.46","13.5","13.5","13.46","13.46","13.46","13.46","13.5","13.54","13.52","13.52","13.48","13.48","13.5","13.5","13.42","13.42","13.42","13.46","13.42","13.42","13.46","13.46","13.5","13.5","13.46","13.46","13.5","13.58","13.62","13.66","13.7","13.78","13.74","13.78","13.82","13.86","13.98","13.96","13.96","14.08","14.08","14.08","14.08","14.12","14.12","14.2","14.16","14.12","14.08","14.04","14.04","14.04","14.04",14,14,"13.96","13.96",14,"13.96","13.98","14.02","13.94","14.02","14.1","14.1","14.06","14.1","14.1","14.18","14.22","14.18","14.3","14.38","14.5","14.54","14.54","14.54","14.56","14.68","14.68","14.76","14.76","14.72","14.68","14.7","14.62","14.66","14.66","14.62","14.58","14.62","14.62","14.62","14.5","14.46","14.34","14.22","14.14","14.06","14.06","14.02","13.98","13.92","13.8","13.76","13.68","13.56","13.56","13.52","13.52","13.52","13.52","13.48","13.44","13.4","13.36","13.32","13.24","13.24","13.24","13.28","13.28","13.32","13.32","13.28","13.32","13.28","13.24","13.24","13.24","13.2","13.24","13.2","13.2","13.12","13.08","12.96","12.88","12.8","12.72","12.64","12.56","12.56","12.52","12.44","12.44","12.4","12.24","12.16","12.14","12.06","12.02","11.98","11.94","11.9","11.94","11.94","11.9","11.86","11.76","11.76","11.74","11.78","11.82","11.88","11.88","11.92","11.88","11.88","11.76","11.68","11.6","11.62","11.58","11.52","11.52","11.48","11.48","11.4","11.36","11.32","11.24","11.24","11.32","11.34","11.34","11.32","11.24","11.2","11.1","11.1","11.1","11.14","11.06","11.18","11.18","11.18","11.24","11.2","11.24","11.24","11.24","11.16","11.16","11.1","11.02","11.02","10.98","10.88","10.88","10.84","10.8","10.8","10.74","10.74","10.7","10.66","10.62","10.62","10.58","10.58","10.62","10.54","10.54","10.46","10.42","10.46","10.54","10.58","10.64","10.68","10.72","10.84","10.9","10.82","10.82","10.82","10.82","10.84","10.88","10.92","10.88","10.84","10.88","10.8","10.72","10.68","10.64","10.64","10.64","10.6","10.52","10.36","10.36","10.28","10.24","10.12"]->[$score] // 10
MC/DC0%0/1
["26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.2","26.12","26.08","25.96","25.92","25.84","25.84","26.08","26.12","26.12","26.28","26.36","26.36","26.32","26.24","26.2","26.08","25.96","25.88","25.8","25.74","25.66","25.62","25.58","25.58","25.54","25.54","25.54","25.62","25.58","25.58","25.54","25.22","25.14","25.06","24.82","24.62","24.5","24.42","24.34","24.22","24.18","24.06","23.98","23.9","23.8","23.72","23.6","23.56","23.44","23.32","23.2","23.08","22.84","22.72","22.6","22.48","22.4","22.28","22.2","22.08",22,"21.92","21.8","21.72","21.6","21.48","21.4","21.28","21.2","21.16","21.04","20.96","20.84","20.72","20.64","20.52","20.44","20.32","20.28","20.16","20.08","19.96","19.84","19.76","19.68","19.56","19.46","19.42","19.34","19.26","19.18","19.14","19.06","18.98","18.82","18.78","18.66","18.54","18.46","18.34","18.22","18.1","18.06","17.94","17.86","17.78","17.74","17.7","17.62","17.54","17.48","17.42","17.34","17.26","17.18","17.1","16.98","16.86","16.78","16.7","16.62","16.54","16.5","16.46","16.42","16.42","16.38","16.3","16.26","16.22","16.18","16.14","16.06","15.98","15.94","15.88","15.8","15.72","15.64","15.6","15.56","15.52","15.52","15.48","15.42","15.42","15.46","15.42","15.34","15.3","15.26","15.22","15.22","15.14","15.1","15.06","14.98","14.98","14.98","14.9","14.82","14.82","14.78","14.74","14.74","14.74","14.7","14.7","14.66","14.68","14.64","14.52","14.48","14.44","14.4","14.36","14.28","14.24","14.24","14.2","14.16","14.16","14.16","14.08","14.12","14.12","14.12","14.16","14.16","14.12","14.08","14.08","14.04","14.04","13.96","13.88","13.92","13.92","13.9","13.9","13.86","13.86","13.82","13.78","13.74","13.74","13.66","13.66","13.66","13.62","13.7","13.58","13.54","13.5","13.54","13.5","13.5","13.46","13.42","13.42","13.46","13.42","13.42","13.48","13.44","13.44","13.48","13.48","13.48","13.48","13.44","13.48","13.4","13.36","13.32","13.24","13.28","13.28","13.28","13.2","13.16","13.12","13.12","13.16","13.12","13.08","13.04","13.04","13.04","13.04","13.04",13,13,"13.04","13.04","13.04","13.04","13.04","13.08","13.12","13.12","13.12","13.08","13.04","13.04","13.14","13.14","13.18","13.14","13.18","13.18","13.26","13.26","13.22","13.22","13.26","13.3","13.3","13.3","13.34","13.38","13.46","13.5","13.5","13.46","13.46","13.46","13.46","13.5","13.54","13.52","13.52","13.48","13.48","13.5","13.5","13.42","13.42","13.42","13.46","13.42","13.42","13.46","13.46","13.5","13.5","13.46","13.46","13.5","13.58","13.62","13.66","13.7","13.78","13.74","13.78","13.82","13.86","13.98","13.96","13.96","14.08","14.08","14.08","14.08","14.12","14.12","14.2","14.16","14.12","14.08","14.04","14.04","14.04","14.04",14,14,"13.96","13.96",14,"13.96","13.98","14.02","13.94","14.02","14.1","14.1","14.06","14.1","14.1","14.18","14.22","14.18","14.3","14.38","14.5","14.54","14.54","14.54","14.56","14.68","14.68","14.76","14.76","14.72","14.68","14.7","14.62","14.66","14.66","14.62","14.58","14.62","14.62","14.62","14.5","14.46","14.34","14.22","14.14","14.06","14.06","14.02","13.98","13.92","13.8","13.76","13.68","13.56","13.56","13.52","13.52","13.52","13.52","13.48","13.44","13.4","13.36","13.32","13.24","13.24","13.24","13.28","13.28","13.32","13.32","13.28","13.32","13.28","13.24","13.24","13.24","13.2","13.24","13.2","13.2","13.12","13.08","12.96","12.88","12.8","12.72","12.64","12.56","12.56","12.52","12.44","12.44","12.4","12.24","12.16","12.14","12.06","12.02","11.98","11.94","11.9","11.94","11.94","11.9","11.86","11.76","11.76","11.74","11.78","11.82","11.88","11.88","11.92","11.88","11.88","11.76","11.68","11.6","11.62","11.58","11.52","11.52","11.48","11.48","11.4","11.36","11.32","11.24","11.24","11.32","11.34","11.34","11.32","11.24","11.2","11.1","11.1","11.1","11.14","11.06","11.18","11.18","11.18","11.24","11.2","11.24","11.24","11.24","11.16","11.16","11.1","11.02","11.02","10.98","10.88","10.88","10.84","10.8","10.8","10.74","10.74","10.7","10.66","10.62","10.62","10.58","10.58","10.62","10.54","10.54","10.46","10.42","10.46","10.54","10.58","10.64","10.68","10.72","10.84","10.9","10.82","10.82","10.82","10.82","10.84","10.88","10.92","10.88","10.84","10.88","10.8","10.72","10.68","10.64","10.64","10.64","10.6","10.52","10.36","10.36","10.28","10.24","10.12"]->[$score] // 10
["26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.2","26.12","26.08","25.96","25.92","25.84","25.84","26.08","26.12","26.12","26.28","26.36","26.36","26.32","26.24","26.2","26.08","25.96","25.88","25.8","25.74","25.66","25.62","25.58","25.58","25.54","25.54","25.54","25.62","25.58","25.58","25.54","25.22","25.14","25.06","24.82","24.62","24.5","24.42","24.34","24.22","24.18","24.06","23.98","23.9","23.8","23.72","23.6","23.56","23.44","23.32","23.2","23.08","22.84","22.72","22.6","22.48","22.4","22.28","22.2","22.08",22,"21.92","21.8","21.72","21.6","21.48","21.4","21.28","21.2","21.16","21.04","20.96","20.84","20.72","20.64","20.52","20.44","20.32","20.28","20.16","20.08","19.96","19.84","19.76","19.68","19.56","19.46","19.42","19.34","19.26","19.18","19.14","19.06","18.98","18.82","18.78","18.66","18.54","18.46","18.34","18.22","18.1","18.06","17.94","17.86","17.78","17.74","17.7","17.62","17.54","17.48","17.42","17.34","17.26","17.18","17.1","16.98","16.86","16.78","16.7","16.62","16.54","16.5","16.46","16.42","16.42","16.38","16.3","16.26","16.22","16.18","16.14","16.06","15.98","15.94","15.88","15.8","15.72","15.64","15.6","15.56","15.52","15.52","15.48","15.42","15.42","15.46","15.42","15.34","15.3","15.26","15.22","15.22","15.14","15.1","15.06","14.98","14.98","14.98","14.9","14.82","14.82","14.78","14.74","14.74","14.74","14.7","14.7","14.66","14.68","14.64","14.52","14.48","14.44","14.4","14.36","14.28","14.24","14.24","14.2","14.16","14.16","14.16","14.08","14.12","14.12","14.12","14.16","14.16","14.12","14.08","14.08","14.04","14.04","13.96","13.88","13.92","13.92","13.9","13.9","13.86","13.86","13.82","13.78","13.74","13.74","13.66","13.66","13.66","13.62","13.7","13.58","13.54","13.5","13.54","13.5","13.5","13.46","13.42","13.42","13.46","13.42","13.42","13.48","13.44","13.44","13.48","13.48","13.48","13.48","13.44","13.48","13.4","13.36","13.32","13.24","13.28","13.28","13.28","13.2","13.16","13.12","13.12","13.16","13.12","13.08","13.04","13.04","13.04","13.04","13.04",13,13,"13.04","13.04","13.04","13.04","13.04","13.08","13.12","13.12","13.12","13.08","13.04","13.04","13.14","13.14","13.18","13.14","13.18","13.18","13.26","13.26","13.22","13.22","13.26","13.3","13.3","13.3","13.34","13.38","13.46","13.5","13.5","13.46","13.46","13.46","13.46","13.5","13.54","13.52","13.52","13.48","13.48","13.5","13.5","13.42","13.42","13.42","13.46","13.42","13.42","13.46","13.46","13.5","13.5","13.46","13.46","13.5","13.58","13.62","13.66","13.7","13.78","13.74","13.78","13.82","13.86","13.98","13.96","13.96","14.08","14.08","14.08","14.08","14.12","14.12","14.2","14.16","14.12","14.08","14.04","14.04","14.04","14.04",14,14,"13.96","13.96",14,"13.96","13.98","14.02","13.94","14.02","14.1","14.1","14.06","14.1","14.1","14.18","14.22","14.18","14.3","14.38","14.5","14.54","14.54","14.54","14.56","14.68","14.68","14.76","14.76","14.72","14.68","14.7","14.62","14.66","14.66","14.62","14.58","14.62","14.62","14.62","14.5","14.46","14.34","14.22","14.14","14.06","14.06","14.02","13.98","13.92","13.8","13.76","13.68","13.56","13.56","13.52","13.52","13.52","13.52","13.48","13.44","13.4","13.36","13.32","13.24","13.24","13.24","13.28","13.28","13.32","13.32","13.28","13.32","13.28","13.24","13.24","13.24","13.2","13.24","13.2","13.2","13.12","13.08","12.96","12.88","12.8","12.72","12.64","12.56","12.56","12.52","12.44","12.44","12.4","12.24","12.16","12.14","12.06","12.02","11.98","11.94","11.9","11.94","11.94","11.9","11.86","11.76","11.76","11.74","11.78","11.82","11.88","11.88","11.92","11.88","11.88","11.76","11.68","11.6","11.62","11.58","11.52","11.52","11.48","11.48","11.4","11.36","11.32","11.24","11.24","11.32","11.34","11.34","11.32","11.24","11.2","11.1","11.1","11.1","11.14","11.06","11.18","11.18","11.18","11.24","11.2","11.24","11.24","11.24","11.16","11.16","11.1","11.02","11.02","10.98","10.88","10.88","10.84","10.8","10.8","10.74","10.74","10.7","10.66","10.62","10.62","10.58","10.58","10.62","10.54","10.54","10.46","10.42","10.46","10.54","10.58","10.64","10.68","10.72","10.84","10.9","10.82","10.82","10.82","10.82","10.84","10.88","10.92","10.88","10.84","10.88","10.8","10.72","10.68","10.64","10.64","10.64","10.6","10.52","10.36","10.36","10.28","10.24","10.12"]->[$score]
Truth table0%0/2
A
A= ["26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.48","26.2","26.12","26.08","25.96","25.92","25.84","25.84","26.08","26.12","26.12","26.28","26.36","26.36","26.32","26.24","26.2","26.08","25.96","25.88","25.8","25.74","25.66","25.62","25.58","25.58","25.54","25.54","25.54","25.62","25.58","25.58","25.54","25.22","25.14","25.06","24.82","24.62","24.5","24.42","24.34","24.22","24.18","24.06","23.98","23.9","23.8","23.72","23.6","23.56","23.44","23.32","23.2","23.08","22.84","22.72","22.6","22.48","22.4","22.28","22.2","22.08",22,"21.92","21.8","21.72","21.6","21.48","21.4","21.28","21.2","21.16","21.04","20.96","20.84","20.72","20.64","20.52","20.44","20.32","20.28","20.16","20.08","19.96","19.84","19.76","19.68","19.56","19.46","19.42","19.34","19.26","19.18","19.14","19.06","18.98","18.82","18.78","18.66","18.54","18.46","18.34","18.22","18.1","18.06","17.94","17.86","17.78","17.74","17.7","17.62","17.54","17.48","17.42","17.34","17.26","17.18","17.1","16.98","16.86","16.78","16.7","16.62","16.54","16.5","16.46","16.42","16.42","16.38","16.3","16.26","16.22","16.18","16.14","16.06","15.98","15.94","15.88","15.8","15.72","15.64","15.6","15.56","15.52","15.52","15.48","15.42","15.42","15.46","15.42","15.34","15.3","15.26","15.22","15.22","15.14","15.1","15.06","14.98","14.98","14.98","14.9","14.82","14.82","14.78","14.74","14.74","14.74","14.7","14.7","14.66","14.68","14.64","14.52","14.48","14.44","14.4","14.36","14.28","14.24","14.24","14.2","14.16","14.16","14.16","14.08","14.12","14.12","14.12","14.16","14.16","14.12","14.08","14.08","14.04","14.04","13.96","13.88","13.92","13.92","13.9","13.9","13.86","13.86","13.82","13.78","13.74","13.74","13.66","13.66","13.66","13.62","13.7","13.58","13.54","13.5","13.54","13.5","13.5","13.46","13.42","13.42","13.46","13.42","13.42","13.48","13.44","13.44","13.48","13.48","13.48","13.48","13.44","13.48","13.4","13.36","13.32","13.24","13.28","13.28","13.28","13.2","13.16","13.12","13.12","13.16","13.12","13.08","13.04","13.04","13.04","13.04","13.04",13,13,"13.04","13.04","13.04","13.04","13.04","13.08","13.12","13.12","13.12","13.08","13.04","13.04","13.14","13.14","13.18","13.14","13.18","13.18","13.26","13.26","13.22","13.22","13.26","13.3","13.3","13.3","13.34","13.38","13.46","13.5","13.5","13.46","13.46","13.46","13.46","13.5","13.54","13.52","13.52","13.48","13.48","13.5","13.5","13.42","13.42","13.42","13.46","13.42","13.42","13.46","13.46","13.5","13.5","13.46","13.46","13.5","13.58","13.62","13.66","13.7","13.78","13.74","13.78","13.82","13.86","13.98","13.96","13.96","14.08","14.08","14.08","14.08","14.12","14.12","14.2","14.16","14.12","14.08","14.04","14.04","14.04","14.04",14,14,"13.96","13.96",14,"13.96","13.98","14.02","13.94","14.02","14.1","14.1","14.06","14.1","14.1","14.18","14.22","14.18","14.3","14.38","14.5","14.54","14.54","14.54","14.56","14.68","14.68","14.76","14.76","14.72","14.68","14.7","14.62","14.66","14.66","14.62","14.58","14.62","14.62","14.62","14.5","14.46","14.34","14.22","14.14","14.06","14.06","14.02","13.98","13.92","13.8","13.76","13.68","13.56","13.56","13.52","13.52","13.52","13.52","13.48","13.44","13.4","13.36","13.32","13.24","13.24","13.24","13.28","13.28","13.32","13.32","13.28","13.32","13.28","13.24","13.24","13.24","13.2","13.24","13.2","13.2","13.12","13.08","12.96","12.88","12.8","12.72","12.64","12.56","12.56","12.52","12.44","12.44","12.4","12.24","12.16","12.14","12.06","12.02","11.98","11.94","11.9","11.94","11.94","11.9","11.86","11.76","11.76","11.74","11.78","11.82","11.88","11.88","11.92","11.88","11.88","11.76","11.68","11.6","11.62","11.58","11.52","11.52","11.48","11.48","11.4","11.36","11.32","11.24","11.24","11.32","11.34","11.34","11.32","11.24","11.2","11.1","11.1","11.1","11.14","11.06","11.18","11.18","11.18","11.24","11.2","11.24","11.24","11.24","11.16","11.16","11.1","11.02","11.02","10.98","10.88","10.88","10.84","10.8","10.8","10.74","10.74","10.7","10.66","10.62","10.62","10.58","10.58","10.62","10.54","10.54","10.46","10.42","10.46","10.54","10.58","10.64","10.68","10.72","10.84","10.9","10.82","10.82","10.82","10.82","10.84","10.88","10.92","10.88","10.84","10.88","10.8","10.72","10.68","10.64","10.64","10.64","10.6","10.52","10.36","10.36","10.28","10.24","10.12"]->[$score]
| |||||||||||||
| 120 | // 10; | ||||||||||||
| 121 | |||||||||||||
| 122 | 0 | return $mtg; | |||||||||||
| 123 | } | ||||||||||||
| 124 | |||||||||||||
| 125 | 7 | 1; | |||||||||||