The math behind Knights and Magick