projects
/
curses-crossword.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0f92380
)
deal with multiple answer clues
author
Brett Parker
<iDunno@sommitrealweird.co.uk>
Sun, 19 Jul 2009 13:10:40 +0000
(14:10 +0100)
committer
Brett Parker
<iDunno@sommitrealweird.co.uk>
Sun, 19 Jul 2009 13:10:40 +0000
(14:10 +0100)
curses_crossword.py
patch
|
blob
|
history
diff --git
a/curses_crossword.py
b/curses_crossword.py
index 123c3eefea861820687f6257062b9996bd9f6d0b..75643761cf91cbf06b7b58d538bf1510c2429b35 100755
(executable)
--- a/
curses_crossword.py
+++ b/
curses_crossword.py
@@
-95,14
+95,14
@@
def parsecrossword(crossworddata):
if inacross:
if line != "":
parts = line.split()
- question_number = int(parts[0])
+ question_number = int(parts[0]
.split(",")[0]
)
clue = " ".join(parts[1:])
crossword["across"][int(question_number)] = \
clue.encode(code)
if indown:
if line != "":
parts = line.split()
- question_number = int(parts[0])
+ question_number = int(parts[0]
.split(",")[0]
)
clue = " ".join(parts[1:])
crossword["down"][int(question_number)] = clue.encode(code)
num_cols = len(crossword["grid"][0])