Calculate coordinate once, swap rows if too close
Dependencies
- [2]
LQ4TT46NThese conditions are not mutually exclusive - [3]
RYT4PXCXCut coordinate is relative the new plank - [4]
E6F2AEXPFix floorbuilding - [5]
4YYL4VTYIntroduce Cut - [6]
JPTYS433Cleanup, clippy - [*]
5TH3AA4610 mm extra space
Change contents
- replacement in src/bin/main.rs at line 136[4.1385]→[4.1385:1413](∅→∅),[4.1413]→[3.0:101](∅→∅),[3.101]→[4.1493:1570](∅→∅),[4.1493]→[4.1493:1570](∅→∅)
// Or a new oneif !adjacent_row.check_if_cut_is_valid(Cut::new(row.get_coverage() + required_length)) {println!("Invalid cut at {required_length}!!! Handle this");// or a new onelet coordinate = row.get_coverage() + required_length;if !adjacent_row.check_if_cut_is_valid(Cut::new(coordinate)) {log::info!("Invalid cut at {coordinate}!!! Swapping places");row.swap_latest(ms); - edit in src/bin/main.rs at line 142
if !adjacent_row.check_if_cut_is_valid(Cut::new(PLANKMAX)) {println!("Invalid cut at {PLANKMAX}!!! Handle this");}