finding next best move for using python and opencv
How to use this app
- Clone this repository
- Create virtual environment
- Install all dependency from requirements.txt
- Download stockfish engine from here
- Adjust stockfish path in master_window.py (inside get_best_move function)
- Run main.py
Make sure, while taking screenshot, the chessboard is on the screen
Below is an example on how to take the screenshot
TODO:
- Construct FEN String from image
- Puzzle solver work for white
- Puzzle solver work for black
- Create simple GUI for user setting / main menu
- Move all logic to GUI
- Take screenshot from GUI
- Get best move from GUI
- Dynamic update condition via GUI
- Solve puzzle without restart application
Feel free to contribute