The best book about ants is undoubtedly The Ants by Bert Hölldobler and Edward O. Wilson. Nearly every question you could ever think to ask about ants is answered in this 712-page book.
In fact, The Ants is so comprehensive that it won the Pulitzer Prize for General Nonfiction in 1991. The authors, Bert Hölldobler and Edward O. Wilson, are both legends in the field of myrmecology. Wilson is even credited with developing the theories of chemical communication (i.e. pheromones) and sociobiology.
Five years ago when I made a prototype for an ant colony simulation game, an incredible phenomenon occurred. With only a few lines of code, my ants became an intelligent superorganism with advanced pathfinding capabilities.