Cell and TList

BlitzMax Forums/BlitzMax Beginners Area/Cell and TList

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

ok here is my latest influence map calculation with color table results.


I look for detail information on the net and i found nothing about how to do it properly. So, i calculate the above tables based on the knowledge from the links that tonyg replied to me above.

calculation.
original table represent the positions of player and enemy.
1 = player, -1= enemy.
0s at the edge represents the border (just to make the calculation easier)

IM Calculation,
1. add all the surrounding cells value + the current cell value then divide by 8 and multiply it with current cell value from original table

repeat 1 for all cells.

Ok now. problem is, how to choose the best cell to attack? please take a look at my table, and suggest me.