Navigating and Visualizing paths in a 2D Matrix.
Project description
matrix_path
Description
Use the matrix class to create matrix objects and navigate the 2D matrix. Move with the right
, left
, up
, and down
functions.
The '1's represent the path.
Installation
pip install matrix_path
How to use?
from matrix import Matrix
start_point = [0, 0]
end_point = [0, 4]
walls = [[0, 1], [1, 2]]
maze = Matrix(5, start_point, end_point, walls)
maze.print_matrix()
License
© 2020 Arush Sharma
This repository is licensed under the MIT license. See LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
matrix_path-1.1.1.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for matrix_path-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da1926d43220e85aae9e964ecd0f5380b86c970003e5146cb7fb732d56b9efb7 |
|
MD5 | 1fa1f4e00ad1255b412f047c1af6f6d2 |
|
BLAKE2b-256 | 5f5bc9c1f152793c48a5896438312b5101990519f274db44803f898149e9b093 |