Jiugongge law
Jiugongge game rules, there are nine numbers from 1 to 9, and there are three squares horizontally and vertically. Think about how to make the sum of three numbers on two diagonal lines of each row and column equal to 15.

The first is to randomly place eight small wooden blocks from 1 to 8 on a 3×3 grid, and the numbers around each space can be moved into the space. Players should rearrange the small pieces of wood in the order of 12345678, and the one with the least number of pieces will win.

The second game, such as Jiugongge arithmetic game, advances the arrangement of eight numbers in a wooden lattice, with three squares in both directions, so that the sum of three numbers on two diagonal lines of each row and column is equal to 15.

Extended data

The first line: it consists of the first palace, the second palace and the third palace.

The second largest line: it consists of the fourth, fifth and sixth houses.

The third line: it consists of the seventh, eighth and ninth palaces.

The first column consists of the first palace, the fourth palace and the seventh palace.

The second column consists of the second, fifth and eighth houses.

The third column consists of the third, sixth and ninth houses.