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.

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.