GithubHelp home page GithubHelp logo

wazzabeee / chess_ai Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 10.69 MB

Java chess AI using Principal Variation Splitting, Piece Square Tables, Opening Book and Tapered Evaluation.

Java 100.00%
chess chess-ai minimax-alpha-beta-pruning opening-book pvs transposition-table principal-variation-splitting tapered-evaluation piece-square-tables quiescence-search

chess_ai's Introduction

Chess Engine : PVS

About

This chess AI was developed by Justin Aubin and myself for an end-of-term project part of 8INF878 : AI course at UQAC. You can find the written report about this project (in French) in the repo.

It uses the UCI protocol. We implemented :

  • principal variation splitting (distributed algorithm)
  • depth limited minimax with fail-soft alpha-beta pruning
  • material evaluation
  • tapered evaluation
  • piece square tables
  • transposition table
  • quiescense search
  • move ordering
  • opening book (20 000 games)

It can deliver a move in less than a second at depth 5 on most computers. If your computer has lot of cores, you may want to try at depth 7 and modify the 1 second time limit in Timer.java.

Thanks to it we won the small tournament organized between the AI of the students of the class.

This has been possible thanks to Chesslib for the chess rules and Carballo for the reading of Polyglot files.

How to use

The repo is a Maven project. Use the IDE of your choice to play with it. You can play against the AI using the console and UCI commands or build a .JAR file and use it on a Graphical User Interface supporting UCI protocol : Arena.

Stats on Chess.com

Games history can be found here.

chess_ai's People

Contributors

justin-aubin avatar wazzabeee avatar

Stargazers

 avatar

Watchers

 avatar  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.