-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
38 lines (33 loc) · 1.79 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
How to Run:
1. Edit Database/quizbowl/settings.py and Database/quizbowl/importSettings.py
Change TEMPLATE_DIRS to point to templates/ (use an absolute path)
Change DATABASES NAME to point to database.db (use an absolute path)
2. python bridge.py
4. (Optional) python bot.py
5. Go to localhost:8000/play
Prerequisites:
1. Bridge
2. Django
3. Python Tornado Webserver
4. nltk
Urls:
localhost:8000/play -- Version that needs bridge. Should automatically connect and start a match. The words are displayed through console.log for now.
localhost:8000/question/{questionId} -- displays the question w/ the que
localhost:8000/question/play -- Non-bridge, non-bot version.
File Descriptions:
bots.py -- Contains the automated bots. Only has a base class and a Repeat Bot for now
bridge.py -- Brings up a bridge server to allow django to communicate with the bot and the player
database.db -- Database that django uses
manage.py -- Used for managing the django server. python manage.py -help for more info
move.py -- Scripts to move information from questions.db to database.db
questions.db -- Original database
engine/ -- Handles most of the django stuff
forms.py -- has forms for login and for creating players
models.py -- Stores the models for django,has forms for login and for creating players
models.py -- Stores the models for django,
signals.py -- handles the bridge-django connections
views.py -- Handles what the user sees
quizbowl/ -- Django internal engine stuff
settings.py -- Holds the settings. There's a lot of unnecessary things there that I haven't cleaned up yet
urls.py -- Contains a list of what urls use what view
templates/ -- Templates that the views use