Chenard

an open source chess program by Don Cross written in C++. Its development already started in 1993, and it is maintained and improved until the present. The source code of the didactic program is well structured and documented, is in the [|public domain] with attribution of author's name and web address required in distributed works. A Windows version comes with an own GUI, other versions for Windows and Linux support the Chess Engine Communication Protocol aka WinBoard or XBoard, its own native command line interface, or more recently, [|teletype] chess. || toc =Description= Chenard provides a genetic algorithm framework for evolving move ordering and evaluation heuristics. The board is represented by a 12x12 mailbox with disjoint piece flag encoding. Since Chenard isn't negamaxing, search, evaluation as well as move generation routines are implemented separately for White and Black.
 * Home * Engines * Chenard**
 * [[image:Bundesarchiv_Bild_183-2008-0516-500,_Fernschreibmaschine_mit_Telefonanschluss.jpg link="https://commons.wikimedia.org/wiki/File:Bundesarchiv_Bild_183-2008-0516-500,_Fernschreibmaschine_mit_Telefonanschluss.jpg?uselang=en"]] ||~ || **Chenard**,
 * Early Teletype ||~ ||^ ||

Search
Chenard's search is pure alpha-beta with transpostion table, despite quiescence search and its top layer with checks, without any selectivity in form of extensions, forward pruning and reductions. The root search implements iterative deepening without aspiration windows. The depth parameter, suited to index a ply stack, starts at the root with zero and is incremented through the indirect recursive function calls until the the maximum depth, dubbed level, is reached and quiescence is called.

Evaluation
The evaluation looks sophisticated considering a bunch of features, many part of Chenard's genes. Beside the aggregation of material, imbalance terms and piece-square tables, which decides on an early exit aka lazy evaluation, Chenard looks at immobile and connected pieces, along with various piece specific evaluation features, and further takes pawn structure with focus on passed pawns, king safety, and even tactical motives such as pinned pieces and forks into account. Beside, Chenard has a mop-up evaluation for late endgames like KBNK. 

EGDB
Chenard has its own 4 man depth to mate endgame databases, generator and probing code. The file //endgame.zip// contains KQKR, KQKB, KQKN, KPKN, KPKB.

=Screen Shot=
 * [[image:chenard_screen_shot.jpg link="http://cosinekitty.com/chenard/"]] ||
 * Chenard's Windows GUI ||

=Web Edition= In 2005 Don Cross ported Chenard to Java to learn how to write [|Java applets] which run in a Java-enabled [|web browser]. =Forum Posts=
 * [|Chenard 1.136 with Winboard support available] by Jim Ablett, CCC, April 26, 2008
 * [|Chenard 1.1.40 JA] by Harun Taner, CCC, May 20, 2008
 * [|Chenard] by Gabor Szots, CCC, September 14, 2009

=External Links=

Chess Program

 * [|Chenard - a freeware chess program] by Don Cross
 * [|cosinekitty/chenard · GitHub]
 * [|Chenard Web Edition] by Don Cross
 * [|Chenard] at CCRL 40/4

Misc

 * [|Chenard-Walcker from Wikipedia]
 * [|Louis Chenard from Wikipedia]

=References= =What links here?= include page="Chenard" component="backlinks" limit="20"
 * Up one Level**