A wordle game with absurdle mode powered by flask.
Make sure you have conda/mamba and node/nvm installed, and run:
nvm install && nvm use
npm install && npm run webpack
mamba env create
mamba activate wordle
python webapp.py --path ./path/to/file.txt # In production mode or
python webapp.py --debug --path ./words/default.txt # In debug mode
The application should be running at port 5000.
Package | Version | Channel | Settings | Remarks |
---|---|---|---|---|
python | >=3.12.0 | conda-forge | environment.yml | |
flask | >=3.0 | conda-forge | environment.yml | |
waitress | >=3.0 | conda-forge | environment.yml |
Package | Version | Channel | Settings | Remarks |
---|---|---|---|---|
typescript | >=5.5 | npm | package.json | |
sass | >=1.77 | npm | package.json | |
webpack | >=5.93 | npm | package.json |
mamba env create # For production
mamba env create -f environment.dev.yml # For development
mamba activate wordle
mamba create -n wordle
mamba activate wordle
mamba install -c conda-forge flask cython waitress -y
mamba install -c conda-forge regex -y
# Dev dependencies
mamba install -c conda-forge ipykernel djlint ruff -y
bash node.sh
nvm install
nvm use
npm install
npm run webpack # In production mode or
npm run webpack:watch # In debug mode
ruff check . # Check mode
ruff check . --watch # Watch mode
python webapp.py --path ./path/to/file.txt # In production mode or
python webapp.py --flask --path ./path/to/file.txt # In flask mode or
python webapp.py --debug --path ./path/to/file.txt # In debug mode
-h, --help Show this help message and exit
-f, --flask Run under flask (default: False)
-d, --debug Debug under flask (default: False)
-t, --test Create app only (default: False)
-s, --host HOST Server host (default: None)
-p, --port PORT Server port (default: None)
--path PATH Wordle word list path (Required: True)
--rounds ROUNDS max number of rounds (default: 6)
The log file is located at handler.log