Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This was a hangman game in GW-Basic. It was the messiest code I've ever written. 38k lines for a simple 3 letter only hangman game.


Wow, that is indeed impressive. I admire the determination it must have taken to get to 38000 lines of code for a three letter game. Was this text-based or graphical (I can't remember -- did gwbasic even support anything beyond basic CGA video modes?)?

Edit: Wait, was that BASIC line numbers reaching to 38000, or 38000 actual individual lines?


Erm sorry, it was a 38k source file of text. I was actually hard coding everything because I didn't understand it. the whole screen would get printed out (without any sort of looping) each time you guessed a letter.

GW Basic did let you do basic graphics, I eventually got around to emulating a side scroller at one point. Obviously it was just the foreground, but it was quite a lot of fun.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: