How trantrien1/lichess-workspace works
This workspace combines the Lichess chess platform with three documented additions: live win-probability estimates, Vietnamese spoken commentary, and daily practice goals. The main user workflow runs through Lila’s web interface and domain modules, with optional Python services supplying engine analysis and commentary; daily goals use Lila’s existing completion events. The repository also includes the chessboard UI, chess rules library, WebSocket server, and Fishnet analysis workers. Edges for the added features follow the README; sampled excerpts do not expose all runtime wiring.
Main entry points: ui Web interface · app Web platform · scala WebSocket server · main.py Position evaluator
Components 16
Lila platform
- Web platform
lila/app - Web interface
lila/ui - Chessboard UI
chessground/src - Chess rules
scalachess/core/src/main/scala - WebSocket server
lila-ws/src/main/scala
User features
- Win probability
lila/ui - Position evaluator
services/prediction/app/main.py - Vietnamese commentary
lila/modules/round - Commentary service
services/commentary/app.py - Commentary phrases
services/commentary/phrases.py - Daily practice goals
lila/modules/dailyGoal
Chess engines
- Analysis coordinator
lila-fishnet/app/src/main/scala/Executor.scala - Fishnet worker
fishnet/src/main.rs - Stockfish engine
fishnet/Stockfish/src/engine.cpp
Realtime services
- Realtime clients
lila-ws/src/main/scala/Controller.scala
Other components
- Player
Connections 16
- Player → Web platform: uses
- Web platform → Web interface: serves
- Web interface → Chessboard UI: renders board
- Web interface → Win probability: shows estimates
- Win probability → Position evaluator: requests evaluation
- Web interface → Vietnamese commentary: offers commentary
- Vietnamese commentary → Commentary service: sends game state
- Commentary service → Commentary phrases: uses phrases
services/commentary/app.py - Player → Daily practice goals: sets goals
- Daily practice goals → Web interface: shows progress
- Web platform → WebSocket server: uses realtime
lila/app/controllers/LilaController.scala - WebSocket server → Realtime clients: routes sockets
lila-ws/src/main/scala/Controller.scala - Analysis coordinator → Fishnet worker: dispatches work
lila-fishnet/app/src/main/scala/Executor.scala - Fishnet worker → Stockfish engine: runs engine
- Web platform → Chess rules: uses chess rules
- Position evaluator → Stockfish engine: evaluates positions