Package magicsquare
is a Go library and command line
utility, to generate magic
squares.
A working Go installation is required to build magicsquare
.
# We use the path 'magicsquare/magicsquare' to install the command line utility.
$ go get github.com/jmcvetta/magicsquare/magicsquare
$ magicsquare 7
20 12 4 45 37 29 28
11 3 44 36 35 27 19
2 43 42 34 26 18 10
49 41 33 25 17 9 1
40 32 24 16 8 7 48
31 23 15 14 6 47 39
22 21 13 5 46 38 30
See GoDoc for automatically generated API documentation.
This is Free Software, released under the terms of the GPL v3.