Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct node
- {
- bool available; //is this node available for pathing
- int cost;
- int status; //mailboxed int representing status
- int parent_index; //index of parent node in list
- };
- struct graph
- {
- int width, height;
- int unsolved; //represents an unsolved node. unsolved + 1 is solving, unsolved + 2 is solved.
- node* nodes;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement