Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
Note de l’éditeur : This file was selected as MATLAB Central Pick of the Week
usage thyme = maze(30,45,'c');
row - number of rows in the maze
col - number of column in the maze
pattern - random(r), vertical(v), horizontal(h), checkerboard(c), spiral(s), burst(b)
Construct graph system for maze. The graph entities are an id for each intersection(id), the physical row(rr) and column(cc) of the intersection, membership to a connected region (state), and a link to adjacent intersections(ptr_up ptr_down ptr_left ptr_right). Prior to "make_pattern" the maze has all of the walls intact and there are row*col of unconnected states. After "make_pattern" some of the
walls are broken down and there is only one connected state for the maze. A broken wall(allowed passage) in some direction is signified by a negative value of the pointer in that direction. A solid wall(unallowed passage) in some direction is signified by a positive value of the pointer in that direction. The absolute value of the pointer is the id of the intersection in that direction.
Citation pour cette source
Rodney Meyer (2026). Maze (https://fr.mathworks.com/matlabcentral/fileexchange/6705-maze), MATLAB Central File Exchange. Extrait(e) le .
Remerciements
A inspiré : Maze 3D
Informations générales
- Version 1.0.0.0 (3,17 ko)
-
Aucune licence
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.0.0 |
