Skip to content

Heroadn/Kind-of-Maze-Gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kind-of-Maze-gen

rust

Abaixo exemplo de uso que pode ser encontrado em src/main.rs

    const WIDTH: u32 = 40;
    const HEIGHT: u32 = 40;
    
    //where it should start generating 
    let start = Coordinate { x: 0, y: 1 };
    let mut maze: Maze = generator::build(WIDTH as i32, HEIGHT as i32, start);
    
    //generates part of the maze, can be used to see the algorithm working
    maze.generate_step();
    
    //generates all the maze
    maze.generate_full();

Build

Cargo build

Run

Cargo run

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages