Add Vec<Robot> to store all the robots
This commit is contained in:
		
							parent
							
								
									8508c53bef
								
							
						
					
					
						commit
						bd89bfa744
					
				@ -58,6 +58,7 @@ fn open_file(filename: &str) -> io::Result<String> {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fn main() {
 | 
					fn main() {
 | 
				
			||||||
 | 
					    let mut robot_pool: Vec<Robot> = Vec::new();
 | 
				
			||||||
    let conf = open_file("two_robots.txt");
 | 
					    let conf = open_file("two_robots.txt");
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user