How To Write Your Own Game Program: "To write your own game program takes time and dedication. This guide will not give you all the details of game programming, but rather give you a head start to write your own game program."
So, You Want To Write A Game?: The best way to learn how to write games is, alas, to get a solid grounding in the basics of computer science.