sethupavan12 / MagicSquareGame

A Magic Square game that could generate Magic Squares of size n*n when given as an input. The game can also give player a randomly generated square so that the player can make use of his extremely powerful computational organ(Brain) to convert the given square into a Magic Square.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MagicSquareGame

A Magic Square game that could generate Magic Squares of size n*n when give n as an input. The game can also give player a randomly generated Square so that the player can make use of his extremely powerful computational organ(Brain) to convert the given square into a Magic Square.

What is a Magic Sqaure?

Magic Squares are square grids with a special arrangement of numbers in them. These numbers are special because every row, column and diagonal adds up to the same number.

Magic Square

Why is it called "Magic" Sqaure though?

lo-shu

(Friendly History Alert) So the numbers in the Magic Square are special, but why are they called magic? It seems that from ancient times they were connected with the supernatural and magical world. The earliest record of magic squares is from China in about 2200 BC. and is called "Lo-Shu". There's a legend that says that the Emperor Yu saw this magic square on the back of a divine tortoise in the Yellow River.

The black knots show even numbers and the white knots show odd numbers. Look closely and you'll see that this ancient magic square is the same as our example above. Magic squares were first mentioned in the Western world in the work of Theon of Smyrna. They were also used by Arab astrologers in the 9th century to help work out horoscopes. The work of the Greek mathematician Moschopoulos in 1300 A.D. help to spread knowledge about magic squares. So here we are now, more than 700 years later, and teachers are using them in class for problem solving and practising addition.

Show some love by Starring repos

About

A Magic Square game that could generate Magic Squares of size n*n when given as an input. The game can also give player a randomly generated square so that the player can make use of his extremely powerful computational organ(Brain) to convert the given square into a Magic Square.


Languages

Language:Java 100.0%