Coder Social home page Coder Social logo

maze_generator's Introduction

Hello there ๐Ÿ‘‹

I am Finn Sell, also sometimes called ftsell. I'm a computer science student at the University of Hamburg, an activist, a hacker, a SysAdmin and sometimes all at once. My expertise and interests are System Administration and Automation, Networking (the computer kind) and creating fun applications for whatever seems useful. Additionally, I like learning things about privacy, security and how computers work from the ground up.

This GitHub profile only contains mirror reporitores though. I'm actively working over at git.ftsell.de or git.hamburg.ccc.de/ftsell.

maze_generator's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

maze_generator's Issues

Why does x decrease north?

Not sure if I'm misunderstanding, but:

    /// Returns the next neighboring coordinates in a specific direction
    pub fn next(&self, direction: &Direction) -> Self {
        Self {
            x: self.x
                + match direction {
                    Direction::East => 1,
                    Direction::West => -1,
                    _ => 0,
                },
            y: self.y
                + match direction {
                    Direction::North => -1,
                    Direction::South => 1,
                    _ => 0,
                },
        }
    }

Why does south increase the X coordinate while north decreases it? I'd expect the exact opposite.

Thanks.

Maze to GraphMap conversion should be allowed

Got an error trying to convert Maze to GraphMap.

   |                        ^^^^ the trait `From<maze_generator::prelude::Maze>` is not implemented for `GraphMap<Coordinates, (), Undirected>`
   |
   = note: required because of the requirements on the impl of `Into<GraphMap<Coordinates, (), Undirected>>` for `maze_generator::prelude::Maze`

According to the documentation (https://docs.rs/maze_generator/2.0.0/maze_generator/prelude/struct.Maze.html#impl-From%3CMaze%3E), it can be converted which is not. WHY? or HOW?

Maze printing formats and new function

I would like to submit a PR that gives the Maze struct a function for printing which accepts in different enum values for ways to be displayed. I wasn't particularly fond of the existing format, so I created another on my local branch. Both could exist together in your repository, distinguished by an enum value of ThinLine and ThickRectangle. Thoughts?

impl Maze {
    fn print(WallFormat wall_format) {
        match (wall_format) {
            ...
        }
    }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.