A theoretical study expands classic game-theory models of cooperation by allowing payoffs to change with available environmental capacity. Games such as the prisoner's dilemma help researchers explore how cooperation could have evolved in a world of limited resources.