
7 Aug
2004
7 Aug
'04
2:10 a.m.
Arjun, AG> This class definition is giving me a lot of problems AG> with the successor function:
class (Ord st) => MinimaxState st where successors :: st -> [(action, st)] terminal :: st -> Bool
< instance MinimaxState Int where < terminal i = i == 0 < successors i = [(1,i+1), (-1,i-1)] See, http://www.haskell.org//pipermail/haskell-cafe/2004-July/006424.html. HTH, Stefan