Well, the moving is straightforward, but you have to look at how many territories you get if you want to know how many troops you get. The number of switchbacks determines the territories in many cases; two of the moves so far have involved at least two switchbacks so that should be evident. The function for troops based on territories is a little difficult for newcomers but I think if you watch you can see that it's fairly simple. Just take the index of each slot that you pass through, divide by the territory you've gained, and then add one extra troop for every ten territories you control at the end of that turn. Of course, it's not often that ten territories are gained this early in the game, so that should simplify the equation for you a bit.