Giter Site home page Giter Site logo

magog's Introduction

Magog Chess Engine

UCI chess engine written from scratch in Golang. Started as a competitor to my previous engine done in Java - Machess. But generally it's just an excuse to learn some Go.

Currently, it plays with modest strength and I expect it to be around 1350-1450 ELO on CCRL blitz list.

Feel free to try it out! Please report any obvious bugs or crashes you may find. :)

Features

Search

  • Alpha-beta search with iterative deepening
  • Quiescence search
  • Move ordering
    • PV-move
    • Captures/promotions according to material difference
    • killer moves

Board representation

  • 0x88 board
  • piece lists (3 per player): king, pawns, other pieces

Evaluation

  • Lazy evaluation between:
    • Tapered variant of Simplified Evaluation Function
    • Tapered variant of Simplified Evaluation Function + mobility

Non-Uci commands

  • perft <depth> - count number of moves possible from current position
  • tperft <depth> - same as perft but at <depth> count only captures and promotions. Useful for testing movegen in quiescence search.
  • tostr - print board representation of current position

Compilation

To build *.exe file run this in repository root:

go build .

To run perft test suite run:

go test .\engine -v

Credits

This engine would not have been possible if it weren't for many people who shared their knowledge:

magog's People

Contributors

macsmol avatar

Watchers

Roelof Berkepeis avatar Protej avatar

magog's Issues

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.