Add C++ Engine Architecture documentation with command protocol and AI flow - #1
Merged
Merged
Conversation
Added detailed documentation explaining the C++ chess engine architecture, including Django-C++ communication, command protocol (MOVES, BESTMOVE, STATUS, PROMOTE), and AI logic using minimax with alpha-beta pruning.
Updated README to include a documentation section with a link to the C++ engine architecture guide for easier access by contributors.
Author
|
Hi @EDWARD-012, I’ve added the C++ engine architecture documentation along with a README link for easier access. I also included command examples and detailed flow explanations to make it more helpful for new contributors. Please let me know if any changes or simplifications are needed. Happy to update! Thanks! |
Owner
|
merging this for now but please don't open pr without getting assigned |
Author
|
Thank you for merging! Apologies for not getting assigned before opening the PR. I’ll make sure to follow the proper process and get assigned before working on issues next time. Thanks again for the guidance! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 Description
This PR adds a comprehensive documentation of the C++ chess engine architecture used in Checkora.
✅ What’s included
Django ↔ C++ communication using subprocess (stdin/stdout)
Command protocol explanation:
MOVESBESTMOVESTATUSPROMOTEInternal flow of command processing in the C++ engine
Explanation of AI logic (Minimax + Alpha-Beta pruning)
End-to-end request flow from frontend to engine and back
🎯 Why this is useful
This documentation helps new contributors understand:
It reduces onboarding time and makes the system easier to extend and debug.
Example Command
BESTMOVE rnbqkbnrpppppppp........PPPPPPPPRNBQKBNR KQkq white 4