diff --git a/.gitignore b/.gitignore index 41447d8..15c0e89 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ *.db *.ttf -./out/* \ No newline at end of file +./out/*.png \ No newline at end of file diff --git a/README.md b/README.md index 4ee7783..952e259 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ This framework creates question cards for the game Trivial Pursuit. Just create a questions.txt, think about six categories and start the `trivial_pursuit_creator.py` script. +![Question card front](readme_res/card.png) +*Example cards for a Star Trek Trivial Pursuit* ### Creating question cards A question card consists of 6 questions. A questions has an answer and is assigned to a category defined in the categories.txt file. Each answer could contain a citation, which is always written in brackets (). \ No newline at end of file diff --git a/create_cards.py b/create_cards.py index 4f4a58c..90a1094 100644 --- a/create_cards.py +++ b/create_cards.py @@ -22,7 +22,7 @@ def create_connection(db_file): print(e) -def split_lines(text, line_length): +def split_lines(text, line_length): # TODO also split at "-" """ Split a text in mutliple lines at " " and returns the lines as list :param text: Text to be split @@ -91,8 +91,9 @@ def create_cards(): card_count - 1)) + " Questions have been ignored. (Due to inapplicable categories)" print "No more questions available to fill new card!" # TODO Print size print "Questions with the following id's were skipped: " - for id in used_ids: - print id + used_ids.sort() + for q_id in used_ids: + print q_id return # End scipt - cards have been created if question_row[0] not in used_ids: # if there is a not used question diff --git a/out/back1.png b/out/back1.png deleted file mode 100644 index 39da165..0000000 Binary files a/out/back1.png and /dev/null differ diff --git a/out/back10.png b/out/back10.png deleted file mode 100644 index 786f91a..0000000 Binary files a/out/back10.png and /dev/null differ diff --git a/out/back2.png b/out/back2.png deleted file mode 100644 index 00411fd..0000000 Binary files a/out/back2.png and /dev/null differ diff --git a/out/back3.png b/out/back3.png deleted file mode 100644 index 4657d58..0000000 Binary files a/out/back3.png and /dev/null differ diff --git a/out/back4.png b/out/back4.png deleted file mode 100644 index c168479..0000000 Binary files a/out/back4.png and /dev/null differ diff --git a/out/back5.png b/out/back5.png deleted file mode 100644 index c9a2685..0000000 Binary files a/out/back5.png and /dev/null differ diff --git a/out/back6.png b/out/back6.png deleted file mode 100644 index 8d89811..0000000 Binary files a/out/back6.png and /dev/null differ diff --git a/out/back7.png b/out/back7.png deleted file mode 100644 index 720571a..0000000 Binary files a/out/back7.png and /dev/null differ diff --git a/out/back8.png b/out/back8.png deleted file mode 100644 index 8bd66bc..0000000 Binary files a/out/back8.png and /dev/null differ diff --git a/out/back9.png b/out/back9.png deleted file mode 100644 index 8c97661..0000000 Binary files a/out/back9.png and /dev/null differ diff --git a/out/front1.png b/out/front1.png deleted file mode 100644 index 13a83aa..0000000 Binary files a/out/front1.png and /dev/null differ diff --git a/out/front10.png b/out/front10.png deleted file mode 100644 index 9442c71..0000000 Binary files a/out/front10.png and /dev/null differ diff --git a/out/front2.png b/out/front2.png deleted file mode 100644 index cd5029b..0000000 Binary files a/out/front2.png and /dev/null differ diff --git a/out/front3.png b/out/front3.png deleted file mode 100644 index 794caf9..0000000 Binary files a/out/front3.png and /dev/null differ diff --git a/out/front4.png b/out/front4.png deleted file mode 100644 index ddde648..0000000 Binary files a/out/front4.png and /dev/null differ diff --git a/out/front5.png b/out/front5.png deleted file mode 100644 index 8efefb4..0000000 Binary files a/out/front5.png and /dev/null differ diff --git a/out/front6.png b/out/front6.png deleted file mode 100644 index 8996243..0000000 Binary files a/out/front6.png and /dev/null differ diff --git a/out/front7.png b/out/front7.png deleted file mode 100644 index 6011057..0000000 Binary files a/out/front7.png and /dev/null differ diff --git a/out/front8.png b/out/front8.png deleted file mode 100644 index 304d8dc..0000000 Binary files a/out/front8.png and /dev/null differ diff --git a/out/front9.png b/out/front9.png deleted file mode 100644 index 721f094..0000000 Binary files a/out/front9.png and /dev/null differ diff --git a/prints/print1.png b/prints/print1.png deleted file mode 100644 index de60a3c..0000000 Binary files a/prints/print1.png and /dev/null differ diff --git a/prints/print2.png b/prints/print2.png deleted file mode 100644 index 7eeb92e..0000000 Binary files a/prints/print2.png and /dev/null differ diff --git a/prints/print3.png b/prints/print3.png deleted file mode 100644 index 3572902..0000000 Binary files a/prints/print3.png and /dev/null differ diff --git a/readme_res/card.png b/readme_res/card.png new file mode 100644 index 0000000..6676fb5 Binary files /dev/null and b/readme_res/card.png differ