News for hackers. Stuff that matters.
Re:Show HN: Minecraft Ipsum, my first side-project ever by simantel on Wednesday July 03, 2013 @05:03PM (#5987498)
Cool project! Have you considered some sort of a selector that lets you choose how much text you want to generate? Generally you'll want more than a sentence of filler text.
Re:Show HN: Minecraft Ipsum, my first side-project ever by lewisgodowski on Wednesday July 03, 2013 @05:33PM (#5987673)
Thanks! Yea, that'll be my next step forward. Because of the absurdly strange way I came up with of generating the sentences, I'm having a difficult time figuring out a way of doing that without completely re-writing my function. I'm sure I'll get that functionality working eventually, just need to learn more about JavaScript at this point in time.
Re:Show HN: Minecraft Ipsum, my first side-project ever by AndrewLuke on Wednesday July 03, 2013 @08:30PM (#5988419)
A loop and an array is all you really need.

    for amount of lines needed:
        array.append = function call()
Then iterate over the results to display them. Not perfect, but will work without changing much.