From bfed7918e674bd9683f219917c48070b5bb672aa Mon Sep 17 00:00:00 2001 From: Ashish Madhup <119279720+madhupashish@users.noreply.github.com> Date: Thu, 23 May 2024 12:43:42 +0530 Subject: [PATCH] Create info.md --- info.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 info.md diff --git a/info.md b/info.md new file mode 100644 index 0000000..1c39660 --- /dev/null +++ b/info.md @@ -0,0 +1,25 @@ +# GAME FUNCTION INFORMATION + +### Grid Initialization: +A matrix of Box objects is created, each with properties for its sides and color. + +### Drawing the Grid: +draw_grid function renders the grid of boxes with their current state (sides and color). + +### Handling Box Clicks: +get_clicked_box function determines which box was clicked based on mouse position. +increment_side function increments the sides of the box and the adjacent box. + +### Player Class: +Represents a player (human or AI) with properties for player type, color, and difficulty. +make_move method for making a move; human players make moves based on mouse clicks, while AI players can be extended with different strategies. + +### Main Game Loop: +Handles player turns, updates the grid based on moves, and switches to the next player. + + +### Future Enhancements +Implement AI strategies in make_move method. +Add more sides and capturing logic. +Improve player customization and menu interfaces. +Enhance the visual representation and animations.