Various code is available online for finding magic hexagons:
some ECLIPSE code
some LPA code
some C code
some other C code due to Phil J. Taylor.
some Koalog code
File | Type | Notes |
---|---|---|
magic_hexagon.mod | AMPL | |
magic_hexagon2.mod | AMPL | |
magic_hexagon_bp.pl | B-Prolog | |
magic_hexagon.ecl | ECLiPSe CLP | |
magic_hexagon.cpp | Gecode | |
magic_hexagon.mzn | MiniZinc | |
magic_hexagon.pi | Picat | |
magic_hexagon.py | py | Numberjack |
magic_hexagon_sicstus.pl | SICStus Prolog |