News for hackers. Stuff that matters.
Re:Show HN: Logarithmic Flappy 2048 by shmageggy on Wednesday March 19, 2014 @07:44PM (#7432715)
I would describe this as multiplicative rather than logarithmic. 2×2×2×2...

Or maybe exponential if you consider your score to be 2^(number of walls you've jumped).

I don't get logarithmic, though.

Re:Show HN: Logarithmic Flappy 2048 by drcode on Wednesday March 19, 2014 @08:00PM (#7432800)
I think the term is "geometric"
Re:Show HN: Logarithmic Flappy 2048 by judk on Wednesday March 19, 2014 @08:22PM (#7432933)
Geometric is the same as exponential. It is just a geometric interpretation instead of algebraic.
Re:Show HN: Logarithmic Flappy 2048 by jasomill on Thursday March 20, 2014 @12:24PM (#7436540)
Pedantically,

    s_n = k (-1)^n
for

    n = 0, 1, 2, ...

and nonzero constant k is a non-constant geometric sequence that doesn't exhibit exponential behavior.
Re:Show HN: Logarithmic Flappy 2048 by albertjorlando on Wednesday March 19, 2014 @08:52PM (#7433047)
This is the exponential function, 2^x. Where the independent variable is the number of walls jumped. For instance, after 30 jumps, your score/tile reads 1073741824, or 2^30.
Re:Show HN: Logarithmic Flappy 2048 by dllthomas on Wednesday March 19, 2014 @09:02PM (#7433083)
Or it's the logarithmic function lg(x), where the independent variable is the score and the dependent variable is roughly proportional to the number of times you've clicked.
Re:Show HN: Logarithmic Flappy 2048 by albertjorlando on Wednesday March 19, 2014 @09:13PM (#7433128)
Well yes, logbase2(x), where x is your score, does equal the number of wall jumps. But that doesn't account for how the game is laid out. Your score is a result of the number of jumps you've made. The number of jumps you've made is not the result of your score. Therefore, despite these two functions being the inversely related, the correct relationship is 2^x. That is just my opinion though.
Re:Show HN: Logarithmic Flappy 2048 by dllthomas on Wednesday March 19, 2014 @09:19PM (#7433162)
I agree "exponential" would have been a more natural choice.

"Therefore, despite these two functions being the inversely related, the correct relationship is 2^x."

There is no "correct relationship", there is a relationship that (depending on choice of variables) we can describe as y=2^x or y=lg(x).

Re:Show HN: Logarithmic Flappy 2048 by jjaredsimpson on Thursday March 20, 2014 @02:57AM (#7434262)
Sure, score = 2^walls iff log_2(score) = walls. So, being equivalent statements, one alone can not be correct.

However, as you said, one choice of describing the relationship is certainly more natural. The exponential description assigns a score to every natural number. While the logarithmic description does not.

I would interpret correct in the way that it is sometimes said, "the correct way to think about X is..." which doesn't say other ways of thinking are wrong, but limited or not illuminating.

Re:Show HN: Logarithmic Flappy 2048 by orcasauce on Wednesday March 19, 2014 @08:30PM (#7432968)
After around 4096 it starts tapering off, hence logarithmic.
Re:Show HN: Logarithmic Flappy 2048 by TazeTSchnitzel on Thursday March 20, 2014 @05:12AM (#7434509)
I chose the name without any thought, really.

An early version of the code did use log2() on the score internally, but now it does pow(2) externally.