chess O'Chess

  • About: O'Chess is a simple complete chess program written in O'Caml.
  • Features:
    • Cross-platform
    • Simple (under 700 lines of code, including an Xboard interface)
    • Supports the complete set of chess rules
    • Various styles of time limits
    • The playing algorithm is an iterative deepening alpha-beta search
    • Has a text interface, or
    • Can be used with Xboard
    • Amateur playing strength. If you are looking for a very strong opponent, look elsewhere.
  • License: MIT
  • Download or View Source: ochess.ml caml
  • Compile:
    ocamlopt -o ochess str.cmxa ochess.ml
  • Run: You may want to use Xboard as a graphical front end, unless you prefer the text interface:
    xboard -fcp ochess
  • Send comments to Oleg Trott.

    +----+----+----+----+----+----+----+----+
  8 | *R | *N |    |    | *K |    | *N | *R |
    +----+----+----+----+----+----+----+----+
  7 | *P |    |    |    |    |    | *P |    |
    +----+----+----+----+----+----+----+----+
  6 |    |    | *P |    | *P | *P |    |    |
    +----+----+----+----+----+----+----+----+
  5 |    |    | *Q | *P |  P |    |    | *P |
    +----+----+----+----+----+----+----+----+
  4 |    | *P |    |    |    |  P | *B |    |
    +----+----+----+----+----+----+----+----+
  3 |    |    |    |    |    |  N |    |    |
    +----+----+----+----+----+----+----+----+
  2 |  P |  P |  P |    |  B |    |  P |  P |
    +----+----+----+----+----+----+----+----+
  1 |  R |    |  B |  Q |    |  R |  K |    |
    +----+----+----+----+----+----+----+----+
 
       a    b    c    d    e    f    g    h
 
  White's turn to move