aboutsummaryrefslogtreecommitdiff
path: root/src/Model/Config.elm
blob: 2973dc7b6409938fdb52dea7b59d419c78323634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module Model.Config
  ( Config(..)
  , otherConfig
  ) where

type Config =
  White
  | Black

otherConfig : Config -> Config
otherConfig config =
  case config of
    White -> Black
    Black -> White