2013-10-06 19:19:00 +0000 <maverick_> I do have some other functions that I probably have to use
2013-10-06 19:19:25 +0000 <maverick_> I have a function that gives the possible moves given a board
2013-10-06 19:19:33 +0000 <maverick_> And a function that creates a gametree
2013-10-06 19:19:41 +0000 <jmcarthur> i think i know what i would do, so i'm just going to try to ask suggestive questions
2013-10-06 19:19:53 +0000 <jmcarthur> how is the Player argument supposed to be used?
2013-10-06 19:21:08 +0000 <jmcarthur> by which i mean, why is it needed?
2013-10-06 19:21:10 +0000 <maverick_> The first argument of minimax is the Player we are calculating the minimax tree for. This argument stays constant throughout the whole computation.
2013-10-06 19:21:23 +0000 <jmcarthur> why does it stay constant?
2013-10-06 19:22:06 +0000 <maverick_> Because I'm supposed to use a helper function
2013-10-06 19:22:16 +0000 <maverick_> That takes another player argument
2013-10-06 19:22:36 +0000 <maverick_> And this is the player that is allowed to make move
2013-10-06 19:22:55 +0000 <maverick_> And switches at every level of the tree when I want to recurse through it
2013-10-06 19:23:11 +0000 <jmcarthur> i don't think i understand. this sounds like a homework assignment? could you put the full text of the problem description on lpaste or something?
2013-10-06 19:23:30 +0000 <jmcarthur> because now it sounds like there are some restrictions that would prevent me from pushing you in certain directions
2013-10-06 19:23:45 +0000_justjust(~justjust@146-52-43-55-dynip.superkabel.de) (Quit: Leaving.)
2013-10-06 19:25:22 +0000 <maverick_> http://lpaste.net/7400387500373442560
2013-10-06 19:25:31 +0000 <maverick_> Here is the problem discription
2013-10-06 19:26:29 +0000 <jmcarthur> ah i see, those aren't requirements but hints
2013-10-06 19:26:59 +0000 <maverick_> Yup idd
2013-10-06 19:27:21 +0000jxv(~jxv@76-219-78-35.lightspeed.irvnca.sbcglobal.net)
2013-10-06 19:27:48 +0000 <jmcarthur> so i would indeed start by writing a helper function as suggested
2013-10-06 19:27:57 +0000 <jmcarthur> perhaps beginning with its type
2013-10-06 19:28:23 +0000 <maverick_> I think the type is the same
2013-10-06 19:28:26 +0000 <maverick_> As the normal function
2013-10-06 19:28:31 +0000ozataman_(~ozataman@pool-108-41-231-51.nycmny.fios.verizon.net)
2013-10-06 19:28:32 +0000 <jmcarthur> "It is useful to introduce a helper function minimax0 that takes another Player
2013-10-06 19:28:34 +0000 <jmcarthur> argument."
2013-10-06 19:28:39 +0000 <jmcarthur> key word: "another"
2013-10-06 19:29:27 +0000 <maverick_> I have a function nextPlayer
2013-10-06 19:29:38 +0000 <maverick_> So probably nextPlayer p would be it's parameter
2013-10-06 19:29:47 +0000 <jmcarthur> sounds good
2013-10-06 19:30:01 +0000 <maverick_> nextPlayer :: Player -> Player
2013-10-06 19:30:20 +0000rishabhjain_(~anonymous@14.139.122.114)
2013-10-06 19:30:28 +0000 <maverick_> nextPlayer P1 gives P2 for instance and also changed the symbol to O
2013-10-06 19:30:50 +0000 <jmcarthur> the symbol?