Research Article

Mining Experiential Patterns from Game-Logs of Board Game

Algorithm 6

ExperienceRuleMatching.
Procedure  ExperienceRuleMatching
Input:
PS, the current pieces-state.
ERs: the set of Experience Rules.
Output:
nextPS, the next pieces-state.
Method:
(01) for each  er  in  ERs  do
(02) if  PS == er.lastthen
(03)  nextPS = er.next;
(04)  break;
(05) else
(06)  nextPS = null;
(07) endif
(08) endfor