Emoji

Hyroglyfics were a form of language using images to convey ideas instead of words. Emoji help us convey meaning that may be lost in plain text messages. They are a way to showing emotion or ideas via images.

Code Kata Format

We’ve changed the format of the challenges to be more like a code kata. So instead of three levels of varying difficulty there will be one challenge, and a step further, that you can make as difficult as you need based on where you want to place your focus on learning.

The Challenge

For this challenge take an input string from the user. Then convert any words that could be emoji into their text or emoji representation. So the string “You make me smile” would return “You make me :)”

Creating a Test Case

Write a test case before you start your code. Then write just enough code to pass the test. Once you have passing code refactor to pass other test cases.

A Step Further

Going a step further reverse the process and create a translator to translate emoji back into text. So the string “You make me :)” will translate to “You make me smile.”