Scattered through this site are discussions of how to build magic squares of various dimensions and orders. For the order-2^{p} figures, these focused on the alphanumeric base line types. There is some discussion of the relationship between features and base lines in Order-2^{p} Squares and also a description of how to construct them. Below is an interactive demonstration of the construction of order-8 pan-magic squares with selected features.

binary | symbol |
---|---|

01010101 | A_{0} |

00110011 | B_{0} |

01100110 | B_{1} |

00001111 | C_{0} |

00011110 | C_{1} |

00101101 | C_{2} |

00111100 | C_{3} |

01001011 | C_{4} |

01011010 | C_{5} |

01101001 | C_{6} |

01111000 | C_{7} |

Only the 11 base lines in the **Order-8 Base Lines** table at right will be used for the construction. In the discussion, I will use the shorthand symbolic representation, but the binary base line will be entered into the figures.

Features are expressed in order-8 base squares made with the following base lines.

- Base squares with an A
_{0}base line are {^{2}compact_{2}}. Base squares with a B type base line are {^{2}compact_{3}}. Base squares with a C type base line are {^{2}compact_{5}}. - Base squares with a C type base line are complete.
- The combinations of A
_{0}with B_{1}, C_{3}, or C_{5}yield an associated base square. The combinations of B_{0}with C_{3}or C_{5}do also. And so do the combinations of B_{1}with C_{0}, or C_{6}. - The combinations of A
_{0}with B_{0}, B_{1}, C_{0}, C_{3}, or C_{6}yield a base square with Franklin V bent diagonals. The combinations of B_{0}with C_{0}, C_{5}, or C_{6}do also. - All combinations of different alpha types of base lines, except the B
_{1}base line, yield base squares with Franklin W bent diagonals. No base line combination that includes the B_{1}base line has Franklin W bent diagonals. - All combinations of different B type base lines with C type base lines yield base squares with {zigzag
_{2}} lines. No base line combination that includes the A_{0}base line has {zigzag_{2}} lines. - The combinations of A
_{0}with B_{0}, B_{1}, C_{3}, or C_{6}yield a base square with inlaid order-4 squares in its quadrants. The combinations of B_{0}or B_{1}with C_{5}do also.

Six sets of base lines are needed to construct the six base squares required to build an order-8 magic square. A pair of base lines can be used twice because the A and B pair can be used as the row and column base lines and also as the column and row base lines. Therefore, even if there are only three pairs of base squares that have all the desired features, a pan-magic square with those features can often be built. An example construction is shown below. You can follow the process using the features shown in the example or be adventurous and pick your own set to build a magic square. No guarantees.

The above process can be repeated with a new set of features based on the feature/base line relationship. The process can also be applied to larger squares, cubes or hypercubes.