Sha256: e05805f67ee73421d45ae40f5aeb4201a07d5920055ade36433c4ef20dd541a7
Contents?: true
Size: 1.17 KB
Versions: 10
Compression:
Stored size: 1.17 KB
Contents
To print text, we need the ascii-value of each character to output.<br> So, we wanna make a series of round numbers going like: 10 close to newline and carriage return 30 close to ! and SPACE 40 close to COMMA 70 close to G 80 close to W 90 close to b 100 is d and close to e and l 110 close to o 120 close to y forming all the letters we need if we just add up a bit Commented version: +++++ +++++ First cell 10 (its a counter and we will be "multiplying") [ >+ 10 times 1 is 10 >+++ 10 times 3 is 30 >++++ etc etc >+++++ ++ >+++++ +++ >+++++ ++++ >+++++ +++++ >+++++ ++++++ >+++++ +++++++ <<<<<<<<< - go back to counter and subtract 1 ] printing G >>>> + . o twice >>>> + .. d < . b < +++++ +++ . y >>> + . e << + . COMMA <<<< ++++ . SPACE < ++ . W >>> +++++ ++ . o >>> . r +++ . l < +++++ ++ . d ----- --- . ! <<<<< + . CRLF < +++ . --- . Uncommented: ++++++++++[>+>+++>++++>+++++++>++++++++>+++++++++>++ ++++++++>+++++++++++>++++++++++++<<<<<<<<<-]>>>>+.>>> >+..<.<++++++++.>>>+.<<+.<<<<++++.<++.>>>+++++++.>>>.+++. <+++++++.--------.<<<<<+.<+++.---. It can most likely be optimized, but this is a nice way to show how character printing works in Brainf*** :)
Version data entries
10 entries across 7 versions & 1 rubygems