This workspace translates the Java engine at /Users/mathieuacher/SANDBOX/chess-java-cc/ into GNU COBOL while preserving module structure and behavior.
make buildmake runmake smokemake smoke-polyglotscripts/assess_elo.py runs a two-engine match with cutechess-cli, parses PGN results, and reports:
- score, W/D/L
- Elo(A-B)
- confidence interval
- LOS (probability A > B)
Quick self-check:
make elo ELO_GAMES=20 MOVETIME_MS=50Against another engine command:
make elo ENGINE_A="./chess_engine" ENGINE_B="java -jar /path/to/opponent.jar" ENGINE_A_NAME=COBOL ENGINE_B_NAME=OPP ELO_GAMES=200 MOVETIME_MS=100EnginebootstrapUCIcommand loop (uci,isready,ucinewgame,position,go,perft,setoption,stop,quit)board/Bitboardmasks and attack-table initializationboard/Boardcore bitboard + mailbox state modelboard/Boardmake/unmake + undo + null-move make/unmakeboard/Boardrepetition/draw checksboard/FENparsingboard/Zobristdeterministic key tables + incremental key maintenancemove/Moveencode/decode + UCI conversion/parsingmove/MoveGeneratorpseudo/legal move generation (including castling, en passant, promotions)move/MoveGeneratorcapture-only legal generation path for searchmove/MoveListscoring + pick-best ordering path (integrated in current COBOL data structures)move/MagicBitboardsprecomputed magic attack tables + O(1) rook/bishop/queen lookupsmove/SEEstatic exchange evaluation helpermove/AttackTablespawn/knight/king attack precomputesearch/SearchInfoPV/search stat trackingsearch/TranspositionTablestore/probesearch/KillerMoves+search/HistoryTableheuristicssearch/Searchiterative deepening alpha-beta + quiescence core (stack-based translation)search/Searchroot aspiration-window pass with full-window fallbacksearch/SearchPVS-style null-window re-search pathsearch/Searchreduced-depth null-move pruning (R = 3 + depth / 6) with fail-high clampsearch/SearchLMR-style late quiet-move reduction/re-search path (Java log-based reduction formula + killer/history adjustments)eval/EvalConstants+eval/PieceSquareTablestapered MG/EG evaluation tableseval/Evaluationmobility terms (knight/bishop/rook attack-count mobility)eval/PawnStructuredoubled/isolated/passed pawn termseval/PawnStructurepawn hash cache path (Java-style keyed lookup table)eval/KingSafetypawn-shield + open/semi-open king-file termsbook/PolyglotBook.binloading, Polyglot key computation, weighted book probe, and Polyglot->internal move conversion
Detailed mapping and pending classes: /Users/mathieuacher/SANDBOX/chess-revisit-java-toRust-codex/chess-revisit-java-toCOBOL/PORTING_NOTES.md.