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_hexagon2.mod | AMPL | |
magic_hexagon.mod | AMPL | |
magic_hexagon_bp.pl | B-Prolog | |
magic_hexagon.ecl | ECLiPSe | |
MagicHexagon.essence | Essence | |
magic_hexagon.cpp | Gecode | |
magic_hexagon.mzn | MiniZinc | |
MagicHexagon.py | Numberjack | |
magic_hexagon.py | Numberjack | |
magic_hexagon.pi | Picat | |
magic_hexagon_sicstus.pl | SICStus Prolog |