Reputation: 1177
I am looking forward to write a "Shafrans hex chess AI in prolog" . Is there any already available open source code available for reference ?
http://en.wikipedia.org/wiki/Hexagonal_chess (for info on Shafrans hexgonal chess)
Upvotes: 4
Views: 792
Reputation: 350
There is a codeplex project - https://hexchess.codeplex.com/ for several hexagonal chess variants including, I think, Shafrans. The code is not in prolog, but code is code and this should give you a start if you are still looking.
Upvotes: 0
Reputation: 60004
Games between 2 opponents can be tackled with alpha/beta search. That's the most basic 'framework', and introduces the ingredients you will need when you'll improve your game.
You will at least implement MinMax. Those two arguments are illustrated in The Art Of Prolog
by Sterling & Shapiro
Upvotes: 2