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)

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

View full thread · View on Hacker News

Comment thread (5)

  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.