An unofficial, read-only Hacker News reader. Join the beta →

Show HN: bouncemarket – a live prediction market game for a bouncing ball (opens external site)

399 points by mday404 1 day ago | bouncemarket.minhanhday.com | 137 comments on HN

View full thread · View on Hacker News

Comment thread (6)

  1. I actually think the bots may have started trading on buffered frames...

    Streaming directly from server to client leads to jitter due to inconsistent frame delivery times, so the client actually holds a few frames "in the future". Given that the price seems to be almost clairvoyant at times, I think the most likely explanation is that someone is reading the buffered frames before the client is supposed to be displaying them haha

    Replies (1)
    1. It's deterministic physics. Knowing the ball's precise position and velocity at any 1 point in time should allow you to predict the end outcome. They don't give a formula for their physics engine, but it should be easily derivable from observing repeated runs.
      Replies (2)
      1. that's true towards the end, but it's harder than it sounds because you don't actually have the precise position and velocity -- you just have the position rounded to the nearest 0.1px.

        I ran the physics simulation and a 10^-12 px change in starting X position yields a different outcome more than 30% of the time, so knowing the ball's position to the nearest 0.1px only gives you a good guess, not an oracle

        Replies (2)
        1. Perhaps with sufficiently many samples, you could reconstruct the floats underlying the rounded output, if there's no randomized dithering applied.
        2. Butterfly flaps its wings
      2. There is server-side randomness in the physics.