Challenge #180 [I]: Tamagotchi Emulator

http://www.reddit.com/r/dailyprogrammer/comments/2gryun/9172014_challenge_180_intermediate_tamagotchi/