程序代写代做 go BBAE16502

BBAE16502
Research Methods and Simulation
研究方法與仿真
Lecturer:
Helmond Io Hio Nam (姚曉南)
hnio@must.edu.mo
Week#8

foreach

• There is a bug in the simulation world
• Patch in green means there is food on the patch
• Objective: eat all foods and stop

Task#26
Strategy ONE – move randomly

Task#27
Strategy TWO – scan all patches

Task#28
Strategy THREE – go nearest first
Tips: min-one-of; in-radius; distance; myself; move-to

Any other better strategy?