This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Control.Monad | |
import Data.Maybe | |
import qualified Data.Set as Set | |
import qualified Data.Map.Strict as Map | |
data Puzzle = Puzzle [Int] Int Int Int deriving Show | |
heuristic_comp :: [Int] -> Int | |
heuristic_comp [] = 8 | |
heuristic_comp (x : xs) = do |