thanks mate! I'm sorry I can't port it to mac, I don't have one and it's just not really my platform either.
I've come up with the ideas myself over the years, I agree there isn't much in the way of resources since it's such a specific topic. I've used a combination of concepts/algo's to program the AI. I should probably write an extensive blog about it some time but I'm not much of a writer. If there's any specific problem you have maybe I can help you a bit?