Module maze_rs::helper[][src]

Expand description

This module contains common helper functions.

Functions

map the direction to the appropriate character for rendering

find the relative direction of the source cell w.r.t the neighbouring cell by using their coordindates

get the maze’s height and width from the command-line arguments with suitable validation

Return a random number in the closed range [l, h] This uses the rand crate to generate PRNs.