This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate rand; | |
use std::process; | |
use rand::Rng; | |
use world::World; | |
pub mod world; | |
pub fn create_world(n_col: usize, n_row: usize) -> World { | |
let mut _world = World::new(n_col, n_row).unwrap_or_else(|err| { |