Jump to content

24 game/Solve: Difference between revisions

m
→‎No EVAL: use atomicint to make concurrency safe
(→‎{{header|jq}}: more concise)
m (→‎No EVAL: use atomicint to make concurrency safe)
Line 4,906:
my $batch = ceiling +@perms/4;
 
my atomicint $i;
@perms.race(:batch($batch)).map: -> @p {
for @ops -> @o {
for @order -> @r {
my $result = evaluate(@p, @o, @r);
@sol.push:[$i⚛++] = $result[1] if $result[0] and $result[0] == $goal;
}
}
2,392

edits

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