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.23 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.22 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.21 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.20 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.19 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.18 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.17 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.16 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.15 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.14 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.13 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.12 tracks/haskell/exercises/go-counting/src/Counting.hs