let header_regex = Regex::new(r#"parity\s+([0-9]+)\s*;"#).expect("Regex compilation should not fail");
|(amount, total): (usize, usize)| info!("Read {} vertices ({}%)...", amount, amount * 100 / total),
Player::try_from_index(vertex_owner).ok_or(IOError::InvalidLine("owner must be 0 (even) or 1 (odd)"))?;
|(index, total): (usize, usize)| info!("Wrote {} vertices ({}%)...", index, index * 100 / total),
let parity_game = read_pg(include_bytes!("../../../../examples/vpg/example.pg") as &[u8]).unwrap();