poole@CPSC-M-POOLE01 haskell % ghci GHCi, version 9.4.8: https://www.haskell.org/ghc/ :? for help ghci> :l Minimax [1 of 2] Compiling CountGame ( CountGame.hs, interpreted ) [2 of 2] Compiling Minimax ( Minimax.hs, interpreted ) Ok, two modules loaded. ghci> argmax (\x -> 5- (x-2)^2) [0..10] (2,5) ghci> ghci> :set +s ghci> minimax (countGame 20 [1,2,3,5,7]) (State 0 [1,2,3,5,7]) (7,1.0) (1.13 secs, 841,112,224 bytes) ghci> minimax (countGame 21 [1,2,3,5,7]) (State 0 [1,2,3,5,7]) (7,-1.0) (2.15 secs, 1,598,580,176 bytes) ghci> minimax (countGame 25 [1,2,3,5,7]) (State 0 [1,2,3,5,7]) (7,-1.0) (27.93 secs, 20,864,071,016 bytes) ghci> minimax (countGame 30 [1,2,3,5,7]) (State 0 [1,2,3,5,7]) (5,1.0) (670.40 secs, 517,608,046,952 bytes) ghci> :l TreeDict.hs [1 of 1] Compiling TreeDict ( TreeDict.hs, interpreted ) Ok, one module loaded. (0.03 secs,) ghci>