Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rolloutTree t@(Tree state action noVisits score children) gen = if ((outcome state) == Ongoing)
- then (rolloutTree (children !! (mod (fst (next gen)) (length children))) (snd (next gen))) : t : []
- else (t : [], (outcome state), gen)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement