logoalt Hacker News

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

273 points • by mday404 • today at 3:01 PM • 85 comments • view on HN

a ball will fall. trade on where it lands.

I made this game! Some technical details:

The entire drop of the ball is simulated server-side, then streamed to each client as server-sent events with a small buffer. Every drop is deterministic from its starting position, so rounds can be replayed exactly for later analysis, but tiny variations in starting position can change the ultimate outcome.

There's some AI traders to keep the market moving, but they drop out in any round that has more than five people. They operate using a naive set of rules that I wrote for them, so they're not too hard to beat -- it's when the market is full of real people that it gets tricky.

Curious to get feedback on anything you would change, and especially whether the mechanics were clear right away or not.


Comments

charlieyu1 • today at 4:11 PM

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

➕ show 2 replies
vova_hn2 • today at 3:29 PM

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.

➕ show 6 replies
qoez • today at 5:33 PM

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.

➕ show 3 replies
suzukivenom • today at 3:14 PM

bouncemarket: bought Right x52 at avg 0.19, landed Right, +42.21 in one round https://bouncemarket.minhanhday.com/r/FYv-qiLU

➕ show 1 reply
akshayp29 • today at 7:32 PM

There's a lag! The odds seem to be updating quicker than the ball animation for me, which makes it really hard to trade...

➕ show 1 reply
xp84 • today at 3:58 PM

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 • today at 4:09 PM

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

➕ show 2 replies
Lightbody • today at 5:41 PM

Fun! Can you update it so double tapping the bet buttons doesn’t zoom in on mobile? Should be a one line CSS tweak.

➕ show 1 reply
trwhite • today at 4:55 PM

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

Andr2Andr • today at 6:14 PM

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

theturtletalks • today at 5:15 PM

This is actually how the formula for options came about!

frenchmajesty • today at 3:10 PM

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.

➕ show 1 reply
darepublic • today at 6:02 PM

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

matthova • today at 3:46 PM

Love the concept. Great implementation

hellojomp • today at 4:33 PM

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.

joshribakoff • today at 3:30 PM

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 • today at 3:22 PM

This is kind of genius

2bird3 • today at 6:05 PM

Nice! Claude was able to recreate the simulation pretty quickly- it might be worth adding a little randomness to the bounces.

➕ show 1 reply
echoangle • today at 3:32 PM

Is there a way to sell shares before resolution?

➕ show 2 replies
gpm • today at 3:31 PM

I'd like to see how much the market maker is making/losing.

dpmartinez • today at 3:27 PM

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 • today at 3:43 PM

"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.

furyofantares • today at 4:40 PM

Hilarious and fun. Btw if I tap furiously on a button the page zoomed in every time the button ends up disabled.

➕ show 1 reply
cush • today at 4:40 PM

Fun idea! The page shouldn’t zoom in when you tap rapidly - makes it impossible to play on iOS

➕ show 1 reply
elisgillberg • today at 3:08 PM

Hehe this is awesome!

➕ show 1 reply
jdorfman • today at 5:17 PM

That’s it I’m opening up a Kalshi account. Going to be rich.

dandaka • today at 4:31 PM

Please add keyboard controls

➕ show 1 reply
JonnieCache • today at 3:36 PM

Do it with a camera and a real ball lol

idiotsecant • today at 7:00 PM

This is pure dopamine, fantastic. Now the question is whether it will replace my urge to be wolf of wall street or whether it will enflame it.

rickcarlino • today at 3:34 PM

Finally a useful application for predictive markets.

franze • today at 3:32 PM

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 • today at 4:00 PM

This is what I pretend my stock buying strategy is not underneath

eterm • today at 3:35 PM

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! )

➕ show 1 reply
hei-lima • today at 5:10 PM

Really cool!

d--b • today at 4:59 PM

A prediction market should allow us to sell

iamgopal • today at 3:50 PM

are there keyboard short cut ?

➕ show 1 reply
setnone • today at 3:27 PM

cool! up next: bouncemarketbot

➕ show 1 reply
NooneAtAll5 • today at 4:22 PM

another gambling website?

hsng95 • today at 7:09 PM

[dead]

RemingtonDavies • today at 5:07 PM

[dead]