Question: Please Implement the following In C programming Suppose there is 4X3 room in a [21][80] space. Its placed randomly within the space. generate a corridor

Please Implement the following In C programming

Suppose there is 4X3 room in a [21][80] space. Its placed randomly within the space.

generate a corridor connecting two rooms?

procedure:

Find a point to start. Then, compare the euclidean distance of all the points adjacent to the start, and whichever one is closer, move to that point. Repeat this (using recursion) until you reach the endpoint. The starting point is picked randomly.(Note Can use the shortest path algorithm to implement).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!