Explore a 2D unknown environment and retrieve the seven dragonballs with the least cost as possible.
Link to assignment (in portuguese)
Command used in the presentation to get the 7 dragonballs with a total cost of 1026
build/smartgoku -d 1,37,39,36,19,32,2,19,37,14,36,12,22,4 -m build/Mapa01.txt -r
sturn on/off searchgturn on/off grid view on the maprturn on/off radar view on the mapdturn on/off unknown dragonballs view on the mapiturn on/off information text view on the map<space>restart everything<up_arrow><down_arrow><left_arrow><right_arrow>moves goku to up, down, left and right respectively
- if there isn't any visible dragonball, explore map
- if there is one visible dragonball, get it through the path with min cost
- if there are more than one dragonball, calculate the best path to retrieve all of them
- if got all dragonballs, return to the master Roshi's island
-m fileor--map file, loads a definition map-d x1,y1,x2,y2,x3,y3,x4,y4,x5,y5,x6,y6,x7,y7or--dragonballs x1,y1,x2,y2,x3,y3,x4,y4,x5,y5,x6,y6,x7,y7, sets the dragonballs position-ror--ratesets the exploration mode tomin cost explore rate-p pathfileor--path pathfilesets the exploration mode to path and expects the given file to be a binary file of positions2d_t[]
