Generate Aztec triangle of size n automatically´╝č

In the paper titled "Perfect Matchings of Cellular Graphs" by Mihai Ciucu, the Aztec triangle of size n (n= 1, 2, 3, 4, 5, ...) is equivalent to a triangular grid of n1 squares (n1 = 1, 4, 9, 16, 25, ...) .

See the following example:

Is there a automatical way to generate such patterns?

Also are there some general method to generate Aztec diamond of order n (not just triangle)?

Thank you very much!