Guest User

Untitled

a guest
May 14th, 2013
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3.  
  4. Rose_Node board [] -> func1 ((max OR min of) (eval board)) (pick_n_distribute board [1..6])
  5.    
  6. func1:: Pebbles -> [Board] -> [Board]
  7. func1 peb board = case board of
  8.     []      -> []
  9.     x:xs -> case (whoami==(turn board))
  10.         True
  11.             | (min (pick_n_distribute x)) <= peb -> x: func1 maxpeb xs
  12.             | otherwise -> func1 peb xs
  13.         False
  14.             | (max (pick_n_distribute x)) >= peb -> x: func1 maxpeb xs
  15.             | otherwise -> func1 peb xs
Advertisement
Add Comment
Please, Sign In to add comment