Website: http://guesstheactor.alvinthai.net/
This project is a movie trivia application that utilizes graph theory on an imdb dataset to quiz users on guessing an actor common to two movies.
Degree centrality is used to count the number of edges adjacent to the actor node. The degree of the actor node is used to rank how frequently the actor appears among movies in the imdb dataset, and the difficulty setting of the game filters movie pairs based on the common actor's degree centrality ranking:
DIFFICULTY | ACTOR CENTRALITY RANKING |
---|---|
Hard | Top 1% |
Brutal | Top 5% |
Agony | All |
Additionally, this application incorporates fuzzysearch with MassAutocomplete for Angular.js to assist users in spelling the actor's name correctly.
- Install the anaconda python 2.7 distribution
- Clone this repo
- Run this command in terminal:
python webapp.py
- Go to this address in your web brower:
0.0.0.0:8000
- flask
- networkx
- numpy