Guest User

Challenge #8 - Code #2 - Explanation

a guest
May 22nd, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. Challenge #8 - Code #2 - Explanation
  2.  
  3. The Input of, (http://imgur.com/a/nBh5a#0), is: "learn how to see Realize that everything connects to everything else".
  4.  
  5. This code is simple, but it seems highly unlikely as I try to explain it through text versus doing it visually.
  6. Encode 1 word at a time, find the x,y (A-E) coordinates of each input letter within a 5x5 grid table. Create a 5 row grid and start at the top left corner. Connect from the starting point to the next column of the 1st coordinate. If the next coordinate is above the previous coordinate, then connect to the line above that next coordinate
  7.  
  8.  
  9. For example:
  10.  
  11. If our Input is: "hello world", we first split them into 2 groups because there are 2 words:
  12. "hello"
  13. "world"
  14.  
  15. 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 A-E for the rows and columns. ((A,A)=U, (E,E)=E, (A,E)=A, (E,A)=Y/Z etc.)
  16.  
  17. Converting out input groups would leave us with:
  18. h= (C,D)
  19. e= (E,E)
  20. l= (B,C)
  21. l= (B,C)
  22. o= (E,C)
  23.  
  24. w= (C,A)
  25. o= (E,C)
  26. r= (C,B)
  27. l= (B,C)
  28. d= (D,E)
  29.  
  30. Now we create a 5 row grid starting with A to E:
  31. http://imgur.com/h1m6HFg
  32.  
  33.  
  34. Start from the top left corner and draw a line over to the 1st coordinate:
  35. 1st coordinates: (C,D)
  36. 1st coordinate: C
  37. Top left corner to Line C:
  38. http://imgur.com/RLCDfL5
  39.  
  40. If the next coordinate, (D), is lower than or the same as the first coordinate, (C), then the line will go up to the top line for the next column and then back down to the next coordinate line, (D):
  41. http://imgur.com/G3hOCAu
  42.  
  43. Do this for the next coordinates, (E,E), and you'll end up with:
  44. http://imgur.com/gPyxJNM
  45.  
  46. But if the next coordinate, (B), is above the previous coordinate, (E), then just draw the line straight to above the next coordinate line, (B):
  47. http://imgur.com/bLfKJ1P
  48.  
  49. and carry on to draw the line to the coordinate, (B):
  50. http://imgur.com/7spLoU1
  51.  
  52. After doing this for all of the coordinates, finish off by drawing a line straight to the top.
  53.  
  54. Keep doing these steps and you'll end up with two images for the two words:
  55.  
  56. hello: http://imgur.com/j2bjvQX
  57. world: http://imgur.com/9hjcu2P
  58.  
  59.  
  60.  
  61. I see a lot potential in this, but only if certain things were adjusted and accounted for haha.
  62.  
  63. That's all there is to this code. :D
  64.  
  65. Thanks for participating for Code #1! :D
  66.  
  67.  
  68. - DWC
  69.  
  70. --------------------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment