Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maze printing formats and new function #7

Open
AustinHellerRepo opened this issue Aug 23, 2023 · 1 comment
Open

Maze printing formats and new function #7

AustinHellerRepo opened this issue Aug 23, 2023 · 1 comment

Comments

@AustinHellerRepo
Copy link

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) {
            ...
        }
    }
}
@ftsell
Copy link
Owner

ftsell commented Aug 26, 2023

As long as there is still a default way of printing the maze via its Debug implementation I'm not opposed to this. So feel free to issue a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants