2021-12-01 10:47:41 -05:00
|
|
|
mod common;
|
|
|
|
mod simple_map;
|
|
|
|
|
2021-12-01 11:02:39 -05:00
|
|
|
use crate::{Map, Position};
|
2021-12-01 10:47:41 -05:00
|
|
|
use common::*;
|
|
|
|
use simple_map::SimpleMapBuilder;
|
|
|
|
|
|
|
|
trait MapBuilder {
|
2021-12-01 11:02:39 -05:00
|
|
|
fn build(new_depth: i32) -> (Map, Position);
|
2021-12-01 10:47:41 -05:00
|
|
|
}
|
|
|
|
|
2021-12-01 11:02:39 -05:00
|
|
|
pub fn build_random_map(new_depth: i32) -> (Map, Position) {
|
2021-12-01 10:47:41 -05:00
|
|
|
SimpleMapBuilder::build(new_depth)
|
|
|
|
}
|