Still trying to solve the same issue; getting the cost of movement to each tile on the map from the unit's current tile. Immediate neighbours would be a cost of 1 for grass tiles, 2 for the neighbours of neighbours etc. Some tiles would have increased cost, say forests might have a base cost of 2, so going through two forest tiles would cost 4.

Then gotta represent that as a highlighted area of possible moves.

I'll get that working eventually but for now I've just added a river to my demo map. (The highlighted area here is just for immediate neighbours, getting it to iterate correctly is proving difficult in a functional language :p)

Make games.

Work on some aspect of a game, let's say 5 days a week.

daily from 2015-01-25 to 2016-01-25

Code @Home

Work on a Home Project each day

daily from 2015-01-26 to 2015-12-31