dimanche 9 juillet 2017

Pathfinding algorithm unit tests

How do I go about setting up unit tests for my pathfinding algorithms (A*, Djikstra, greedy, etc.) on a grid? I thought about just hard-coding large 2D arrays with 0's to represent spaces, and 1's to represent walls, but is there an easier and more robust way?

Aucun commentaire:

Enregistrer un commentaire