A chess language model built from scratch as a course on generative and agentic AI: every model, adapter and dataset, in course order.