Back to index

python3.2  3.2.2
Classes | Functions | Variables
queens Namespace Reference

Classes

class  Queens

Functions

def main

Variables

int N = 8

Function Documentation

def queens.main ( void  )

Definition at line 70 of file queens.py.

00070 
00071 def main():
00072     import sys
00073     silent = 0
00074     n = N
00075     if sys.argv[1:2] == ['-n']:
00076         silent = 1
00077         del sys.argv[1]
00078     if sys.argv[1:]:
00079         n = int(sys.argv[1])
00080     q = Queens(n)
00081     q.silent = silent
00082     q.solve()
00083     print("Found", q.nfound, "solutions.")


Variable Documentation

Definition at line 12 of file queens.py.