SAE-Institute-Geneva / GPR5204_919

MIT License
0 stars 6 forks source link

Weighter Graph (Node) + A* #5

Open SosoLaMojo opened 3 years ago

SosoLaMojo commented 3 years ago

Introduction

Our task is to implement the A* algorithm on a weighter graph for the 5204 module.


Weighter Graph

class Node

Methode NodeGeneration

Creation of dead or alive nodes at different positions (Vector2f).

Methode SetNeigtbors

Give its neighbors to each node (scenario: 4 neighbors per node)

Methode SpawnEntities

Set a point of start(A) and end(B) (Vector2f)


A*

Methode FindPath

Calculate and store the nodes of the path found by A*.

Questions

EliasFarhan commented 3 years ago

Thanks for the enhaucement proposal.

Some remarks:

Please do response with a more complete proposal such that I can continue to help you be sure how you implement your proposal.

Useful reference:

SosoLaMojo commented 3 years ago

Introduction

Our task is to implement the A* algorithm on a weighter graph for the 5204 module.


class Node

class Map

Methode AddNode

Add nodes to map

Methode FindPath

Calculate and return the nodes of the path found by A*.

EliasFarhan commented 3 years ago

Thanks for the update.

Be sure to implement at least Dijkstra algorithm (A but without arrival heuristics) by Thursday (A would be great, but I want first to be sure you set up your data structures correctly).