sln_2022_02
Copyright(c) Eric Mertens 2022
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Main

Description

https://adventofcode.com/2022/day/2

>>> :main + "A Y\nB X\nC Z\n"
15
12

Documentation

data A Source #

Constructors

AA 
AB 
AC 

Instances

Instances details
Show A Source # 
Instance details

Defined in Main

Methods

showsPrec :: Int -> A -> ShowS #

show :: A -> String #

showList :: [A] -> ShowS #

data B Source #

Constructors

BX 
BY 
BZ 

Instances

Instances details
Show B Source # 
Instance details

Defined in Main

Methods

showsPrec :: Int -> B -> ShowS #

show :: B -> String #

showList :: [B] -> ShowS #

main :: IO () Source #

outcome :: A -> B -> Int Source #

pick :: A -> B -> B Source #