Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
burger4d authored Feb 21, 2023
1 parent 76b81f4 commit bff7143
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ A basic chess engine coded in python, with a GUI that allows you to use other st
The name "Krevetka" means 🍤"shrimp"🦐 in russian. The use of a marine animal is in the spirit of great engines such as Stockfish, Rybka.

# About the "image recognition":
The software takes a screenshot, and will search pixel by pixel the colors of the chessboard. After that, the program will know where is the chessboard on the screen(make sure it is fully visible), and will start to play. The program will see for the two squares with a modified color(that means a piece was moved) and will deduce what was the las move. This also means that you can change the pieces if you want, the size of the chessboard, but not the colors.
The software takes a screenshot, and will search pixel by pixel the colors of the chessboard. After that, the program will know where is the chessboard on the screen(make sure it is fully visible), and will start to play. The program will see for the two squares with a modified color(that means a piece was moved) and will deduce what was the las move. This also means that you can change the pieces if you want, the size of the chessboard, but not the colors (and do not move the chessboard during the game).

For the moment it supports the websites lichess, chess.com, chessfriends and chess24.

# The algorithm:
The minimax algorithm is an algorithm that will explore all the positions with a given depth. It uses a recursive function that will evaluate each position and will find the best one.
Expand Down

0 comments on commit bff7143

Please sign in to comment.