Sha256: 81595fd224f64bedb4c0825948355517361b9c2f854c3e9f4b33928e5e522aeb

Contents?: true

Size: 418 Bytes

Versions: 52

Compression:

Stored size: 418 Bytes

Contents

module Counting (
    Color(..),
    territories,
    territoryFor
) where

import Data.Set (Set)

data Color = Black | White deriving (Eq, Ord, Show)
type Coord = (Int, Int)

territories :: [String] -> [(Set Coord, Maybe Color)]
territories = error "You need to implement this function."

territoryFor :: [String] -> Coord -> Maybe (Set Coord, Maybe Color)
territoryFor = error "You need to implement this function."

Version data entries

52 entries across 52 versions & 1 rubygems

Version Path
trackler-2.0.6.43 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.42 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.41 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.40 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.39 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.38 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.37 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.36 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.35 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.34 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.33 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.32 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.31 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.30 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.29 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.28 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.27 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.26 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.25 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.24 tracks/haskell/exercises/go-counting/src/Counting.hs