Source Code for "The Gopher's Gambit" by Hom et al. The code for investigating the survival advantages of intention perception in the paper "The Gopher's Gambit" by Hom et al.