Archive for the ‘Math’ Category

My AI reads your mind — Extensions (part 3)

In the previous two posts I showed how to make use of decision theory to write a game AI that forms a model of its opponent and adapts its strategy accordingly. The AI could be improved in several ways: The most obvious improvement would be to build a better model of the opponent. In the [...]

Advanced math functions for AS3

Did you ever need to sample from a Dirichlet distribution in Actionscript 3.0? What about computing a value of the Gamma function? Probably not In case you did, I wrote a class with a few math methods: a function to sample from multinomial distributions; this is useful if you need to choose randomly from a [...]