Searches random positions until a solution is found containing 16 pieces that don’t threaten each other.
This works on MacOS and Windows as long as python is installed. You can find Python [here](http://python.org/download/).
With Python installed, `cd` into the directory containing this distribution’s `peace.py`.
Then enter:
./peace.py
The heart of peace.py is a representation of chess board and pieces.
The Board keeps an array of 64 (at first) empty fields. Supplying a board’s `place` function with a Piece-derived instance, and an integer position between [0, 64[ ensures that this move doesn’t
- place the piece on a field already occupied by another piece, and
- place the piece where it would threaten another piece, or be threatened by it.
If those conditions are met, the piece is placed on the specified position, otherwise an exception is thrown.
Each piece is logically derived from Piece and defines it’s own .name, and a `move` function that, given a position, returns a list of theoretical threatened positions, whereas the `threatened` function defined in Piece provides some otherwise repetetive sanity checking.