Can build the first basic row
[?]
Jul 11, 2020, 7:30 PM
RQRFFUF6EN2RMBL5ITLF4HYJPGNMYXNTV4YNWH2BUCVZQE5KY2AQCDependencies
- [2]
JBGHRTSWUse the new defaults - [3]
ES2PMPT4Using structures instead - [4]
3H2BGWRGWIP - [5]
5TH3AA4610 mm extra space - [6]
F3GMCMWTMerge branch 'master' into sovrum - [7]
2USDM5CHWIP for more generic - [8]
UPCMFGXFPrint more about the room and define PLAY - [*]
MLUGR2LLAdd default impl and some basic plank logic
Change contents
- edit in src/main.rs at line 37[10.509][10.509]
fn length(&self) -> u32 {self.length} - edit in src/main.rs at line 134
//let mut leftover = 0;//let mut coverage = 0;//let mut plankcount = 0;//let mut rowlist: Vec<Vec<Plank>> = vec![];let row: Row = Default::default(); - edit in src/main.rs at line 136
//println!("First plank length: {}", PLANKMAX - leftover); - edit in src/main.rs at line 141[3.1297][10.1277]
/* - edit in src/main.rs at line 145[10.1355][3.449]
*/ - edit in src/main.rs at line 147
floor.add(build_row()); - edit in src/main.rs at line 166[10.1857][10.1857]
// also increase the row coveragerow.coverage += plankpart.length(); - edit in src/main.rs at line 177
//let mut leftover = 0;//let mut coverage = 0;//let mut plankcount = 0;//let mut rowlist: Vec<Vec<Plank>> = vec![];//println!("First plank length: {}", PLANKMAX - leftover);