Sha256: 7aa61cd16e04fdcf56ed4917e7b27d8064732cc9067dbdcb9f102fba2d6d7c69

Contents?: true

Size: 436 Bytes

Versions: 277

Compression:

Stored size: 436 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 board = error "You need to implement this function."

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

Version data entries

277 entries across 277 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.179 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.178 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.177 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.176 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.175 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.174 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.173 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.172 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.171 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.170 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.169 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.167 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.166 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.165 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.164 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.163 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.162 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.161 tracks/haskell/exercises/go-counting/src/Counting.hs
trackler-2.2.1.160 tracks/haskell/exercises/go-counting/src/Counting.hs