Skip to content

Commit

Permalink
Repository Cleanup, Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vonunwerth committed Jul 21, 2020
1 parent ee26f87 commit a9bc3f2
Show file tree
Hide file tree
Showing 27 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
*.db
*.ttf
./out/*
./out/*.png
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ().
7 changes: 4 additions & 3 deletions create_cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down
Binary file removed out/back1.png
Binary file not shown.
Binary file removed out/back10.png
Binary file not shown.
Binary file removed out/back2.png
Binary file not shown.
Binary file removed out/back3.png
Binary file not shown.
Binary file removed out/back4.png
Binary file not shown.
Binary file removed out/back5.png
Binary file not shown.
Binary file removed out/back6.png
Binary file not shown.
Binary file removed out/back7.png
Binary file not shown.
Binary file removed out/back8.png
Binary file not shown.
Binary file removed out/back9.png
Binary file not shown.
Binary file removed out/front1.png
Binary file not shown.
Binary file removed out/front10.png
Binary file not shown.
Binary file removed out/front2.png
Binary file not shown.
Binary file removed out/front3.png
Binary file not shown.
Binary file removed out/front4.png
Binary file not shown.
Binary file removed out/front5.png
Binary file not shown.
Binary file removed out/front6.png
Binary file not shown.
Binary file removed out/front7.png
Binary file not shown.
Binary file removed out/front8.png
Binary file not shown.
Binary file removed out/front9.png
Binary file not shown.
Binary file removed prints/print1.png
Binary file not shown.
Binary file removed prints/print2.png
Binary file not shown.
Binary file removed prints/print3.png
Binary file not shown.
Binary file added readme_res/card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a9bc3f2

Please sign in to comment.