Now you can finally play chess in the terminal!
This projects seeks to investiagte the wonders of chess programming.
You can either play locally against a friend or against the computer in 5 different difficulties. Inspired from this article.
Machine takes random choice each time from all possible moves
Machine takes random choice based on the value of the piece. Improvement being it takes a piece if it can.
Machine uses search tree with Minimax. A recursive search with a given depth finds the best possible move.
Machine uses alpha-beta pruning to disregard some branches of the tree and search with a greater depth, while using the same resources. Making minimax algo faster
Machine adds the factor of piece placement. Implemented using piece square tables.
GUI depends on the multimedia library SFML. Which must be linked accordingly. I recommend configuring "CMakeLists.txt".
make && ./chess
Compile using g++ -o chess main.cpp + link to SFML and then run it with ./chess.
Changes to build is configured in CMakeLists.txt. To apply changes do cmake ./build