When the opponent (a human player) takes their turn, opening the Capitol (town hall) allows you to view their approximate resources.
For example, let's say we can't build a fourth guild. We skip our turn, open the Capitol, and if the fourth guild can be built, it means the opponent has all 8 resources and definitely has 1000 gold. I hope I explained it clearly.