From Chessprogramming wiki
Jump to: navigation, search

Home * Engines * Terra

The Earth seen from Apollo 17 [1]

a Chess Engine Communication Protocol and UCI compatible chess engine by Peter Fendrich, written in C and later versions in C++. Terra already started its life in 1980 for a TI-99 [2], and later for x86 processors to run under Windows 3.1 with an own GUI under the initial name Nimzo, but that name was later "stolen" by a commercial program and in 1998 Nimzo was renamed to Terra [3]. In 2004, the development of Terra was stopped in favor of Peter's new engine Alaric aka TerraPi [4]. Terra played the CCT2, CCT3 and CCT5.


Terra uses bitboards both in generation of moves and in evaluation. In June 1998, rotated bitboards were implemented which gave a huge speedup in generating sliding piece attacks. Terra performs PVS with adaptive null move pruning, move ordering is enhanced by the Killer heuristic with two killers per ply level, and history heuristic, while quiescence search is restricted by SEE. Further, Terra features Book learning and is able to access Nalimov Tablebases [5] .


The program's name Terra, "The Earth", was inspired by Douglas Adams' novel Hitchhikers guide to the galaxy [6].

Selected Games


CCT2, Round 8, Terra - Arasan [7] [8]

[Event "CCT2"]
[Site "Internet Chess Club"]
[Date "2000.11.05"]
[Round "8"]
[White "Terra"]
[Black "Arasan"]
[Result "1/2-1/2"]

1.e4 e6 2.c4 Nc6 3.Nf3 d5 4.exd5 exd5 5.cxd5 Qxd5 6.Nc3 Qh5 7.Nb5 Bd6 8.Nxd6+ cxd6 9.b3 Bg4 
10.Bb2 Bxf3 11.Qxf3 Qxf3 12.gxf3 f6 13.Rg1 g6 14.Be2 O-O-O 15.Rg4 d5 16.Kf1 d4 17.Re4 f5 
18.Re6 Kd7 19.Rxc6 Kxc6 20.Rc1+ Kd5 21.Rc7 b6 22.Rxa7 g5 23.Rg7 Ke5 24.Rb7 h5 25.Rxb6 Ne7 
26.Rb7 Nd5 27.Rf7 Nf4 28.Bc4 Rh6 29.d3 Nd5 30.Bc1 Rg6 31.Bd2 h4 32.Kg1 Ra8 33.a4 Nc3 34.Rd7 
Rc8 35.a5 h3 36.Kh1 Rb8 37.a6 Ra8 38.a7 Rd6 39.Rf7 Rg6 40.Rd7 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
Ke6 52.Nc8+ Kd7 53. Nd6 Rc6 54.Rxc6 Kxc6 55.Nf7 Kd5 56.Ke2 e4 57.Kf2 Kc6 58.h5 gxh5 59.Kg3
Kd7 60.Kf4 Ke7 61.Ng5 h6 62.Kxf5 hxg5 63.Kxg5 Ke6 64.Kxh5 Kf7 65.Kg4 Kg7 66.Kf4 Kf7 67.Kxe4 
Kf6 68.Kd5 Kg7 69.h4 Kh8 70.e4 Kg8 71.e5 Kf8 72.e6 Kg7 73.e7 Kf7 74.Kd6 Ke8 75.h5 Kf7 76.h6 
Kg6 77.e8=Q+ Kxh6 78.Ke5 Kg7 79.Kf5 Kh7 80.Kf6 Kh6 81.Qh8# 1-0

See also

Forum Posts

External Links

The Engine

Terra Downloads and News
About Terra
History of Terra and related things

Terra elsewhere


  1. "The Blue Marble" is a famous photograph of the Earth taken on December 7, 1972 by the crew of the Apollo 17 spacecraft en route to the Moon at a distance of about 29,000 kilometers (18,000 statute miles). It shows Africa, Antarctica, and the Arabian Peninsula, NASA Photo taken by either Harrison Schmitt or Ron Evans. Earth from Wikipedia, The Blue Marble from Wikipedia
  2. About Terra by Peter Fendrich, CCC, January 26, 1999
  3. History of Terra and related things
  4. Alaric - Archive
  5. History of Terra and related things - Technical about the engine
  6. Why the name Terra?
  7. CCT2 Games
  8. A few notes from Arasan's games in CCT2 by Jon Dart, CCC, November 05, 2000
  9. CCT5 games
  10. A manga animation of Daevid Allen's drawings by Japanese team Mood Magic (Koji Morimoto, Haruka Sakota, Akira Watanabe)

Up one Level