Argh, I dont know who to ping who knows Haskell except zgarb who pointed me to Learn You a Haskell, and nimi
@nimi I was wondering if there is a decent way to write the second algorithm in my Python answert(n,k,q) in Haskell. I've been fiddling with foldl and ceiling and div for a few hours now, but I can't get it to work. Thanks in advance for any help you can provide
console.log([A, B, C, D]);//start
console.log([B, A + B]);
console.log([C, C + B, (C + B) + (A + B)]);
console.log([D, D + C, (D + C) + (C + B), ((D + C) + (C + B)) + ((C + B) + (A + B))]);
So basically I'm writing a browser game for fun. I want the background to be animated (the lines moving towards the left) to give the appearence of the ship always moving. (Sort of like the hyper drive effect in star wars). I've written this code to make it work: