Show HN: I spent 3 years reverse-engineering a 40 yo stock market sim from 1986 (opens in a new tab)wallstreetraider.com
721 pointsHello my name is Ben Ward for the past 3 years I have been remastering the financial game Wall Street Raider created by Michael Jenkins originally on DOS in 1986.
It has been a rough journey but I finally see the light at the end of the tunnel. I just recently redid the website and thought maybe the full story of how this project came to be would interest you all. Thank you for reading.

Comments (240) 65 threads
Earlier commentsAre there any plans to break out portions of the Basic engine to a modern language? It's frustrating that the heart of the game remains inscrutable. Surely Ward is tempted?
It's a lovely achievement you have pulled off, and Jenkins must be tickled.
So the program most likely is flat: a bunch of global variables (and possibly memory addresses), and instructions ordered by line number, rather than functions or methods.
(However it wouldn't surprise me if older 'line number' programs still mostly worked. iirc VB6 also supported this.)
Continue this thread — 2 replies
No line numbers except for goto labels, but gosub is the challenge for transpilation.
No real functions, only `gosub` and `goto` so everything is a global variable.
I think even assembler for x86 is easier to unravel.
But the best way I can answer your question. WSR does not claim to simulate real markets. It probably leans too much into fundamentals for our time, at least for the blue chip stocks in the game. What is actually is is a M&A and tax evasion simulator on top of a financial market sandbox to create tax implications to be avoided.
Continue this thread — 2 replies
One thing I really don't understand at all is how it's possible to do so much in only 115 kloc. 115 000 lines of code is next to nothing for such a project: there are solo projects with more lines of code than that. It simply ain't that much: how can you simulate mergers, financial derivatives, etc. all in so little lines of code?
It is, simply put, a little codebase. Which makes it all the more impressive.
I mean: it's both a lot (for the time) and nothing for what it does. I'm sure brokerage apps have 10x that amount of code and they only deal with the client side of things. I understand the game doesn't reproduce everything but it still looks incredibly impressive to me to pack so much in so little lines of code. Doubly so if this is sufficient to teach people the basics of finance and trading.
Now something else: this reminds me a bit of a game by the company FTL (created in 1982), who created Dungeon Master. Before that game FTL did "Sundog: The Frozen Legacy". In Sundog they implemented an interpreter for a programming language so that they could write their game (otherwise the default languages available were too limitating) and... You could buy/sell stuff across planets, that you'd transport in your spaceship. They had started writing a complex trading engine for the game: the player was supposed to be able to place buy/sell orders and whatnots but eventually they gave up that part of the game. FWIW when I was playing Sundog The Frozen Legacy I was feeling I was Han Solo in my spaceship: great memories.
Wishing the best to Ben Ward and sending big thanks to Jenkins. These kind of entries are why I'm on HN.
All comments shown.
Couldn't load more comments. Check your connection and try again.