Commit Graph
3 Commits
Author SHA1 Message Date
chrnx 67cf06bd71 exp: type-by-colour edge types, twelve kernels instead of six
The type-conditional kernel lost 0.14 on pawns and nothing elsewhere, because e_ij carried the
piece type and not its colour: a white pawn and a black pawn share one kernel and their moves
are mirrored. typecol gives each colour its own.
2026-09-02 19:59:14 -05:00
chrnx 4567c2e18b exp: absolute position and own-side rank as attributes
The CPPN sees only r_ij, so the representation is translation-invariant and a chess board has
edges: a knight has 2.96 destinations on the rim against 6.85 in the middle, and 43% of them
sit on the rim. Relative geometry to other pieces cannot recover that on a near-empty board,
and the shape control is handed the square while the organism was not.

own_rank is rank from the piece's own back rank, so a pawn's push, its double-push rank, its
promotion and castling are one law rather than two mirrored ones.
2026-09-02 19:38:10 -05:00
chrnx 9e7f347464 exp: teach the movement rules directly, on generated positions
Games are a bad curriculum for this and both reasons are measured. Coverage: a rook or queen
is blocked in 98-100% of real positions, so the model learned the geometry it saw and scored
worse in open positions than blocked ones. Content: the reachability target left out three
rules entirely -- a pawn on e2 attacks d3 and f3 while its moves are e3 and e4, no overlap at
all; castling and en passant never appeared. The target here is generate_pseudo_legal_moves.

Piece count is sampled uniformly from 2 to 32, so an empty board is as common as a crowded
one. Castling rights and the ep square are handed over as attributes, because they are state
rather than position and without them the same board has two correct answers. Taking them
away is the cleanest memory experiment available, and belongs to the parked GRP line.

Positions are streamed, never stored: 200k dense targets would be 6 GB.
2026-09-02 19:16:49 -05:00