Print how many rows
[?]
Jul 11, 2020, 9:41 PM
C5VVJ5SOXXMIWNHCY4BLV5JOXDLDSFGP5QI7WWB74XIZ4JJMIBVACDependencies
- [2]
CT3VONTOIntroduce PLANKMIN and work with the neverending rows - [3]
VSG6UWDYCan now build floors - [4]
2USDM5CHWIP for more generic - [5]
MLUGR2LLAdd default impl and some basic plank logic - [6]
5TH3AA4610 mm extra space - [7]
ES2PMPT4Using structures instead - [8]
ZJPL7VNQSeparate planks from main
Change contents
- replacement in src/floor.rs at line 95
planks_used: 0,planks_used: 1, - edit in src/floor.rs at line 123
/// Increase the number of planks used for this rowpub fn add_used_planks(&mut self) -> () {self.planks_used += 1;} - replacement in src/main.rs at line 15
static ROOMDEPTH: u32 = 2800;static ROOMDEPTH: u32 = 555;//static ROOMDEPTH: u32 = 2800; - edit in src/main.rs at line 34
println!("Number of rows: {}", finished_floor.rows_count()); - replacement in src/main.rs at line 61
panic!("Too small plank");row.add_used_planks(); - edit in src/main.rs at line 85
row.add_used_planks(); - edit in src/main.rs at line 96
row.add_used_planks();