Next thing to learn deeply to build a simulator is % chance to hit.
Actually... don't even need to write this one! Just going to point you here - https://peakd.com/splinterlands/@fatjimmy/calculating-hitmiss-probability-for-melee-and-ranged-attacks-in-splinterlands
Happy battling!