From Chessprogramming wiki
Jump to: navigation, search

Home * Engines * Glaurung

an UCI-compatible open source chess engine developed by Tord Romstad under the GPL 3. Glaurung is the forerunner of Stockfish by Marco Costalba, Joona Kiiski and Tord Romstad. First released in fall 2004, Glaurung is written in C, later versions completely in C++. It is portable and able to run on Windows, Linux, Mac OS X and mobile platforms.

Tournament Play

Chess960 compliant, Glaurung played two Livingston Chess960 Computer World Championships, in 2005 where it became third, and the in 2006. It won two times the International Open Polish Computer Chess Championships, in 2007 [3] and 2008, and further played the ICT 2007, and the CCT8, CCT10, and CCT11 online tournaments.


Board Representation

Glaurung versions prior to 2.0 applied 16x16 Vector Attacks [4] [5], combining the property of the 10x12 board with its surrounding ranks and files, which ensure a knight can not jump off the board, with the property that a square difference uniquely maps a vector in the Chebyshev vector space of a chessboard. With the advent of Magic Bitboards, Glaurung 2 was a complete rewrite [6] utilizing bitboards as primary board representation.


Glaurung is a PVS searcher [7], using advanced selectivity, and was beside Fruit the program which made LMR popular [8] . Since early 2006 Glaurung 1.x supports SMP search.


Glaurung's evaluation is tellingly summarized by Tord's evaluation philosophy, covering orthogonality, continuity, sense of progress and good worst case behavior [9]. Glaurung applies a tapered evaluation to make a smooth transition between the game phases.

Gaurung GUI

In 2007, Tord released an own UCI compliant GUI for Mac OS X, written in Objective-C using the GNUstep [10] implementation of the Cocoa Widget toolkit [11], later ported for the iPhone.

Play Magnus

In February 2014, a modified and tuned version of Glaurung became the chess engine of Play Magnus [12], a chess application for iPhone and iPod Touch by Play Magnus AS, an Oslo, Norway-based company founded by Magnus Carlsen [13], who became World Chess Champion in November 2013.

See also

Forum Posts


2005 ...





2010 ...

2020 ...

Re: PieceList in older versions of Glaurung Chess Engine by Tord Romstad, CCC, June 19, 2021

External Links

Chess Engine



Up one Level