Skip to content

alanhdu/quizbowlBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages