In this challenge, submissions will be programs or function which, when given an emoticon such as
:D, will rate their happiness from 0 to 3.
An emoticon will be one of the following:
Emoticons may also have noses (a
- after the
:( -> 0 :-| -> 1 :D -> 3 :-) -> 2 :| -> 1
This is a code golf challenge, shortest answer per language wins.