News for hackers. Stuff that matters.
Re:BASIC Computer Games Book, published in 1978 by bitwize on Wednesday November 03, 2010 @06:16PM (#1866766)
I have this book, somewhere, and I have so many fond memories of it. Of course I didn't actually type in and play many of the games, because TI-99/4A BASIC was not really compatible with Microsoft BASIC. I revisited it some years later on a Tandy, though, and did things like adapt the horseracing game to show an animated on-screen (text) display of the horses running towards the finish line across the screen. That sort of thing.

I also added graphical capability to the Life game. Seeing a Life plot unfold over the entire screen in pixels was breathtaking.

I always liked the dorky guy with his arm around the robot, like he finally has a pal who understands him. "Mom, you said I should make new friends. So that's just what I did! Meet Gregtron. Man, me and Gregtron are gonna do everything together! Go camping and play ball and... Wait, that's not what you meant?"

Even better were the robot comics inside the book. There's something grim and vaguely cyberpunk about them. "Oh yeah? Well, your mother has knobby tires..."

Re:BASIC Computer Games Book, published in 1978 by kd0amg on Thursday November 04, 2010 @08:51AM (#1868620)
I had a copy too. I remember having to tweak the code a bit to get it to work on whatever dialect of BASIC I was using at the time, but it seemed a fairly straightforward conversion. I was most fascinated by the hexapawn program. When I first saw it, I'd never heard of a program that improves itself over time. More recently, I tried generalizing the hexapawn program so it would work on larger board sizes, and the bot could play either side (or both of them). Putting a learning bot as player 2 (on 4x4 and 5x5) against a random bot, it seemed to learn in reasonable time that it could not force a win, but a learning bot as player 1 never seemed to learn to do so. Unfortunately, the learning strategy was essentially a list of bad moves to make, so it doesn't scale well to larger board sizes.