MAS
Deity
Barbarians are relatively harmless, they can't take cities, only undo their production, but they can harm settlers and workers, so make sure they are safe.
Don't pair settlers with defenders, as the AI does, becouse chance is a part of the combat system. If a stroke of bad luck happens and the barb wins, you will lose the unit and the settler. Instead, move a couple of tiles ahead of your settlers, if you lose the fight, you will still have the settler.
Barbs spawn in uncivilized land, some tiles away from any land that a non barb unit/city can see. if you move around your warriors somewhere in the fronteer, you will prevent barbs from spawning there, any barbs that spawn further away are more likely to target those units than your cities/settlers/worker.
Barb camps can be removed, ither with an archer, horseman, elite warrior, or just by planting a city nearby, the city radius will remove the camp (but not the units on top of it)
Just as with the AI, take the fight to them, do not fight them near your own land. Defend actively, not passively.
Also note that the higher the diffeculty level, the more likely it is for goody huts to spawn barbs, so get used to not walking into them, unless you have a couple of units nearby. (civs with the expansionist trait never get barbs from goody huts, so if you play such a civ, you should be safe walking into goody huts)
And indeed, build as few units as possible, don't try to put garrison in every city. Instead, try to predict your enemy moves, and move your units where they need to be at the correct time.
Don't pair settlers with defenders, as the AI does, becouse chance is a part of the combat system. If a stroke of bad luck happens and the barb wins, you will lose the unit and the settler. Instead, move a couple of tiles ahead of your settlers, if you lose the fight, you will still have the settler.
Barbs spawn in uncivilized land, some tiles away from any land that a non barb unit/city can see. if you move around your warriors somewhere in the fronteer, you will prevent barbs from spawning there, any barbs that spawn further away are more likely to target those units than your cities/settlers/worker.
Barb camps can be removed, ither with an archer, horseman, elite warrior, or just by planting a city nearby, the city radius will remove the camp (but not the units on top of it)
Just as with the AI, take the fight to them, do not fight them near your own land. Defend actively, not passively.
Also note that the higher the diffeculty level, the more likely it is for goody huts to spawn barbs, so get used to not walking into them, unless you have a couple of units nearby. (civs with the expansionist trait never get barbs from goody huts, so if you play such a civ, you should be safe walking into goody huts)
And indeed, build as few units as possible, don't try to put garrison in every city. Instead, try to predict your enemy moves, and move your units where they need to be at the correct time.