Community, Competition, and Adaptation