Guest User

Challenge #8 - Code #3 - Explanation

a guest
May 23rd, 2015
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. The Input of, (http://imgur.com/a/ADCTX#0), is: "if you have the fire of knowledge let others light their candles with it".
  2.  
  3. This code is pretty straightforward, a lot more than Code #2.
  4. Encode 1 word at a time, find the x,y (0-4) coordinates of each input letter within a 5x5 grid table. Of those coordinates, the characters will only be: 0,1,2,3,4. This is what each character equals: (http://imgur.com/a/T5TZK#0). Just convert each coordinate character into it's square form and line them up side by side.
  5.  
  6. For example:
  7.  
  8. If our Input is: "hello world", we first split them into 2 groups because there are 2 words:
  9. "hello"
  10. "world"
  11.  
  12. Next, we create a 5x5 grid and starting from left to right and going down, we fill the boxes with a-z (having the last box encompass both y and z). Assign the coordinate system by assigning 0-4 for the rows and columns. ((0,0)=U, (4,4)=E, (0,4)=A, (4,0)=Y/Z etc.)
  13.  
  14. Converting out input groups would leave us with:
  15. h= (2,3)
  16. e= (4,4)
  17. l= (1,2)
  18. l= (1,2)
  19. o= (1,2)
  20.  
  21. w= (2,1)
  22. o= (4,2)
  23. r= (2,1)
  24. l= (1,2)
  25. d= (3,4)
  26.  
  27. Simply just convert each number into their square form and connect them together from left to right:
  28.  
  29.  
  30. hello = 2344121212 = http://imgur.com/a/Ljo1D#0
  31. world = 2142211234 = http://imgur.com/a/Ljo1D#1
  32.  
  33.  
  34. That's all there is to this code. :D
  35.  
  36. Thanks for participating for Code #3! :D
  37.  
  38.  
  39. - DWC
  40.  
  41. --------------------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment