For every territory, count the number of connecting terrain squares and multiply that number by the total number of crowns found in that territory.
Territories without crowns do not score points.
Points are not earned for discarded dominoes.
It is possible to have multiple territories with the same terrain type in your kingdom, but if they do not connect they are scored separately.
Add all those points up to create a final score. The player with the highest score wins.