Skip to content

Conversation

@MichaelMrt
Copy link
Owner

Major rework

This pull request includes significant changes to the ChessPHP project, focusing on enhancing the user interface, improving game logic, and adding new features such as a bot opponent.

Game Logic Improvements:

  • Added a lot more game rules
  • Refactored the architecture and added a chessboard.php with a class
  • fixed bugs

Bot as an oponnent

  • Added a new bot.php file implementing the Minimax algorithm with alpha-beta pruning for the bot opponent. This includes methods for evaluating the board and determining the best move.

JavaScript Functionality:

  • Introduced a new javascript.js file to handle user interactions on the chessboard, including selecting squares, processing moves, and communicating with the server for move validation and bot moves.
  • This greatly enhances UI and UX by allowing dynamic interactions and further seperating the frontend from the backend

moved post request to logic.php
ajax request waits for answer from logic.php
pawn square glitched because of pawn id
removed pawn id
selected square attribute is set properly now
MichaelMrt and others added 28 commits January 29, 2025 18:53
REWORK: Rebuild the entire project
@MichaelMrt MichaelMrt added this to the Rework project milestone Feb 1, 2025
@MichaelMrt MichaelMrt merged commit f709054 into main Feb 1, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants