Each Row stores its maximum length
Dependencies
- [2]
Q7IWKL57Calculate required length once and reuse - [3]
MLUGR2LLAdd default impl and some basic plank logic - [4]
JPTYS433Cleanup, clippy - [5]
CT3VONTOIntroduce PLANKMIN and work with the neverending rows - [6]
VSG6UWDYCan now build floors - [7]
AATEG4HIRemove todo, improve comment - [8]
MUDVRIBFFix comparision error - [9]
ZJPL7VNQSeparate planks from main - [10]
SMYRM2CFUse the MaterialStorage - [11]
4YYL4VTYIntroduce Cut - [12]
OK5CKW6ERework everything, use references - [*]
5TH3AA4610 mm extra space
Change contents
- edit in src/lib.rs at line 163
row_max_length: u32, - edit in src/lib.rs at line 173
row_max_length: ROOMLENGTH - 2 * PLAY, - edit in src/lib.rs at line 223
}/// Get the maximum length allowedpub fn get_max_length(&self) -> u32 {self.row_max_length - edit in src/lib.rs at line 229
- replacement in src/bin/main.rs at line 105
while row.get_coverage() < ROOMLENGTH {while row.get_coverage() < row.get_max_length() { - replacement in src/bin/main.rs at line 126
length if length > (required_length) => {length if length > required_length => {