turncoat: Elegant UCI chess engine

[ bsd3, chess-engine, library, program ] [ Propose Tags ] [ Report a vulnerability ]
Versions [RSS] 1.0
Dependencies async, base (>=4 && <5), bookhound, classy-prelude, composition, containers, derive-storable, errors, mtl, newtype, QuickCheck, random, split, text, time, turncoat, unbounded-delays, vector [details]
License BSD-3-Clause
Copyright 2023 Alberto Perez
Author Alberto Perez
Maintainer albertoperez1994@gmail.com
Category Chess Engine
Home page https://github.com/albertprz/turncoat#readme
Bug tracker https://github.com/albertprz/turncoat/issues
Source repo head: git clone https://github.com/albertprz/turncoat
Uploaded by albertprz at 2025-01-21T17:47:12Z
Distributions
Executables turncoat
Downloads 13 total (13 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2025-01-21 [all 1 reports]

Readme for turncoat-1.0

[back to package description]

turncoat

A minimalistic bitboard based UCI chess engine written in Haskell with a strong focus on a clear and modular implementation with adequate performance when compared with other open source engines.

It relies heavily on GHC as well as strictness annotations in order to optimize a high level program that leverages laziness in key areas (such as staged move generation and ordering) producing an efficient binary that can compete in a field where lower level languages (C, C++, Rust) are usually employed.

Turncoat has an official account on Lichess: https://lichess.org/@/TurncoatEngine

Characteristics

Move Generation

  • Legal Move Generation
  • Specialized Static Exchanges Move Generator
  • Staged Move Generation (captures & promotions, quiet moves)
  • Negamax
  • Alpha Beta Pruning
  • Principal Variation Search
  • Quiescence Search
  • Iterative Deepening
  • Transposition Table
  • Null Move Pruning
  • Futility Pruning
  • Check Extensions
  • Single move extensions
  • Late Move Reductions

Move Ordering

  • Staged Move Ordering
  • Static Exchange Evaluation
  • Killer Moves
  • Static Evaluation Ordering (for quiet moves)

Evaluation

  • Hand Tuned Evaluation
  • Tapered Evaluation
  • Material
  • Piece Square Tables
  • King Safety
  • Mobility
  • Passed Pawns
  • Pawn King Shield
  • Isolated & Doubled Pawns
  • Knight Outposts
  • Bishop Pair
  • Rooks on Open Files
  • Piece Threats