VSG6UWDYMGCJHOVD5BI5UNAAYLVL6REAAJLI7OXUGCSXLJZTV36QC
ZJPL7VNQEYASQ7QIUCR3X2IPWF5MAR6WX7VY6OWMRDMPJK7GYWIAC
ES2PMPT47CHTONTR7GAYXTU5LURMPC5W5BQ3YGOXMXT57NZHVHJQC
RQRFFUF6EN2RMBL5ITLF4HYJPGNMYXNTV4YNWH2BUCVZQE5KY2AQC
5TH3AA466T4JIICGT3LTLJ554X62KF36XZUXKR5MIAXVWAGQQHWQC
MLUGR2LLRTENFPCXBML4VQKWNE5QURMC7RJDE3AQYZXAJWOWILDQC
} else if measure == 0 { panic!("Cutting a plank to length 0 does not make sense!");
} else if measure == 0 {
panic!("Cutting a plank to length 0 does not make sense!");
planks_used: u32,
planks_used: 0,
pub fn is_complete(&self) -> bool {
pub fn get_complete(&self) -> bool {
} /// Mark this floor as complete pub fn set_complete(&mut self) -> () { self.complete = true;
}
/// Mark this floor as complete
pub fn set_complete(&mut self) -> () {
self.complete = true;
/// Add another row to this floor
} /// Get the number of plank rows for this floor pub fn get_coverage(&self) -> u32 { self.coverage } /// Increase how much of the row is filled pub fn add_coverage(&mut self, coverage: u32) -> () { self.coverage += coverage;
/// Get the number of plank rows for this floor
pub fn get_coverage(&self) -> u32 {
self.coverage
/// Increase how much of the row is filled
pub fn add_coverage(&mut self, coverage: u32) -> () {
self.coverage += coverage;
/* while floor.coverage <= ROOMDEPTH {
/*
while floor.coverage <= ROOMDEPTH {
while floor.get_coverage() < ROOMDEPTH {
floor.coverage += PLANKWIDTH;
floor.add_coverage(PLANKWIDTH);
*/
floor.set_complete();
floor.add(build_row());
while row.get_coverage() <= ROOMLENGTH {
while row.get_coverage() < ROOMLENGTH {
println!("Row: {:#?}", row);
//println!("Row: {:#?}", row);