Answer it's questions accurately. When it says something like "Clearing number 1" count the applicable clearings from top to bottom and left to right, and the first one that is applicable is the one you should choose. Should it say clearing number 2, it would be the second applicable clearing and so on and so forth
Its an "AI" for a board game called root. When I say "AI" I dont mean I programmed an artifical intelligence, I mean it randomly decides what it will do with some guard rails making it slightly more likely to do something smart.