I need to (for class) write a minimax implementation.<br><br>I'm currently doing this by functionally defining the entire tree and later pruning it down to the size I want.<br><br>My assignment requires that I output the number of nodes I evaluated. I am considering wrapping the tree generation with the Writer monad (I'm not yet certain how I'd do this).<br>
<br>Does this sound reasonable to you haskellers who know more than I? Would anyone suggest a better way?<br clear="all"><br>-- <br><div dir="ltr"><div> Alex R</div></div><br>