TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

101 BASIC Computer Games

195 pointsby sohkamyung24 days ago

31 comments

hhhAndrew24 days ago
Oh my, this is so amazing. I can&#x27;t wipe the grin off my face. I never thought I was would see Hammurabi (<a href="https:&#x2F;&#x2F;github.com&#x2F;maurymarkowitz&#x2F;101-BASIC-Computer-Games&#x2F;blob&#x2F;main&#x2F;hmrabi.bas">https:&#x2F;&#x2F;github.com&#x2F;maurymarkowitz&#x2F;101-BASIC-Computer-Games&#x2F;b...</a>) again!<p>With this I can pinpoint the exact first bug I created, and debugged. The year was 1991 +&#x2F;- 1, the place was Canberra Australia. For unknown reasons that changed my life forever, my Dad got on board with this &quot;computer&quot; thing and bought an &quot;Osborne&quot; 486 PC. That year I went to the school fete and, for AUD 0.20, picked up a used copy of this book, leafed through the pages, settled on Hammurabi, and after some struggle and discussions with friends, managed to run Q-Basic and typed this program into it. And it sort of worked, but something was wrong, and after much experimentation I found that on line 11 (only today, with this post can, I finally state the true line number) I had written &quot;LET P=P+1&quot; instead of the correct &quot;LET P=P+I&quot;. After a fair bit (days) of trial and error and 10-year-old reasoning, I figured that out, and so it began.
评论 #43762101 未加载
评论 #43762047 未加载
vunderba24 days ago
If you are craving a BASIC fix, I highly recommend getting a DOS emulator like DosBos-X and just installing a copy of Quickbasic 4.5 (which has a compiler among other niceties over the original Microsoft QBASIC). You can easily find it on the Internet Archive.<p>There are modern variants like QB64, but personally I find that BASIC really loses a lot of its appeal&#x2F;flavor when you move from an interpretative language to a compiled one.<p><a href="https:&#x2F;&#x2F;dosbox-x.com" rel="nofollow">https:&#x2F;&#x2F;dosbox-x.com</a><p>I made this a while ago and it ran beautifully in DosBox on my Mac:<p><a href="https:&#x2F;&#x2F;specularrealms.com&#x2F;q-basic" rel="nofollow">https:&#x2F;&#x2F;specularrealms.com&#x2F;q-basic</a>
评论 #43759277 未加载
评论 #43762172 未加载
评论 #43759374 未加载
评论 #43761892 未加载
评论 #43759635 未加载
评论 #43760077 未加载
评论 #43758336 未加载
评论 #43760569 未加载
DigiEggz24 days ago
It&#x27;s so entertaining to just pour through the source for each game and read the language used at the time, like in the game instructions or result responses.<p>There&#x27;s something refreshing about seeing things described in different ways than they are now. I always wonder if some long forgotten words of phrasings will make their way back into public consciousness.
评论 #43785043 未加载
musicale24 days ago
I&#x27;m greatly inspired by the kind of utopian visions of computing that seemed to be common from the BASIC era to the PC era to the pre-Facebook Internet era.<p>I&#x27;m somewhat disenchanted with commercial computing from the social media and smartphone era to the modern AI era, even though it is impressive and technically interesting.
saneshark24 days ago
I don’t see gorillas.bas — that was my favorite. I actually found my appreciation for writing code modifying lines of code in that game to make bigger explosions.
评论 #43759623 未加载
jasperry24 days ago
Many happy memories of checking out books like this from my public library and trying to get the programs working on the C64. The BASIC dialect never matched exactly.
评论 #43758436 未加载
评论 #43758395 未加载
chasil24 days ago
I remember variants on this for several platforms by the authors:<p>Don Inman, Ramon Zamora, Bob Albrecht.<p>TRS-80: <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Advanced-TRS-80-Level-II-BASIC&#x2F;dp&#x2F;0471096776" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Advanced-TRS-80-Level-II-BASIC&#x2F;dp&#x2F;047...</a><p>TI-99&#x2F;4a: <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Introduction-TI-BASIC-TI-99-4A&#x2F;dp&#x2F;0810451859" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Introduction-TI-BASIC-TI-99-4A&#x2F;dp&#x2F;081...</a><p>Visual basic for dos: <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Visual-MS-DOS-Prentice-Innovative-Technology&#x2F;dp&#x2F;0139486623" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Visual-MS-DOS-Prentice-Innovative-Tec...</a><p>VIC-20: <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Vic-BASIC-User-Friendly-Guide&#x2F;dp&#x2F;0835983773" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Vic-BASIC-User-Friendly-Guide&#x2F;dp&#x2F;0835...</a><p>Here is the full TRS-80 text: <a href="https:&#x2F;&#x2F;archive.org&#x2F;details&#x2F;trs-80-level-ii-basic-a-self-teaching-guide" rel="nofollow">https:&#x2F;&#x2F;archive.org&#x2F;details&#x2F;trs-80-level-ii-basic-a-self-tea...</a><p>Who were these guys? They were all over the map.
评论 #43768175 未加载
评论 #43759959 未加载
whartung24 days ago
I would love to know how DECs BASIC-PLUS worked.<p>The key thing about B+ is that it&#x27;s a compiled BASIC, it compiled into P-Code, that was then executed. This is in contrast to MS-BASIC which interpreted the parsed token stream over and over.<p>But, there is no way that the entire thing was compiled each time you said &quot;RUN&quot;, that would have been much to expensive. But, it was compiled. At the same time, it kept the entirety of the BASIC program in memory, as text. So, it had to store both the raw text form, and the compiled form. Seems quite expensive given the limits of machines back in the day.<p>So, I&#x27;ve always been interested in the design and engineering history of B+.<p>Similarly, I&#x27;d love to know where Gates and Allen got the idea to use a tokenized form to store the program, as its an elegant solution in a tight memory budget to store the program source and runtime.<p>They&#x27;re clever guys, and maybe they made it up out of whole cloth, but it would be interesting to know what may have inspired them to do it that way. It wasn&#x27;t BASIC-PLUS, as that&#x27;s not how it worked.
评论 #43767605 未加载
0xEF24 days ago
I also remember these books if anyone else was fond of them: <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Micro_Adventure" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Micro_Adventure</a><p>I have a few books from the Micro Adventures series and they can still be found on eBay for around $5 - $10 USD each, I think. Fun times, indeed!
genghisjahn24 days ago
I loved Amiga Basic. My first taste of programming without line numbers.
评论 #43768894 未加载
评论 #43759483 未加载
评论 #43759599 未加载
zabzonk24 days ago
Anyone recommend a good, ideally free QBASIC-like for modern Windows? Want native Windows, no DOSBox or similar.<p>My little brother (60+yr old) wants to get back into programming after many years of business analysis, project management, yada yada, but he was originally a programmer. I suggested Python, but I think he might be happier with BASIC. He&#x27;s retired now, so doesn&#x27;t need&#x2F;want to do it for a job.
评论 #43785077 未加载
评论 #43761180 未加载
khazhoux24 days ago
Would be better if the programs were JPGs that you had to type in
评论 #43760064 未加载
评论 #43758329 未加载
carrja9924 days ago
Oh wow this is a trip down memory lane. My parents bought me a computer advertised in the classified ad as “includes over 100 games” and that really meant it came with a book over 100+ games in basic. I’d stay up copying the book to play the games in it. Fun times.
评论 #43760777 未加载
wduquette24 days ago
This exact book is how I learned to program, back in the late ‘70’s. Lots of good memories.
评论 #43760042 未加载
评论 #43759732 未加载
评论 #43759214 未加载
dang24 days ago
Related. Others?<p><i>Updating “101 Basic Computer Games” for 2021</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26273866">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=26273866</a> - Feb 2021 (65 comments)
评论 #43856900 未加载
评论 #43758650 未加载
MomsAVoxell22 days ago
If you want a taste of this nostalgia in the modern age, check out the 10LINEBASIC coding competition, which recently concluded with this years entries featuring some truly astonishing games in just 10 lines of BASIC:<p><a href="https:&#x2F;&#x2F;homeputerium.de&#x2F;" rel="nofollow">https:&#x2F;&#x2F;homeputerium.de&#x2F;</a><p>One of my favorite machines of the BASIC era - the Oric-1&#x2F;Atmos - won the competition multiple times in the last few years (though didn’t this year), and I really enjoy going through these games and observing just how rich a few lines of BASIC code could truly be.<p>In this years list of entries, there’s a Pac-Man clone consisting of a single corridor, which is surprisingly fun, a re-interpretation of the Space Invaders gameplay mechanics which, in hindsight just seems so obvious yet so delightfully simple, a full-blown real-time strategy game, and countless arcade-style minigames .. all implemented in just 10 lines of BASIC!<p>As a longtime follower of this competition, I really enjoy the nostalgia factor, and as its a multi-platform activity, its also really fun to learn the quirks and features of different systems BASIC implementations, as well. (Of course, I have a lot of these machines in my retro collection too, so this gives me a yearly scheduled reason to dust some of them off and give them a try)<p>If you haven’t heard of this, yet yearn to know more about BASIC, definitely check it out! The scene has been getting cooler and more diverse as the years go by, and it has to be said that the competition gets more and more effective as the years go by. The beauty and aesthetics of the 10 lines of code that give us a Pac-Man clone really imbues a sense of zen mastery .. and then there is the realization that, if this is what can be done in 10 lines only, imagine if the rest of the computers memory was then used as effectively.<p>Plus, there is just no way modern platforms can attain this level of programming efficiency and style. It’s really telling that BASIC, a much overlooked language, still contains so much fundamental power, unmatched in the modern era.<p>Here’s the link, one more time - BASIC fans, get yourselves ready for a real treat:<p><a href="https:&#x2F;&#x2F;homeputerium.de&#x2F;" rel="nofollow">https:&#x2F;&#x2F;homeputerium.de&#x2F;</a><p>(Disclaimer: I was invited to judge this years entries, so yeah .. I’m a bit of a BASIC10LINER pimp. I had so much fun with this in the last few weeks!)
kerv24 days ago
Thanks for sharing! This brings back so many memories. When I was 8 years old, my mother enrolled me in a programming summer camp at our local university. This was my first exposure to BASIC and that is what got me hooked. After that, writing BASIC programs on APPLE 2&#x2F;2E throughout junior high and highschool was the thing to do. Switched to Visual Basic shortly after that... It started it all for me!
firesteelrain23 days ago
Coding Horror has set out to modernize many of these original BASIC games in modern programming languages. It has been going on for a few years now.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;coding-horror&#x2F;basic-computer-games">https:&#x2F;&#x2F;github.com&#x2F;coding-horror&#x2F;basic-computer-games</a><p>anyone can contribute and issue a pull request for the targeted language
anthk24 days ago
I would love this for Forth :)<p>Yes, everyone had and has run these either on micros or bwbasic&#x2F;blassic&#x2F;bas, but porting these to Forth would be really cool.
TMWNN24 days ago
Among the most important computer books ever written, on the level of SICP and K&amp;R.<p>Walter Bright said here that he learned programming from this book.
coldpie24 days ago
The Retronauts podcast recently had an excellent episode about type-in computer games, and modern efforts to preserve them: <a href="https:&#x2F;&#x2F;retronauts.com&#x2F;article&#x2F;2367&#x2F;retronauts-episode-677-type-in-games" rel="nofollow">https:&#x2F;&#x2F;retronauts.com&#x2F;article&#x2F;2367&#x2F;retronauts-episode-677-t...</a>
Erwin24 days ago
I found the backslash as separator of multiple statements on one line curious. I guess that&#x27;s because I was used to BASIC on the Commodore C-64&#x2F;128&#x2F;Amiga and later the magical Amos Basic, so there were more differences in some of the other dialects.
评论 #43760834 未加载
sudofoo24 days ago
Were line numbers in old BASIC games actually helpful, or just extra typing?
评论 #43760561 未加载
评论 #43759988 未加载
评论 #43769523 未加载
kayo_2021103024 days ago
Damn! I&#x27;m old. I remember the book.
BrenBarn24 days ago
The Dave Ahl books were one of my first introductions to programming. They&#x27;re still awesome.
评论 #43760047 未加载
Narishma24 days ago
Are any of the games any good?
评论 #43760086 未加载
评论 #43759238 未加载
zombot24 days ago
Ha, `poet.bas` is the ancestor of all LLMs!
jordiburgos24 days ago
Where is gorilla.bas?
zkmon24 days ago
Looks like no Qbasic games? Nibbles, Gorilla - love to see them included.
评论 #43759554 未加载
shmerl24 days ago
No gorilla.bas?
prvc24 days ago
BASIC, that is.
评论 #43758477 未加载
评论 #43758276 未加载