Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Attack of the Robots!

image with no caption

Here, we look at a game so horrifying that it’s sure to give you nightmares: Attack of the Robots! In this game, robots have taken over the world, and it’s your job to destroy them. Though the plot may sound scary, the part of this game that will really give a Lisp programmer nightmares is the way it abuses the loop and format commands in order to squeeze a fully functional robot-fighting game into a single page of code! (This program uses the “crazy formatting trick” discussed in the previous section.)

I have annotated the code with some basic explanations. If you want to understand how the game works in detail, you’ll need to review most of the information from the previous couple of chapters. Also, you can visit http://landoflisp.com/ to download the source code for the game and read a more thorough explanation of the code.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint