#import "game.typ": render, apply-moves, parse-moves // Usage: // #show: chess.with() // g4 d5 Bg5 Bxg4 c4 c6 cxd5 cxd5 Qb3 // #let chess(body) = { set page(height: auto, width: auto, margin: (top: 0.5in, bottom: 0.5in, rest: 0.5in)) let moves = parse-moves(body) let states = apply-moves(moves) render(states.last()) }