app/engine_legal_moves.h¶
ILegalMoveSource backed by the in-process engine.
The only adapter that links movegen internals, so LedAssist doesn’t have to (PLAN §6). It reads the engine’s global position, which on GameSession’s worker thread is the live position right after a move is applied. bestTargetFrom returns a lightweight heuristic pick for the over-budget lift fallback (prefer a capture, then centrality) — no engine search on that path.
-
namespace kirin
-
class EngineLegalMoveSource : public kirin::ILegalMoveSource¶
- #include <engine_legal_moves.h>
Public Functions
-
virtual std::vector<LegalTarget> legalTargetsFrom(int square) override¶
-
virtual int bestTargetFrom(int square) override¶
-
virtual std::vector<LegalTarget> legalTargetsFrom(int square) override¶
-
class EngineLegalMoveSource : public kirin::ILegalMoveSource¶