If you don't have an old computer with DOS or pre-2000 Windows on it, you can still run QBasic programs:
- First, what not to use. There are a couple of online emulators, but they are very limited, only supporting a subset of QBasic commands. Most importantly for this site, they don't understand syntax shortcuts that are useful for golfing! =^O
- I run most of my programs on QB64QB64, a free download. I've only used the Windows version; the website lists versions for Mac and Linux as well, but I can't speak for those. This is an emulator, written from scratch in C++, that compiles your QBasic code to an executable and then runs it.
Pros: it's got most of the features of QBasic (and quite a few extras, too); you can also turn off syntax expansion, so your golfed code stays golfed.
Cons: there are a few things from QBasic that aren't implemented, and several more that have subtle differences; some screen modes display as pretty small windows; the debugger and immediate mode aren't included, because it's a compiler not an interpreter.
- Archive.org has made available the original QBasic running on the DOSBox emulator, meaning it's now possible to run QBasic code online.
Pros: it's the real thing, works as advertised, no download necessary.
Cons: you can't save your code or copy-and-paste in or out; sound works but comes across a bit wonky; and you can't turn off syntax expansion.
- It's also possible to download the original executable and run it in DOSBox yourself. I haven't tried this, but steenbergh has had good success with it.