Cheating refers to the process of playing the Pokémon games through third-party devices to alter the game's data, usually to give the player advantages that would not be available through normal gameplay. Cheating is most frequently used to obtain or duplicate rare Pokémon or items, particularly those which would otherwise require attending a Nintendo event.
Devices such as GameShark and Action Replay can be easily used to directly alter the game's data in many ways, such as automatically making Pokémon Shiny, giving them optimal IVs and Natures, or even modifying their moves and stats to obtain otherwise impossible values. These Pokémon are frequently known as hacked Pokémon. The devices are also frequently used to obtain Pokémon or items which would otherwise be only obtainable through a Nintendo promotional events. For example, cheating may be used to obtain the GS Ball or Old Sea Map (in generations II and III respectively), both of which were only distributed in Japan.
A common example of a cheat is a "Wild Pokémon Modifier" code, allowing the user to encounter and catch any Pokémon of choice in any location, allowing for example, rapid EV training or obtaining of Legendary Pokémon. More complex codes can also set the wild Pokémon's level and Nature. These codes when used properly can have little to no negative effects on the save file, although later generations keep track of the location where a Pokémon was obtained making it possible to identify illegitimate Pokémon obtained through this method. More unconventionally, a wild Pokémon modifier code can be used in Pokémon Black 2 and White 2 to see Pokéstar Studios opponents, although catching them is impossible as the game will attempt to bring up a nonexistent Pokédex entry, causing a game freeze.
Older firmware versions of the Nintendo 3DS were vulnerable to the use of an exploit involving the device's built-in web browser to overwrite the RAM of a suspended game. QR codes were used to link and share these exploits. However, an update in March of 2015 patched out the exploit entirely. In addition, more recent firmware versions contain exploits that enable the usage of homebrew software, which can be used to modify the save files of games. There is also external save editing hardware, such as Datel PowerSaves and Cyber Gadget.
On a more sophisticated level, many devices exist that allow players to back up their game's save file. While itself arguably legitimate, some downloadable programs such as Pokésav have been created specifically for use in conjunction with these files, allowing users to freely edit or make their own Pokémon from scratch.
Not all players will use cheating devices to make the game easier. Examples of codes that can be used to make the game harder include using codes to trigger a battle with Professor Oak, or codes that prevent the user's Pokémon from gaining any experience.
The primary complaint against cheating devices is that it takes no particular ability to enter a cheat code, thus detracting from the point and spirit of the game and making it less enjoyable. While this is a subjective matter, it is the primary cause of cheating offending most players, especially when players can trade illegitimate Pokémon to others in exchange for legitimate Pokémon.
Another argument against cheating is that it often hurts the stability of the game. Improperly used codes can harm the game's save file or even delete it altogether.
A common justification for using cheating devices is that they can be used in moderation to obtain otherwise event-exclusive Pokémon. Due to the fact that Nintendo events, the only legitimate way to obtain such Pokémon, are often time-limited and region-exclusive, they can be impossible to obtain for some players solely due to their geographic location, and become altogether impossible after a certain date. It is a matter of opinion whether or not this is a valid excuse for cheating, although when kept for personal use is often criticized less than more drastic cheats.
Generation III games exclusively contain two specific cheating countermeasures. First, Mew and Deoxys were given special programming that prevents them from ever obeying the player if they were obtained illegitimately, even if the player has the right badges. This can be bypassed if the player uses cheats to get to Faraway Island or Birth Island to catch the Pokémon that way, as the Pokémon itself becomes indistinguishably legitimate although the event item to arrive at the location is not. This countermeasure does not exist in Generation IV. Second, special programming known as DMA (dynamic memory allocation) causes sensitive memory areas such as Pokémon data to dynamically move around, preventing or making it difficult for cheating devices to target this data. This can be avoided through codes that disable the DMA altogether; such codes are often referred to as "Master Codes".