merovingien / AIWar

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

Fog of war #23

Open cyflo opened 11 years ago

cyflo commented 11 years ago

hello, I'm a new user of AIWar and I'm creating my first robot. I think it'll be better to add a forg of war behaviour to not display the enemy strategy and keep secrets ;)

leguims commented 11 years ago

I think the fog of war is to give the file ".pyc" instead of ".py", but you right, some strategies could be easy to understand. But it is very funny to see all players and all bugs or mistake !! LOL !

Do you want to launch match and see only your bots ? But if you want to see secret strategy of others, nothing can prevent you to put fog on your warrior and see the opponent.

cyflo commented 11 years ago

I understand the fun to see players errors or not controled behaviours. It can add a lot of pleasure May be it should be activated/desactivated in each robot by code. It'll should allow each player to decide themself If he want a fog of war or not for his robot.

leguims commented 11 years ago

I understand what you want, but can you give more details of each use case. I think it is not so easy to specifies what to do.

For example:

Player 1 is the script of "Cyflo" who wants to hide its ships to other player. Player 2 is the script of "Leguims" who wants to see all the war space.

Cyflo plays on his computer the match : Player 1 Vs Player 2

Leguims plays on his computer the match : Player 1 Vs Player 2

To conclude

The fog of war is not a bad idea, but it probably split the world of player in 2 : Secretive and Exhibitionist

cyflo commented 11 years ago

Hello,

Cyflo plays on his computer the match : Player 1 Vs Player 2

Leguims plays on his computer the match : Player 1 Vs Player 2

merovingien commented 11 years ago

Fog of war is a good feature to add, but it comes with a lot of problems.

First of all : what the fog must hide ? Everything but the ship of the playing team? Or only the ships of the other team? The later case is useless I think, but on the first case, it s.is not easy to debug the script if we do not see anything.

I think the best solution is to activate fog just before publishing a script. In that case, when someone use this script, the program hide every thing but its ships, with the detection radius.

I will try to publish a release with this kind of functionality, and then we will discuss about that.