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
s
turn on/off searchg
turn on/off grid view on the mapr
turn on/off radar view on the mapd
turn on/off unknown dragonballs view on the mapi
turn 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 file
or--map file
, loads a definition map-d x1,y1,x2,y2,x3,y3,x4,y4,x5,y5,x6,y6,x7,y7
or--dragonballs x1,y1,x2,y2,x3,y3,x4,y4,x5,y5,x6,y6,x7,y7
, sets the dragonballs position-r
or--rate
sets the exploration mode tomin cost explore rate
-p pathfile
or--path pathfile
sets the exploration mode to path and expects the given file to be a binary file of positions2d_t[]