These are practice programs I've written as I work through the textbook Artificial Intelligence: A Modern Approach .