Show HN: bouncemarket – a live prediction market game for a bouncing ball

(bouncemarket.minhanhday.com)

248 points | by mday404 3 hours ago

39 comments

  • charlieyu1 2 hours ago
    Fun little game, but the drop needs to be slower so it is easier to bet. Odds jumping from 0.01 to 0.99 in like one tenth of a second makes it hard to play
    • johnnyenn 2 hours ago
      The drop is pre-simulated over SSE anyway, so adding a bit more delay between frames would fix this. Right now normal ping moves the odds before the click even hits the server.
    • novia 2 hours ago
      this was because of a bot added to the game, it was easier
  • vova_hn2 3 hours ago
    Completely ignoring the ball and just buying cheap shares is a surprisingly efficient strategy. Often I'm able to get both kinds of share for cheap, so I win regardless of the outcome.
    • cvoss 2 hours ago
      I would guess that the universe of players not being closed is a source of imbalance. There is a constant stream of new players who are granted 10 credits. Maybe they play for a bit and leave when they get disinterested, which is more likely than not going to occur when they have less than 10 credits.

      So if the money supply per capita is constantly increasing, holding a share in anything with a 50% chance of payout has a positive expected return. Diversifying by buying both shares makes your portfolio very resistant to fluctuation. The ideal strategy just rides the inflation on average.

      • marcosdumay 1 hour ago
        What you are describing is there, yes.

        But the GP's experience is due to a lack of good players with time to plan their bets. This is a well known feature of derivatives markets...

    • novia 2 hours ago
      it was fun to buy low until someone added a bot to do that which makes the price instantly swing in the opposite direction by the time your click guess through
      • sebastos 1 hour ago
        I was frustrated by the same until I realized that if it’s that predictable I should be able to take advantage of it. I started getting more success with a buy high strategy, which because of the bot ends up as a buy low strategy by the time your click registers. The bot moves the market so much and so consistently that it ends up just behaving as a phase shift.
      • catlifeonmars 1 hour ago
        I read this as “trading is easy until the quants get involved”. So basically just like a real market.
    • imeanwhatdoikno 3 hours ago
      Yeah feels like either the market is quite inefficient or there's a bug because just buying up sub-0.05 shares on both sides makes it too easy

      P.S. still genius idea. Might need some refining

      • mday404 3 hours ago
        Just checked my logs -- the market maker is actually up slightly (around 46 points). Lots of people are profiting, but it's balanced by losses from other players. Around ~400 points move around per round at the moment.
    • aniceperson 3 hours ago
      its is missing trading fees indeed.
    • StingyJelly 3 hours ago
      [dead]
  • qoez 1 hour ago
    I wish people leaned into making prediction markets about pure random events like this. In theory they should be just as legal as sports betting in the sense of being considered "financial contracts", but no one has actually done the experiment (with real money not fake like here) as far as I'm aware.
    • lesam 1 hour ago
      The CFTC disagrees (IANAL):

      > Gaming contracts are likely to be contrary to the public interest, the CFTC indicates, if they involve games of random chance, as trading in such contracts would not provide useful or meaningful information.

      https://www.congress.gov/crs-product/LSB11441

      • qoez 42 minutes ago
        Would be interesting to know/test where the line is. If a person gets to place the initial placement of the ball is that now slightly a game of skill? Maybe the 'chat' votes on it. There's already coin tosses in sports games sometimes (to determine who goes first and stuff like that) so some kind of mixing of pure randomness is allowed.

        There's also already weather contracts that are allowed which are very 'random'/a very chaotic system very hard to fully predict. A coin toss is technically fully determined/not random if one knew all the atoms and their momentum etc.

    • pjc50 58 minutes ago
      Am I the only one going "this is just gambling! No!" Here?

      Used to be electro mechanical toy horse racing games for this purpose.

      • retsibsi 46 minutes ago
        > Am I the only one going "this is just gambling! No!" Here?

        That was my first reaction too, but I think that was their point: prediction markets are already being used as a loophole to allow sports betting in jurisdictions where it is supposed to be banned, and (according to them; I haven't checked this) the legal theory that justifies that would also justify 'prediction markets' on random outcomes, i.e. really blatantly just pure gambling. So it could serve as a kind of reductio of the sports betting loophole.

    • whycombinetor 46 minutes ago
      Casinos definitely exist, lmao.
      • qoez 43 minutes ago
        The point would kind of be to make fun in almost a performance art way of the "sports are financial contracts" idea. Though as someone else commented I'm incorrect about this specific ruling.
        • whycombinetor 11 minutes ago
          You can walk up to any craps or roulette table in a casino and participate in a legal prediction market for the random events happening on the table. That's not a performance art.
  • suzukivenom 3 hours ago
    bouncemarket: bought Right x52 at avg 0.19, landed Right, +42.21 in one round https://bouncemarket.minhanhday.com/r/FYv-qiLU
  • Andr2Andr 36 minutes ago
    Could be expanded with futures, indexes, hedge funds, shares etc. to teach the general public about the financial topics. A user is first prompted to play a few rounds, and then has the ability to invest, to buy some shares etc. I think it could become the go to page to understand the financial markets. Just my thoughts what to make of this in future
  • Lightbody 1 hour ago
    Fun! Can you update it so double tapping the bet buttons doesn’t zoom in on mobile? Should be a one line CSS tweak.
    • mday404 1 hour ago
      should be fixed now!
  • xp84 2 hours ago
    It’s too hard to buy multiple shares. The price changes super fast so I’d like to have buy 5,10,100 shares buttons too. Or something like that.

    Super fun though. Love the idea and the execution.

  • theophrastus 2 hours ago
    If it is an approximal simulation of Galton board[1] then wouldn't wagering on the side the ball starts on have a positive outcome over time?

    [1] https://en.wikipedia.org/wiki/Galton_board

  • trwhite 1 hour ago
    The latency on the button press is much too slow to actually make a decision about the price. It feels pretty random as to what price you’re gonna get
  • darepublic 48 minutes ago
    I would prefer if it were a known 'fair' plinko machine that was being automated physically and you were live streaming that. It would make it a lot more interesting to me. That or a roulette wheel
  • theturtletalks 1 hour ago
    This is actually how the formula for options came about!
  • 2bird3 45 minutes ago
    Nice! Claude was able to recreate the simulation pretty quickly- it might be worth adding a little randomness to the bounces.
    • mday404 38 minutes ago
      I'm curious, were you able to actually trade on the simulation's results?

      My assumption was that the data you get as a browser doesn't have sufficient resolution to reverse-engineer the simulation, since the simulation operates on full 64-bit floats and you only get 0.1px granularity in display, so you don't know where the ball "really" is to guess it super early.

  • frenchmajesty 3 hours ago
    Surprising fun and awesome! Love it.

    It was not immediately clear how the game was played but it came to me soon enough. I think one or two "trial/tutorial" rounds would go a long way to give me a proper shot at the leaderboard.

    I wasted my first 2-3 balls as I was looking at the UI trying to understand how to play.

    • mday404 3 hours ago
      Thanks for the feedback! I'll work on some kind of tutorial to start the game
  • hellojomp 2 hours ago
    I had a similar idea a few months ago https://hellojomp.com/mob-market/ but instead of a ball bouncing it was about the dynamics of webpage links turned into hawks and pigeons and random predictions regarding them i.e. will X spawn Y times in _ seconds.
  • matthova 3 hours ago
    Love the concept. Great implementation
  • joshribakoff 3 hours ago
    So fun, and easy to profit, at least for a few minutes. Seems like if you played this professionally 40hrs a week full-time it would get tiring fast. Maybe there is a metaphor in there.
  • imeanwhatdoikno 3 hours ago
    This is kind of genius
  • echoangle 3 hours ago
    Is there a way to sell shares before resolution?
    • mday404 1 hour ago
      No, I thought about it but I wanted to keep the UI as simple as possible. Definitely would make the market more interesting in a future update!
    • gpm 2 hours ago
      Buying a share on the opposite side is effectively selling a share.
  • furyofantares 2 hours ago
    Hilarious and fun. Btw if I tap furiously on a button the page zoomed in every time the button ends up disabled.
    • mday404 59 minutes ago
      should be fixed now!
  • dpmartinez 3 hours ago
    This looks fun, but I imagine someone somewhere in a financial exchange company looking at this and thinking:

    "bouncing ball futures contracts, would be a thing to offer our sophisticated clients."

  • folli 3 hours ago
    "AI Traders" - "naive set of rules". Definitive proof that if..else is AI now.

    Jokes aside, cool game. Introducing trading fees would be interesting to make it more realistic in terms of buying both sides.

  • gpm 3 hours ago
    I'd like to see how much the market maker is making/losing.
  • jdorfman 1 hour ago
    That’s it I’m opening up a Kalshi account. Going to be rich.
  • cush 2 hours ago
    Fun idea! The page shouldn’t zoom in when you tap rapidly - makes it impossible to play on iOS
  • elisgillberg 3 hours ago
    Hehe this is awesome!
    • jojogeo 3 hours ago
      Agreed; throwing all my "free money" on one side, after guessing correctly several times in a row with small stakes had me literally shouting in excitement, just before losing it all :')

      I can see why people throw money at gambling, if its easy enough to do.

      • deadbeefer 3 hours ago
        Y'know, the more I think about it... a lot of the games that hook ya have this element of prediction. Even (especially?) stuff that's deterministic without true RNG. Even really fast-paced twitch games tend to push your reflexes to the point where you have to predict in advance. Sorta triggering that gambler's reflex. Pre-aiming hitscan weaps at corners and pre-firing projectiles where feet will land in many shooters feels like they trigger something similar.
        • bee_rider 1 hour ago
          That’s an interesting thought.

          Whether pre-aiming has a downside or not seems to depend on map design? Like if there are multiple plausible corners, you have to pick one, so there’s a cost of not picking the other. Other games have simpler maps, if there’s only one plausible corner I guess there isn’t much cost to aiming at it.

          Of course, defining plausible corners relies on map knowledge. Actually I think that’s one of the reasons I quit playing online shooters didn’t want to put in the level of effort required to make those gambles fun. Random death is boring.

        • cogythea 1 hour ago
          Yep, having that "I can see where this is going" moment is what pulls you in, especially when you get it right. And then for gambling, it's when you start to think "I can see where this is going better than other people can", that's when you see real opportunity to win your fortune. For games like Poker, that's rare but entirely possible, but for games like OP's it's borderline impossible - but that doesn't stop the brain thinking it.
  • dandaka 2 hours ago
    Please add keyboard controls
    • mday404 1 hour ago
      added! Reload the page to see
  • JonnieCache 3 hours ago
    Do it with a camera and a real ball lol
  • rickcarlino 3 hours ago
    Finally a useful application for predictive markets.
  • franze 3 hours ago
    make it so that the important stuff is the height of the viewport above fold. i don't see the ball falling at the start
  • ex-aws-dude 2 hours ago
    This is what I pretend my stock buying strategy is not underneath
  • hei-lima 1 hour ago
    Really cool!
  • eterm 3 hours ago
    It annoys me we can't put in limit orders, as with a touch screen the latency kills you as the price changes underneath you!

    ( Annoys is too strong a word, it's just a game! )

    • andai 3 hours ago
      Sounds like you may be interested in my new real-time neural interface, ball2brain.
  • d--b 1 hour ago
    A prediction market should allow us to sell
  • iamgopal 3 hours ago
    are there keyboard short cut ?
    • mday404 1 hour ago
      just added! left and right arrows
  • setnone 3 hours ago
    cool! up next: bouncemarketbot
    • mday404 2 hours ago
      In hindsight I'm realizing I should have had a bot high scores and real player high scores since both require skill but in different ways
  • NooneAtAll5 2 hours ago
    another gambling website?
  • RemingtonDavies 1 hour ago
    [dead]