Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

67 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPP chess engine

This is a chess engine build in cpp. Movegeneration is based on bitboards and features magic bitboards and setwise pawn operations. All slider moves are generated at initialization then available thru hasing with square and occupancy bitboard. And pawn moves are generated on the fly by bitshfting the set of pawns on a bitboard.

The engine uses minimax with alpha beta pruning to find best move. Some optimizations for this search routine include move ordering by (Principal variation, Caputres LVV_MVT, Killer moves and history heuristic), Principal variation search, Late move reduction, Null move pruning, Transposition table via zobrist hashing and Iterative deepening, Aspiration windows.

The engine runs via the UCI protocol so it is recomended to run thru any uci gui.

Building and running

Project is built using cmake and run by defalut via UCI gui (recomended Arena). To run via my own built chess gui program must be run with arguments:

White Black depth
human/engine human/engine 1-10

Script for building, in the villiamr-game folder run the following:

mkdir build/;cd build/; cmake -DCMAKE_BUILD_TYPE=Release ..;make all 

Exebutable is found in villiamr-game/build/src.

Setting up Arena gui

First load the engine Engines -> load new engine

To play against engine just play a move on the board an the loaded engine should start, to demo engine angainst iself press demo.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages