Difference between revisions of "Component: Maze Generator (HP458) (Scenarios)"

From Flowcode Help
Jump to navigationJump to search
 
(12 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
Creates a simulation only randomised maze out of standard micromouse maze walls and pillars. Compatible with the Formula Flowcode robot.
 
Creates a simulation only randomised maze out of standard micromouse maze walls and pillars. Compatible with the Formula Flowcode robot.
  
==Component Pack==
+
==Component Source Code==
  
MODELS
+
Please click here to download the component source project: [https://www.flowcode.co.uk/wiki/componentsource/FC_Comp_Source_MazeGenerator.fcfx FC_Comp_Source_MazeGenerator.fcfx]
 +
 
 +
Please click here to view the component source code (Beta): [https://www.flowcode.co.uk/FlowchartView/?wfile=componentsource/FC_Comp_Source_MazeGenerator.fcfx FC_Comp_Source_MazeGenerator.fcfx]
  
 
==Detailed description==
 
==Detailed description==
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
  
  
Line 32: Line 48:
  
 
==Examples==
 
==Examples==
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
  
  
Line 45: Line 75:
  
  
==Downloadable macro reference==
 
  
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
==Macro reference==
 +
 +
===GenerateMaze===
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
 
|-
 
|-
Line 58: Line 103:
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
| width="90%" style="border-top: 2px solid #000;" | ''Return''
 
|}
 
|}
 
 
  
  
Line 68: Line 111:
 
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
 
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
 +
|-
 +
|-
 +
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
 +
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Generation Settings
 
|-
 
|-
 
|-
 
|-
Line 79: Line 126:
 
|-
 
|-
 
| colspan="2" | Decides if the maze is contained or if there are openings to allow the robot to escape the maze for obstacle course type simulations. No - Creates two holes in the side walls of the maze to match the longest path possible through the maze Yes - The maze is self contained  
 
| colspan="2" | Decides if the maze is contained or if there are openings to allow the robot to escape the maze for obstacle course type simulations. No - Creates two holes in the side walls of the maze to match the longest path possible through the maze Yes - The maze is self contained  
 +
|-
 +
| width="10%" align="center" | [[File:Fc9-type-7-icon.png]]
 +
| width="90%" | Redraw Maze
 +
|-
 +
| colspan="2" | Allows the random maze to be redrawn 
 +
|-
 +
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
 +
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Dimensions
 +
|-
 
|-
 
|-
 
| width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
 
| width="10%" align="center" | [[File:Fc9-type-14-icon.png]]
Line 94: Line 150:
 
|-
 
|-
 
| colspan="2" | The total number of individual cells the maze will have 
 
| colspan="2" | The total number of individual cells the maze will have 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Connections'''
 
|-
 
|-
 
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-conn-icon.png]]
 
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Simulations'''
 
|-
 
 
|}
 
|}

Latest revision as of 11:19, 20 October 2023

Author Matrix Ltd
Version 1.0
Category Scenarios


Maze Generator component

Creates a simulation only randomised maze out of standard micromouse maze walls and pillars. Compatible with the Formula Flowcode robot.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_MazeGenerator.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_MazeGenerator.fcfx

Detailed description

No detailed description exists yet for this component

Examples

No additional examples









Macro reference

GenerateMaze

Fc9-comp-macro.png GenerateMaze
Clears the current maze and generates a new maze over the top. Automatically called when the size of the maze is altered. 
Fc9-void-icon.png - VOID Return


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Generation Settings
Fc9-type-16-icon.png Maze Generation
Specifies how the maze is generated. Manual - All walls are shown, clicking on a wall will remove it while the switch remains active. Random - A random maze is generated 
Fc9-type-7-icon.png Contained
Decides if the maze is contained or if there are openings to allow the robot to escape the maze for obstacle course type simulations. No - Creates two holes in the side walls of the maze to match the longest path possible through the maze Yes - The maze is self contained  
Fc9-type-7-icon.png Redraw Maze
Allows the random maze to be redrawn 
Fc9-conn-icon.png Dimensions
Fc9-type-14-icon.png Width (Walls)
The number of micromouse walls wide the maze should be 
Fc9-type-14-icon.png Length (Walls)
The number of micromouse walls long the maze should be 
Fc9-type-14-icon.png Cell Count
The total number of individual cells the maze will have