(Python) Solve randomly generated multilingual crosswords
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
static
staticb/db
templates
.gitignore
LICENSE
README.md
app.py
browsewordnet.py
crossword.py
flaskapp.cfg
flaskapp.py
setup.py

README.md

Description

Allows players to solve multilingual crosswords that are randomly generated with WordNet.

Credits

Link

Try it out here

Instructions

  1. Download wn-multi.db and wnall.db, then copy them over to replace the empty placeholder files with the same name in staticb/db
  2. Download wn-ocal.zip, then place it in the staticb folder
  3. Ensure OCAL_IS_ZIPPED is set to True in flaskapp.cfg, or you can set it to False and unzip wn-ocal.zip in place (wn-ocal folder as subfolder of staticb)

To run locally

Run with Flask's built-in dev server by running python flaskapp.py at folder root

To deploy to OpenShift

Upload big files in staticb to OpenShift Online v3

web console

  • create an ebs persistent volume with RWO access mode under storage
  • link to it with Add Storage under your deployment configuration and mount it to /data
  • set your OPENSHIFT_DATA_DIR environment variable as /data/staticb)

command prompt / terminal

  • login to the openshift cli
  • cd to your local repo folder
  • oc rsync staticb <deployment pod name>:/data