Hey Jarq @jarq86 ,
I tested your game and it worked great! I’m really impressed by the algorithm that could find the optimal path.
Here is some feedback after i went through the code:
- A little bit confusing that you get your dimensions for the map with createRandomMap().
- currentSpot = […myField.starting_pos]; … havent seen this syntax before. How does it work?
- I noticed the game flashes a couple of times when im playing it. Don’t know where it comes from but it didn’t happen for me.
- I think your optimal route algorithm is very similar to my algorithm that checks if a field is solveable. But I just can’t wrap my head around how you can be certain that the route is optimal xD
Anyway thats is. Good job!