busbey / project-z

a system for testing agent-based goal seeking strategies in a simple and intuitive game world.
Other
0 stars 0 forks source link

flexible radius fog of war #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
fog of war where the radius changes with movement.

start either empty or full view.  no move for n rounds -> increase by one. 
move for m rounds -> decrease by one.

eg:

XXXXXXXXX
XXXXXXXXX
XXXXXXXXX
XXXXXXXXX   move "n"
XXXXX1XXX
XXXXXXXXX
XXXXXXXXX
XXXXXXXXX
XXXXXXXXX

XXXXXXXXX
XXXXXXXXX
XXXXXXXXX
XXXX O XX
XXXX 1 XX   move 'l'  
XXXX   XX
XXXXXXXXX
XXXXXXXXX
XXXXXXXXX

XXXXXXXXX
XXXXXXXXX
XXXXXXXXX
XXXXXXXXX   move "n"
XXXX1XXXX
XXXXXXXXX
XXXXXXXXX
XXXXXXXXX
XXXXXXXXX

XXXXXXXXX
XXXXXXXXX
XXXXXXXXX
XXX  OXXX
XXX 1 XXX   move 'n'  
XXX   XXX
XXXXXXXXX
XXXXXXXXX
XXXXXXXXX

XXXXXXXXX
XXXXXXXXX
XXXX XXXX
XXX  OXXX
XX  1  XX  etc..
XXX   XXX
XXXX XXXX
XXXXXXXXX
XXXXXXXXX

or the same idea with "square" radius.

Original issue reported on code.google.com by sean.bus...@gmail.com on 27 Oct 2007 at 3:55

GoogleCodeExporter commented 9 years ago
done.  configurable for how many rounds in a row one has to move or stay still 
to 
change the radius, and the amount it jumps when it does.

right now, server has a command line arg

--fog [flex] [square|manhattan] [radius]

that starts the radius changing with "every 2 rounds of movement penalizes view 
radius by one square.  every round of not moving increases it by 2 squares."

Original comment by sean.bus...@gmail.com on 28 Oct 2007 at 4:07