Initial attempt to not get too short planks at end of row
Dependencies
- [2]
E6F2AEXPFix floorbuilding - [3]
WT7LSRGIEach Row stores its maximum length - [4]
CT3VONTOIntroduce PLANKMIN and work with the neverending rows - [5]
C5VVJ5SOPrint how many rows - [6]
ZJPL7VNQSeparate planks from main - [7]
JPTYS433Cleanup, clippy - [8]
4YYL4VTYIntroduce Cut - [9]
MLUGR2LLAdd default impl and some basic plank logic - [10]
Q7IWKL57Calculate required length once and reuse - [*]
5TH3AA4610 mm extra space
Change contents
- replacement in src/bin/main.rs at line 98
let required_length = row.get_max_length() - row.get_coverage();let mut required_length = row.get_max_length() - row.get_coverage();println!("Required length: {}", required_length);if required_length <= PLANKMIN {// try to redo previous plank// Remove previous plankprintln!("Removing plank");row.pop(ms);// Calculate new required length but divide by tworequired_length = (row.get_max_length() - row.get_coverage()) / 2;}