UNPKG

kokopu

Version:

A JavaScript/TypeScript library implementing the chess game rules and providing tools to read/write the standard chess file formats.

14 lines (13 loc) 227 B
Event: Game with annotations 1 1.e4 1...e5 2.Bc4 2...Nc6 3.Qh5 cal={Gc4f7,Gh5f7} csl={Rf7} Threatening checkmate 3...g6 ! cal={Rg6h5} Avoid the checkmate | +- Other defenses are possible, for instance: | 3...Nf6 | 4.Qf3 *