These are chat archives for camperbot/bonfire-binary-agents

16th
Aug 2015
SojournerOctocat
@SojournerOctocat
Aug 16 2015 02:16
hint
CamperBot
@camperbot
Aug 16 2015 02:16

hint [1/7]

## :construction: After this are possible spoiler hints.

Make sure you've tried to hard to solve it yourself before proceeding. :construction:

type hint for next hint :pencil: [Contribute at the FCC Wiki]

SojournerOctocat
@SojournerOctocat
Aug 16 2015 02:16
hint
CamperBot
@camperbot
Aug 16 2015 02:16

hint [2/7]

# Author

@Rafase282 submitted by Rafase282 | https://github.com/Rafase282

My Original Wiki

Details

  • Difficulty: 2/5

Return an English translated sentence of the passed binary string.

The binary string will be space separated.

Remember to use RSAP if you get stuck. Try to pair program. Write your own code.

Useful Links

Problem Script:

function binaryAgent(str) {
  return str;
}

binaryAgent('01000001 01110010 01100101 01101110 00100111 01110100 00100000 01100010 01101111 01101110 01100110 01101001 01110010 01100101 01110011 00100000 01100110 01110101 01101110 00100001 00111111');

type hint for next hint :pencil: [Contribute at the FCC Wiki]

SojournerOctocat
@SojournerOctocat
Aug 16 2015 02:16
hint
CamperBot
@camperbot
Aug 16 2015 02:16

hint [3/7]

Explanation:

This problem is very straight forward, you will get string that will represent a sentence in binary code, and you need to translate that into words. There is not direct way to do this so you will have to translate twice.

You should first convert from binary to decimal and from decimal to ASCII
soon

type hint for next hint :pencil: [Contribute at the FCC Wiki]

SojournerOctocat
@SojournerOctocat
Aug 16 2015 02:17
hint
CamperBot
@camperbot
Aug 16 2015 02:17

hint [4/7]

Hint: 2

Things are easier when focusing on smaller parts, divide the input to focus on one letter at the time.

type hint for next hint :pencil: [Contribute at the FCC Wiki]

SojournerOctocat
@SojournerOctocat
Aug 16 2015 02:20
hint
CamperBot
@camperbot
Aug 16 2015 02:20

hint [5/7]

Hint: 3

Make sure that each time you transcode a character from binary to decimal, that you reset whatever variable you used to keep track of the ones. Also do not forget to turn everything back into one string.

type hint for next hint :pencil: [Contribute at the FCC Wiki]