Round towers enabled the defenders to see attackers with increased ease and there were no immediate "weak" corners to be battered. Round towers were built higher than the walls so arrows could be fired down onto the attackers by the defenders. .
Then curtain walls and concentric castles came into the phase of development, the idea of concentric castles is thought to have generated from the Middle East and brought back via Crusaders, and this meant that attackers had to cross the outer and then inner walls. .
The attackers used various weapons in attack; some of these machines include, a siege tower, a trechubet, swords, longbows, a battering ram, and crossbows. .
Some of the castles defensive mechanisms include, machiolations, also known as murder holes, which allowed defenders to drop potentially dangerous items onto their attackers, windows shaped like arrows, i.e. arrow slits, these would be angled so that a defender could fire out easily, but in reverse they couldn't become prime targets for the enemy, the Barbican Gate was a tower situated in the position in front of the gatehouse, this meant that the attackers had to overcome two different drawbridges under the fire of defending soldiers, there would have been a heavy, wooden portcullis with iron spikes, so when attackers tried to gain entrance the portcullis would be release and ambush the intruder.
Castles had to keep changing so that the attackers found there then appropriate, useful techniques to attack castles not very effective, for example siege towers, which were used against the castle's walls to gain entry, with the protection of a wooden surround so that the construction couldn't be pushed over, defenders to overcome this problem invented moats, so therefore they couldn't be pushed up against the walls.
If you put across a statement that you believe a particular castle was used as a place of residence then you can justify this by stating that you saw the contrivances that identifies it as a place of residence, they are as follows: the Great Hall, Chapel, Bedrooms and the Kitchens.