Back
Close

CodinGame emoji system replication

Statement

 Goal

In this Clash you have to recreate the emoji system of CodinGame.
For example, if you type this in the chat you get:
:slight_smile: --> :)
:disappointed: --> :(
Input
An string s
Output
The string, with emojis inserted:
:slight_smile: ---> :)
:disappointed: ---> :(
:loud_laugh: ---> XD [not a real chat emoji conversion]
:open_mouth: ---> :o
:stuck_out_tongue: ---> :p
THESE WILL BE THE ONLY EMOJIS COMING IN THE TEST CASES
Constraints
Length of s <= 100
Each word is seprated by a single whitespace
Example
Input
This is SOO easy :loud_laugh:
Output
This is SOO easy XD

Game modes
Fastest, Shortest, Reverse

Test cases
Very Basic Test
Input
This is SOO easy :loud_laugh:
Output
This is SOO easy XD

Validator 1 Validator
Input
This is SOO easy :slight_smile:
Output
This is SOO easy :)

Not Much Harder Test
Input
:) I am a CodinGamer :slight_smile:
Output
:) I am a CodinGamer :)

Validator 2 Validator
Input
This is a fake test case
Output
This is a fake test case

CoC Critic Test
Input
CoC is VERY good. Kinda obvious :stuck_out_tongue:
Output
CoC is VERY good. Kinda obvious :p

Validator 3 Validator
Input
Yeah yeah that test case was bad :disappointed:
Output
Yeah yeah that test case was bad :(

ChampionCoder :) Test
Input
ChampionCoder is me :loud_laugh:
Output
ChampionCoder is me XD

Validator 4 Validator
Input
My test cases are very bad :disappointed:
Output
My test cases are very bad :(

Bit Hard: Can trip you up Test
Input
Bit Hard: Can trip you up:):(XD:p:o
Output
Bit Hard: Can trip you up:):(XD:p:o

Validator 5 Validator
Input
DOES not trip you up; but who cares
Output
DOES not trip you up; but who cares

All in One XD Test
Input
:open_mouth: :slight_smile: :disappointed: :loud_laugh: :stuck_out_tongue:
Output
:o :) :( XD :p

Validator 6 Validator
Input
Same test case :open_mouth: :slight_smile: :disappointed: :loud_laugh: :stuck_out_tongue:
Output
Same test case :o :) :( XD :p

Solution language

Solution

Stub generator input