X-Git-Url: https://harishankar.org/repos/?p=getaclue.git;a=blobdiff_plain;f=crosswordpuzzlecreator.py;h=334895ddd459d2d548d66f5227bae8bba22c4cf0;hp=a0676c799b17a438d43b0628a7135c5bf01d11a2;hb=d1205cd99dbf7d06180235c19dda876c3cd53563;hpb=9e110bd4d38e7bd3d78f1cda65244e6b036f32dd diff --git a/crosswordpuzzlecreator.py b/crosswordpuzzlecreator.py index a0676c7..334895d 100644 --- a/crosswordpuzzlecreator.py +++ b/crosswordpuzzlecreator.py @@ -3,6 +3,7 @@ # Licensed under the GNU GPL v3 # Cross puzzle creator class + import sys import cPickle import readline @@ -147,7 +148,8 @@ class CrosswordPuzzleCreator: sys.stdout.write (self.BLUE + "Across word at position: " + aword + "\n" + self.ENDCOL) clue = raw_input (self.BRICKRED + "Clue for across word: " + self.ENDCOL) self.puzzle.data[arow][acol].clue_across = clue - sys.stdout.write (self.BLUE + "Set the clue: \n" + self.puzzle.data[arow][acol].clue_across) + sys.stdout.write (self.BLUE + "Set the clue: \n" + + self.puzzle.data[arow][acol].clue_across + "\n") except crosswordpuzzle.NoWordException: sys.stderr.write ("No across word found at that position\n") @@ -157,7 +159,8 @@ class CrosswordPuzzleCreator: sys.stdout.write (self.BLUE + "Down word at position: " + dword + "\n" + self.ENDCOL) clue = raw_input (self.BRICKRED + "Clue for down word: " + self.ENDCOL) self.puzzle.data[drow][dcol].clue_down = clue - sys.stdout.write (self.BLUE + "Set the clue: \n" + self.puzzle.data[drow][dcol].clue_down) + sys.stdout.write (self.BLUE + "Set the clue: \n" + + self.puzzle.data[drow][dcol].clue_down + "\n") except crosswordpuzzle.NoWordException: sys.stderr.write ("No down word found at that position\n")