davidswelt / wolvesandsheep

Wolves And Sheep
8 stars 7 forks source link

Better Wolf Player #3

Closed davidswelt closed 11 years ago

davidswelt commented 11 years ago

Write a better default wolf player that can serve as a development example (so Sheep can be written).

davidswelt commented 11 years ago

A good baseline wolf player would simply figure out which sheep is closest. Then, it would calculate how to move in the direction of this sheep at each step. It could either try to catch a specific sheep, or it could always choose the closest sheep at each step.