|
@ -32,8 +32,8 @@ main = do args <- getArgs |
|
|
commandspoints <- return (map (\(seed,game) -> strat0 game) gmseed) |
|
|
commandspoints <- return (map (\(seed,game) -> strat0 game) gmseed) |
|
|
(commands,points) <- return $ unzip commandspoints |
|
|
(commands,points) <- return $ unzip commandspoints |
|
|
seeds <- return ((map (\(seed, _) -> seed)) gmseed) |
|
|
seeds <- return ((map (\(seed, _) -> seed)) gmseed) |
|
|
BS.putStrLn $ encode $ (packAll id seeds commands) |
|
|
|
|
|
writeFile ("scores") (scoredata id (fst $ unzip gmseed) points) |
|
|
writeFile ("scores") (scoredata id (fst $ unzip gmseed) points) |
|
|
|
|
|
BS.putStrLn $ encode $ (packAll id seeds commands) |
|
|
|
|
|
|
|
|
packAll :: Int -> [Int] -> [[Command]] -> [JSONSer] |
|
|
packAll :: Int -> [Int] -> [[Command]] -> [JSONSer] |
|
|
packAll id seeds commandLists = zipWith (\x y -> JSONSer id x "lilik0" y) seeds commandStrings |
|
|
packAll id seeds commandLists = zipWith (\x y -> JSONSer id x "lilik0" y) seeds commandStrings |
|
|