Initial commit
This commit is contained in:
commit
284fdc1261
16 changed files with 448 additions and 0 deletions
20
NightLight.Core/Moods.fs
Normal file
20
NightLight.Core/Moods.fs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
module internal NightLight.Moods
|
||||
|
||||
open NightLight.PartsOfDay
|
||||
|
||||
type Mood =
|
||||
| White
|
||||
| Yellow
|
||||
| Red
|
||||
|
||||
type Room =
|
||||
| Bathroom
|
||||
| LivingRoom
|
||||
| Bedroom
|
||||
|
||||
let getDesiredMood room partOfDay =
|
||||
match room, partOfDay with
|
||||
| Bathroom, Day -> White
|
||||
| LivingRoom, Day -> Yellow
|
||||
| Bedroom, Day -> Yellow
|
||||
| _, Night -> Red
|
||||
Loading…
Add table
Add a link
Reference in a new issue