Skip to content

davisliu2006/Chess_Engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chess_Engine

This project is an attempt at creating a chess AI algorithm from scratch in C++.

It uses a minimax algorithm to compute optimal chess moves by maximizing an evaluation function up to a certain depth over possible game states. The engine also supports multithreading to evaluate moves concurrently and speed up execution time in multi-core processors.

Headers

#include "chess/chess.hpp" // include the main library

Compile Linking

<clang++/g++> <files-to-compile.cpp> chess/*.cpp -std=c++17 -O2 -o <output-path>

Concurrency

Use ChessBoard::get_best_move_concurrent instead of ChessBoard::get_best_move to enable concurrency.

About

Experimental Chess Engine in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages