pinter-0.6.0: A Book of Abstract Algebra
Safe HaskellSafe
LanguageHaskell2010

Pinter.Ch03.CoinGame

Documentation

data Move Source #

Constructors

M1

Flip over the coin at A.

M2

Flip over the coin at B.

M3

Flip over both coins.

M4

Switch the coins.

M5

Flip coin at A; then switch.

M6

Flip coin at B; then switch.

M7

Flip both coins; then switch.

I

Do not change anything.

Instances

Instances details
Eq Move Source # 
Instance details

Defined in Pinter.Ch03.CoinGame

Methods

(==) :: Move -> Move -> Bool Source #

(/=) :: Move -> Move -> Bool Source #

Show Move Source # 
Instance details

Defined in Pinter.Ch03.CoinGame

Semigroup Move Source # 
Instance details

Defined in Pinter.Ch03.CoinGame

Monoid Move Source # 
Instance details

Defined in Pinter.Ch03.CoinGame

Group Move Source # 
Instance details

Defined in Pinter.Ch03.CoinGame

Methods

invert :: Move -> Move Source #

pow :: Integral x => Move -> x -> Move Source #