A new formula is used to recalculate weights when the BookLearn option is on.
Unlike the old one, this allows the effective weight to increase by an
arbitrarily large factor between a move that always wins and one that always
draws (or between one that always draws and one that always loses).
weight[pos - first_pos] = 1000 * (uint32)entry->count;
if(option_get_bool(Option,"BookLearn")) // [HGM] improvised use of learn info
- weight[pos - first_pos] *= ((uint32)entry->n + 10.) /((uint32)entry->sum + 1.);
+ weight[pos - first_pos] *= ((uint32)entry->sum + 4.) / (2.*(uint32)entry->n - (uint32)entry->sum + 4.);
sum += weight[pos - first_pos];
}