setgame-1.1: A console interface to the game of Set

Safe HaskellSafe
LanguageHaskell98

Set.Card

Contents

Synopsis

Types

data Card Source

Constructors

Card 

Instances

Eq Card Source 

Methods

(==) :: Card -> Card -> Bool

(/=) :: Card -> Card -> Bool

Show Card Source 

Methods

showsPrec :: Int -> Card -> ShowS

show :: Card -> String

showList :: [Card] -> ShowS

data Color Source

Constructors

Red 
Purple 
Green 

Instances

data Count Source

Constructors

One 
Two 
Three 

Instances

Card interface functions

solve :: [Card] -> [(Card, Card, Card)] Source

solveBoard returns the list of all valid sets contained in the given list.