Fluid Logitics Project Codes\
-
Map Generator:
Generating X * Y MAP with randomly numbered X * Y * P ( P < 1 ) Blocks scattered into MAPInput:
Dimension: X,Y as INT
X & Y is the size of horizontal and vertical size of tileMap, the total size of map will be (X+2), (Y+2)
Block Density: P as FLOATTentative Input:
Scatter Function (Not Implemented)Output:
XY Array with numbered blocks from 1 to XY*P, 0 is empty block -
Channel Generator
Generating N Channels around a X*Y Array, can be specified locations.Input:
MAP: X * Y Array
Channel Numbers: N as INT, N < 2 * (X+Y)
Specified Locations:
{"N/A","TLT","TTT","TRT","N/A"};
{"TLL","N/A","N/A","N/A","TRR"};
{"MLL","N/A","N/A","N/A","MRR"};
{"DLL","N/A","N/A","N/A","DRR"};
{"N/A","DLD","DDD","DRD","N/A"};
as string arrayTentative Input:
Outbound Channel / Inbound ChannelOutput:
(X+2) * (Y+2) Array with numbered blocks from 1 to X * Y * P: 0 is empty block, -1 is Inbound Channel, -2 is Outbound Channel, -3 is Wall
-
Runner
Generating a Channeled MAP and then Running Mapping Algorithm in a single threadInput:
X,Y,P,N and Specified Locations
Algorithm: Specified Algorithm
Target MAP: (X) * (Y) ArrayOutput:
Total Steps and Running Time if runnable, -1 if not runnable -
Algorithms
Will be plugged into runner to run, maintaining in a single file
-
Manager
Generating Muliple Runners in multiple threads and collecting datas, then Plot the data.Input:
X,Y,P,N and Specified Locations
Algorithm: Specified Algorithm
Target MAP: (X) * (Y) Array