12 comments

[ 3.4 ms ] story [ 43.6 ms ] thread
Hey, I want to share a small game I made. Here's the link to the github. [1]

This was made with Sveltekit, TailwindCSS, ChartJS, and hosted as a static website on netlify.

[1] https://github.com/davjhan/paper-trader-game

It's a fun game! A nice addition would be to tell the player at the end what was the maximum that they could make, and how.
That's a great suggestion, to show potential max loss and max gain.
Or seeing a "ghost" line showing either what a (simple/mostly-random) AI/NPC is doing, or other current/previous players of the same seed.

Something to make it more competitive/addictive.

It's still pretty fun though for sure.

Feels like the flappy bird of paper trading! Short sweet and addictive.
In practice, you're not just betting on a random walk, you're also reading the news and thinking about the company's outlook, its thesis, and its public sentiment. You also have other indicators like volume, and fundamentals such as earnings. There's day trading and longer time horizon investing. As you can see, it's a bit easier to do the latter instead :)
It feels like the goal is to make some point about how stock trading is gambling or just a losing proposition but you'd have to be a total idiot to trade in a manner anything like this game in real life.

Of course if you treat a random stock as a roulette wheel you might lose. That's not much of a profound insight.

This feels rigged. It seems to go up when I sell and go down when I hold. It could just be that I'm a bad player, though.
Not rigged, i had opposite experience and made 500$ after a couple of tries
If you are curious about the logic of values used in this game, I found a comment in the source code:

/* * Generates price data by calculating a 0%..7% movement magnitude multiplied by the "market sentiment", * which is either super bearish, bearish, or bullish. The probabilities of the sentiment can also be configured * marketSentimentProbs. */