The joint utilization of a commonly owned resource often causes the resource to be overused, this is known as The tragedy of the Commons. This paper analyses the effects of adaptive learning in such kind of situations using genetic programming. In a game theoretical approach, the situation considers not only the strategic interaction among players, but also the dynamics of a changing environment linked strongly to the players, actions and payoffs. The results of an analytical game are used to formulate a simulation game for the commons, then a series of computational experiments are conducted, obtaining evolved game Strategies that are examined in comparison with those predicted by the analytical model. The obtained results are similar to those predicted by classic game theory, but not always leading to a tragedy.