This only focuses up until early mid-game, as there are tons of army types your enemy can amass.
If it's a small map, either get one/two (not recommended) swordswrath (as a defensive) or a castle archer, and one or two miners.
A large map should have one swordswrath for defending, and two miners. Place three on gold and one on mana, or two on gold and one on mana.
If they rush you with a basic swordswrath combo, then you should use your swordswrath as a meatshield while you castle archers or miners take out the opposition, one by one. Send any wounded units to garrison.
A Spearton rush is hard to counter. If you see one coming, switch your miners and swordswrath around. Because no one in their right mind will Spearush on a small map, you should attack with your swordswrath once they get close to your miners. Then, when it's about to die, send it to garrison and have your miners hold them off, one my one. If he retreats, don't chase him down. Speartons run faster then all of your units.
An Archidon + Swordswrath combo is the hardest to beat. If you can take the swordswrath without being hit by the Archidon, then do so immediately. If you can't, garrison your units and wait for the Archidon to come close to your statue, then focus all your units on him. If you had a castle archer, they should retreat and possibly garrison their men. Scout ahead with a swordswrath and see if they are, and try to take control of the tower.
Now, assuming you don't have control over the center tower, and you have 4 miners and one swordswrath, make sure your miners are all on gold except for one on mana. Research miner wall, and build two in a row. Make sure you build the first one behind the second one as the opponent will have to manually select the second wall. Then get Miner Hustle, and create miners and Archidons until you have eight Archidons and eleven miners (8 mining, 3 praying). By this point, they should have Tower Spawn I. Your goal is to have a rock hard defense so that your can immediately counterattack after they fail with a siege, so you'll need more castle archers and merics. Make sure you research cure, resilience, and Giant Growth I + II so that once you have enough for a giant, you don't have to research growth. You should also invest in Albowtrosses (five should do), and Fill up the rest of your army with a MIX of Speartons, Swordswrath, and Shadowrath. You should only have 2-3 Shadows, 5 swordswrath, and 6-8 Speartons. Your army should be filled with something like this :
11 Miners (22 pop)
1-4 Swordswrath (1-4 pop)
8 Archidon (16 pop)
2 Merics (6 pop)
1 Magikill (5 pop)
5-8 Spearton (15 - 24 pop)
2-3 Shadowrath (8-12 pop)
3 - 5 Albowtross (12 - 20 pop)
POSSIBLY 1 Giant (15 pop)
Send out your units in droves in waves, like :
Spearton, Shadowrath, Swordswrath, Merics (Line One)
Archidon, Magikill (Line Two)
Giants, Albowtross (Line Three)
Make them go seperately to trick your enemy, but not too seperate so that they cannot reach in time. They should have all their forces pooled up at the center tower (if you're lucky), or some of them back defending the castle (tricky), and maybe hiding units in garrison, which is easy-medium depending on the units. Make sure that you focus on the Merics, Magikill, and Miners (I like to think of them as the 3 "M's"), then the Albowtrosses, Archidons, and Giants, and finally the 3 "S's" (Shadowrath, Swordswrath, Spearton.) Focus on the statue last UNLESS they have masses of Giants, so that you can clutch a sure victory instead of having to rebuild after a failure.