Skip to content

Instantly share code, notes, and snippets.

@mikedao
Last active August 29, 2015 14:13
Show Gist options
  • Save mikedao/77b440c6b36dd2c04bba to your computer and use it in GitHub Desktop.
Save mikedao/77b440c6b36dd2c04bba to your computer and use it in GitHub Desktop.

Description

During online gaming (or any video game that requires teamwork) , there is often times that you need to speak to your teammates. Given the nature of the game, it may be inconvenient to say full sentences and it's for this reason that a lot of games have acronyms in place of sentences that are regularly said.

Example

gg : expands to 'Good Game' brb : expands to 'be right back' and so on... This is even evident on IRC's and other chat systems. However, all this abbreviated text can be confusing and intimidating for someone new to a game. They're not going to instantly know what 'gl hf all'(good luck have fun all) means. It is with this problem that you come in. You are tasked with converting an abbreviated sentence into its full version. #Inputs & Outputs ##Input On console input you will be given a string that represents the abbreviated chat message. ##Output Output should consist of the expanded sentence ##Wordlist Below is a short list of acronyms paired with their meaning to use for this challenge.

lol - laugh out loud

dw - don't worry

hf - have fun

gg - good game

brb - be right back

g2g - got to go

wtf - what the fuck

wp - well played

gl - good luck

imo - in my opinion

#Sample cases ##input wtf that was unfair ##output 'what the fuck that was unfair' ##input gl all hf ##output 'good luck all have fun' #Test case ##input imo that was wp. Anyway I've g2g ##output ????

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment