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.8.18 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.17 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.16 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.15 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.14 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.13 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.12 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.11 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.10 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.9 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.8 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.7 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.6 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.5 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.4 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.3 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.2 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.8.1 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.7.0 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.0.6.44 tracks/haskell/exercises/go-counting/src/Counting.hs