Chess Playing Bot
Detecting Green coloured squares using Blobs
Detecting white coloured squares Using these two images, centroids of each square are computed and stored
Detecting which positions are occupied by black pieces
Detecting which positions are occupied by black pieces after making a move
1 Subtracting the two configurations gives us the move-> -1 =initial position and 1=final position
Initial configuration of board, printed by program Final configuration of board, printed by program
After Detecting the move of the human, it is sent to the chess playing algorithm which then calculates a move and prints it as its output User’s move is written in a file from where the algorithm reads it and Outputs its move in a different file from where our algorithm reads and passes it to the bot to execute This move is then executed by the bot Calculating The Move
ALGORITHM Executing the move using the Robot Calculating best possible move using chess playing program Detecting the Move of human
The bot communicates with the PC with the help of an IR tower which we were able to run on windows7 (32 bit) To program the bot using a software called BricxCC which uses a gcc-H8 cross compiler to compile C++ files and transfer them to the bot to execute.
Even though we succeeded in communicating with the RCX module, we were unable to fully control the arm because we weren't able to calculate the angles through which the motors should be rotated to pick up the pieces.
The Camera Our Bot