Skip to content

Instantly share code, notes, and snippets.

View infinitequeens.py
#!/usr/bin/env python
# Infinite queens
# Prints the lex-minimal infinite nonattacking queen placement
# in the first quadrant - amazingly, they form two lines with slopes
# phi and 1/phi
import sys
N = int(sys.argv[1])
You can’t perform that action at this time.