Drag the ATK icon for the Type of the Attacker. Drag the DEF icons for the Type or Types of the Target. All three start in the upper left corner. Leave them there for single type targets. Click the DAMAGE ## Rectangle to change how much damage to do. Default will always be 1. Hit space for a random type matchup. Duplicate types are only counted once. And for EXTRA illegal nonsense, press the MORE! button for MORE TYPES on your target. Up to the full 18 allowed! This is very basic as you can see. Nothing complicated about it just math
credit to Pokemon, Gamefreak, Nintendo, etc.