Recent years, several ways of implementing quantum games in different physical systems have been presented. In this paper, we perform a theoretical analysis of an experimentally feasible way to implement a two player quantum game in cavity quantum electrodynamic(QED). In the scheme, the atoms interact simultaneously with a highly detuned cavity mode with the assistance of a classical field. So the scheme is insensitive to the influence from the cavity decay and the thermal field, and it does not require the cavity to remain in the vacuum state throughout the procedure.