I saw a chess program before but it doesn't has an AI. However, Rune wars have a working AI. The key is on smilebasic's Ogiri contest page. Also, if you don't mind to see the implementation in other language, then you should search on google "shattered throne building a strategy ai".