routesearch:
- show distance
-
concurrency limit option
query_routesearch:
ap=A, ap=P turn into proper headings
notes about leagues
- show distance
-
links to per-route pages
concurrency limit
typedef struct {
double value[AP];
+ int length;
int ports[MAX_ROUTELEN];
} OnePotentialResult;
int midisle= ports[nports/2];
int midarch= route2midarch(ports,nports);
fprintf(output,
- " @%2d %c#%2d | start%3d mid%d:%3d f%d:%3d | %5d %5d %4d |",
+ " @%2d %c#%2d | start%3d mid%d:%3d f%d:%3d"
+ " | %3dlg | %5d %5d %4d |",
pos, "ap"[ap], nhighscores[granui][ap] - pos,
- ports[0], midarch,midisle, finarch,finisle,
+ ports[0], midarch,midisle, finarch,finisle, pr->length,
(int)hs->value, (int)pr->value[A], (int)pr->value[P]);
for (i=0; i<nports; i++) fprintf(output," %d",ports[i]);
fprintf(output,"\n");
} else {
int pos;
ctr_newbests_granu[granui*AP+ap]++;
+ bucket->prs[ap].length= totaldist;
memcpy(bucket->prs[ap].value, value, sizeof(value));
memcpy(bucket->prs[ap].ports, ports, sizeof(*ports) * nports);
if (nports < MAX_ROUTELEN-1) bucket->prs[ap].ports[nports]= -1;
<% $_ |h %>
<%perl>
}
- next unless
- m/^ \@ *\d+ ([ap])\# *\d+ \|.*\| *\d+ +(\d+) +(\d+) *\| ([0-9 ]+)$/;
- my ($ap,$isles) = (uc $1,$4);
+ next unless m/^ \@ *\d+ ([ap])\# *\d+ \|.*\| *(\d+)lg *\| *\d+ +(\d+) +(\d+) *\| ([0-9 ]+)$/;
+ my ($ap,$isles) = (uc $1,$5);
next if $results{$ap} && %{$results{$ap}} >= $maxcountea;
- my $item= { A => $2, P => $3 };
+ my $item= { A => $3, P => $4, Leagues => $2 };
my (@i, @a);
foreach (split / /, $isles) {
my ($name,$arch)= $isleinfo->($_);
<tbody>
<tr>
<th colspan=2>Profit
+<th>Dist.
<th>Archipelagoes
<th colspan=3>Route
<tr>
<th>Abs.
<th>Per.lg.
<th>
+<th>
<th>Start
<th>Via
<th>Finish
<tr class="datarow<% $datarow %>">
<td align=right><% $item->{A} |h %>
<td align=right><% $item->{P} |h %>
+<td align=right><% $item->{Leagues} |h %>
<td align=left><% join ', ', @{ $item->{Archs} } |h %>
<td align=left><% $item->{Start} |h %>,
<td align=left><% join ' ', map { $_.',' } @{ $item->{Vias} } |h %>
file ./routesearch
-set args -d OCEAN-Midnight.db -g 3 -D1 13470 20220 -1 0.0005 search 10 10 30 any 34 7 5 10 35 24 2 2>u
+set args -d OCEAN-Midnight.db -g 3 13470 20220 -1 0.0005 search 0 10 10 30 any 34 7 5 10 35 24 2 2>u
#break rssearch.c:179 if ports[0]==24 && ports[1]==21
run