merovingien / AIWar

Create your Artificial Intelligence to win the war
GNU General Public License v3.0
4 stars 2 forks source link

Apply random offset to item positions #13

Closed merovingien closed 12 years ago

merovingien commented 12 years ago

Currently players get absolute positions of items, so they can suppose the position of the ennemy's base and go in this direction instead of explore the world.

With a random offset applied, players cannot know their real position and then make suppositions on it.

merovingien commented 12 years ago

Accepted. A random offset will be applied to the position of each item.

Work is currently in progress.

merovingien commented 12 years ago

Fixed by commit 5737fca

Now a random offset is applied for each item, so players cannot make suppositions on the ennemy position on the map.

leguims commented 12 years ago

My AI need help to work now ... :cry:

leguims commented 12 years ago

Negative or positive number is not easy to manage. It was enough to have offset with positive position after the offset.

merovingien commented 12 years ago

Now offset range is [1; 50000], so initial item range position is always strictly positive, and default value for memory slots cannot be an item position.