mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-06 17:43:12 +02:00
FBT001/FBT002 fixes: - Make boolean params keyword-only with *, syntax in: - stockfish_analysis/analyze_chess_game.py: pov_white - lichess_bot/main.py: decline_correspondence - screen_locker/screen_lock.py: demo_mode - Update call sites to use keyword arguments ARG001/ARG002 fixes: - Prefix unused params with underscore: - extractLinks/main.py: tag -> _tag - lichess_bot/lichess_api.py: game_id -> _game_id - lichess_bot/tests/conftest.py: config -> _config FBT003 per-file ignores (external API calls): - PYTHON/keyboardCoop/main.py: pygame.font.render - PYTHON/screen_locker/screen_lock.py: tkinter API - poker-modifier-app/poker_modifier_app.py: tkinter API |
||
|---|---|---|
| .. | ||
| analyze_chess_game.py | ||
| README.md | ||
| requirements.txt | ||
| run.sh | ||
Chess move analysis with Stockfish
This utility parses a PGN (or a log that contains a PGN section) and evaluates each move with a local Stockfish engine, printing a per-move quality rating.
Install
Install python dependencies:
pip install -r PYTHON/stockfish_analysis/requirements.txt
Ensure Stockfish is installed and available in your PATH (or provide the path via --engine). On Linux, you can typically install with your package manager or download a binary.
Run
From the repo root:
python3 PYTHON/analyze_chess_game.py lichess_bot_game_8GSdY3Ci.log
Options:
--engine /path/to/stockfishto specify a custom engine path--time 0.2seconds per evaluation (default)--depth 12fixed depth instead of time
The script prints a table with, for each ply:
- side to move, SAN move, eval before/after from mover's POV, delta, classification, and Stockfish best move suggestion.