# Licensed under the GNU GPL v3
# Cross puzzle creator class
+
import sys
import cPickle
import readline
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")
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")