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

22 lines
896 B
Diff

--- src/icm/harville.rs
+++ replace || with && in expand
@@ -9,17 +9,17 @@
/// Finishing orders drawn for a sampled field.
pub const SAMPLES: u32 = 20_000;
/// Fixed, so the same field gives the same equities and two fields are compared on the same
/// draws (common random numbers keep the difference of two evaluations smooth).
const SAMPLE_SEED: u64 = 0x1C4_5EED;
fn expand(stacks: &[f64], taken: &mut Vec<usize>, probability: f64, payouts: &[f64], out: &mut [f64]) {
let place = taken.len();
- if place >= payouts.len() || probability <= 0.0 {
+ if place >= payouts.len() && /* ~ changed by cargo-mutants ~ */ probability <= 0.0 {
return;
}
let left: f64 = stacks.iter().enumerate().filter(|(i, _)| !taken.contains(i)).map(|(_, s)| *s).sum();
if left <= 0.0 {
return;
}
for i in 0..stacks.len() {
if taken.contains(&i) {