In essence, a cheat code modifies a core function of a game that affects gameplay in some way. Put into simpler terms, they modify what a player can and can't do. For the most part, cheat codes help the player — as in the case of invincibility or infinite ammo cheat codes.