@@ -0,0 +1,631 @@
+#!/usr/bin/python %0A%22%22%22Unit test for chess.py - preventable checkmate%22%22%22%0Afrom chess import *%0A%0Agame = Game() %0A%0A# set up game to required position...%0Agame.take_turn('white', 'e7e5')%0Agame.take_turn('black', 'f2f4')%0Agame.take_turn('white', 'e5f4')%0Agame.take_turn('black', 'a2a4')%0A%0Aprint('%5CnControl going back to user.')%0Aprint('hint: ready for check if white queen does %22d8h4%22')%0Aprint('hint: an be stopped if black does g2g3%5Cn')%0A%0A# hand back manual control...%0Awhile not game.checkmate:%0A    game.take_turn('white')%0A    game.take_turn('black')%0A%0A# pause         %0Aif PAUSE_AT_END:%0A    foo = raw_input('%5CnPress enter to quit')%0A    print(foo)%0A

Create test_checkmate1.py