Jump to content

Horse racing: Difference between revisions

m
→‎{{header|Raku}}: Minor cleanup
(→‎{{header|Raku}}: Add aRaku example)
m (→‎{{header|Raku}}: Minor cleanup)
Line 460:
%card<i> = { name => 'Iphigenia in Brooklyn', :sex<F>, rating => %card<g><rating> + 15 - 2*2 };
%card<j> = { name => 'Josephine', :sex<F>, rating => Nil };
 
 
# adjustments to ratings for current race
Line 468 ⟶ 467:
%card<j><rating> = %card<a><rating> - 3 + 10*0.2;
 
# adjust filly's allowance to give weight adjusted weighting
# initialize carry weights and time and distance
for %card { .value<rating> += 3 if .value<sex> eq 'F' }
 
# initialize carry weights and time and distance
for %card {
.value<weightrating> += (3 if .value<sex> eq 'MF') ?? 9.00 !! 8.11;
.value<backweight> = 0;(.value<sex> eq 'M') ?? 9.00 !! 8.11
}
.value<time> = 0;
}
 
 
my ($previous, $position, $leader) = 0;
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.