It's really hard to actually write intelligent characters because so many things in storytelling need to be plainly obvious to the audience. The nuances and subtleties of conveying the actual processes of intelligence are irrelevant in most character arcs. Usually, to have an intelligent character, you have a third party comment on their test scores or their reputed brilliance. Bam. The character is a genius.
Damn, look at the size of that