Giter Club home page Giter Club logo

antonius's Introduction

Antonius

This directory contains the "antonius" chess engine. It is named after the knight, of questionable chess-playing strength, in an Ingmar Bergman movie.

Requirements

  • A Gnu/Linux environment.

  • An installation of Erlang (http://erlang.org). The installed executables (erl, erlc, etc) must be in the path.

  • A C compiler, such as gcc.

  • Optionally: The "xboard" GUI.

  • Optionally: Eclipse with ErlIDE for browsing/editing the source.

Playing a console game

Type

make game-cli

and follow instructions on the screen.

Playing an xboard game

It is assumed that you have installed 'xboard' (http://www.gnu.org/software/xboard/). Type

make game-xboard

A chessboard window should appear, and a console window where some debug output is shown. Play by drag-and-drop.

Running the tests

The provided test suites are expected to pass. Some of the tests check various aspects of correctness and should always succeed. Other tests depend on the evaluation function and may have to be adjusted if the evaluation function is changed.

To run the tests, type

make test-quick
make test-long

Allow several minutes for the tests to complete on a dual-core or better host.

Running the dialyzer

Type

make dialyze

Allow a couple of minutes for the var/dialyze_plt file to be built when this command is run for the first time. A "passed successfully" message should result.

Using Eclipse

Two Eclipse projects are provided: 'antonius' (the Erlang source) and code_nif (functions coded in C).

For the 'antonius' project Eclipse with the Erlide plugin from http://erlide.org is needed. For the 'core_nif' project Eclipse with the C/C++ development tools is needed. An easy way set up both development environments is to download Eclipse CDT from http://eclipse.org and then add the Erlide plugin.

The 'core_nif' project refers to Erlang header files for C. To adapt the .cproject file to the current Erlang environment, type

make eclipse-setup

Feedback

Comments, ideas and improvements are welcome. Contact the author at

                     se
                   .
           bahnhof
         @
   rabbe

antonius's People

Contributors

fowlay avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.