In this paper, we propose a scheme fot implementing quantum game (QG) in cavity quantum electrodynam-ics(QED). In the scheme, the cavity is only virtually excited and thus the proposal is insensitive to the cavity fields states and cavity decay. So our proposal can be experimentally realized in the range of current cavity QED techniques.