Files
pokerfreak/mutants.out.old/diff/src__icm__harville.rs_line_29_col_16.diff
T

22 lines
670 B
Diff

--- src/icm/harville.rs
+++ replace += with -= in expand
@@ -21,17 +21,17 @@
if left <= 0.0 {
return;
}
for i in 0..stacks.len() {
if taken.contains(&i) {
continue;
}
let p = probability * stacks[i] / left;
- out[i] += p * payouts[place];
+ out[i] -= /* ~ changed by cargo-mutants ~ */ p * payouts[place];
taken.push(i);
expand(stacks, taken, p, payouts, out);
taken.pop();
}
}
/// Expected prize per player. Places beyond the paid ones pay nothing; more payouts than
/// players are cut to the field. The sum of the result is the sum of the paid prizes.