Take a random walk through the mind of a particular rating band of Lichess player. Compare the results to a stronger player. Gain insights?
Clone the repository:
git clone https://github.com/aadjones/chess_walk.git
cd chess_walkSet up a virtual environment:
python -m venv env
source env/bin/activate # On Windows: env\Scripts\activateInstall dependencies:
pip install -r requirements.txtEdit the parameters in parameters.py to taste.
Then, from the project root, run
python scripts/generate_positions.py --num_walks 3This will take 3 walks to scrape positions. It then builds the file output/positions.csv.
Next, to visualize the results, from the project root, run
streamlit run ui/streamlit_app.pyThis will build a data visualization based on the data scraped from your generate_positions.py script.
To run tests, from the project root, run
pytestMIT