When it encounters another Ditto, it will move faster than normal to duplicate that opponent exactly.
How Ditto's in-game sprite changed across the main Pokémon games, from its debut in Generation I onward.