Week 0

Making Faces

Swap a few typed marks for a picture, and leave the rest of the line alone.

You type

One line that may contain a typed face.

The tool
Only the faces change One line in Find a typed face Leave the other words
What comes out

The same line, with those faces drawn as pictures.

The question, more slowly

The question is: take one line that may contain a couple of typed faces, and print the line with those faces swapped for emoji. Every other character stays. You are not emojizing the whole sentence.

The spec names which typed faces count. There are only a few. Order matters if one face's text could sit inside another's, so read the spec's list before you replace.

People replace a face and accidentally eat the character next to it, or they only handle a face when it is the whole line. Try a sentence with a face in the middle.

Before you code

Write down two typed faces on paper and the picture you would want instead. Then read the spec for which faces it cares about.