testsAndMisc/C/opening_learner
Krzysztof kuhy Rudnicki 3ebb97b283 chore: optimize pre-commit, remove tracked binaries, fix lint issues
- Move slow hooks (mypy, pylint, bandit, pytest, prettier) to pre-push stage
- Remove redundant autoflake (ruff covers F401/F841)
- Fix shellcheck OOM by batching files with xargs -n 40
- Remove tracked .o, .wav, .pyc binaries from git
- Move pomodoro wav files to ../testsAndMisc_binaries/ with symlinks
- Add *.o, *.so, *.a to .gitignore
- Refactor hltb._pick_best_hltb_entry to fix C901/PLR0911/SIM102
- Fix SC2034 warnings in gif_to_square.sh and upgrade.sh
- Add disk_cleanup_check.sh script
- Various test and code improvements across screen_locker,
  steam_backlog_enforcer, word_frequency, moviepy_showcase
2026-04-10 18:48:37 +02:00
..
check_build.sh wip: opening learner 2025-09-08 16:58:17 +02:00
chess.c fix: some linting issues 2025-11-01 20:11:45 +01:00
chess.h fix: some linting issues 2025-11-01 20:11:45 +01:00
engine.c fix: some linting issues 2025-11-01 20:11:45 +01:00
engine.h fix: some linting issues 2025-11-01 20:11:45 +01:00
gui.c fix: some linting issues 2025-11-01 20:11:45 +01:00
gui.h fix: some linting issues 2025-11-01 20:11:45 +01:00
main.c fix: some linting issues 2025-11-01 20:11:45 +01:00
Makefile wip: opening learner 2025-09-08 16:58:17 +02:00
mistakes.c fix: some linting issues 2025-11-01 20:11:45 +01:00
mistakes.h fix: some linting issues 2025-11-01 20:11:45 +01:00
mistakes.txt feat: champions leauge server 2025-10-03 16:03:53 +02:00
opening_learner feat: added run sh and makefile scripts 2026-02-22 22:00:50 +01:00
README.md fix: correct shebang and executable permissions 2025-11-30 13:42:16 +01:00
run.sh feat: added run sh and makefile scripts 2026-02-22 22:00:50 +01:00

Opening Learner (C + SDL2)

  • Click a piece, then click a destination to move.
  • Thick board outline, board uses non-pure colors.
  • Uses local Stockfish or asmfish via UCI.
  • Logs mistakes to mistakes.txt and lets you revisit them with the m key.

Build and check:

./check_build.sh

Run:

./opening_learner

Tips:

  • ESC clears selection.
  • Press m to cycle to a stored mistake position and practice the best move there.
  • If you play Black, the board flips so Black is at the bottom.

Notes:

  • Rendering avoids TTF dependency; pieces are clear, high-contrast geometric glyphs.