tarcellius: In a general sense, you could try to reference the AI of a chess program. The best, easiest one I've seen is Tom's Simple Chess Program that you can find at this website: http://www.tckerrigan.com/Chess/TSCP
It follows the general need for board game AI: 1.) find legal moves (harder in pente than chess since more legal moves available for the most part) and potentially prune out terrible ones 2.) find a way to assign a score to a position Hope that helps!
(dölj) Känner du för att snabbt parti som garanterat är avslutat inom 2 timmar? Skapa då ett nytt parti i något spel, välj "Tid för hela partiet" och sätt "Tid" till 0 dagar / 1 timme, "Bonus per drag" till 0 dagar / 0 timmar och "Max.tid" till 0 dagar / 1 timme. (TeamBundy) (Visa alla tips)