Originally written as a take-home assignment.
- PHP 8.4
- Composer
To run the application, follow these steps:
- Install dependencies:
composer install
- Run the application:
php app.php
To run the tests, run this command:
./vendor/bin/phpunit testsThis is a simple CLI PHP application that demonstrates basic logic for moving chess pieces on a board. The app includes:
- Board Management: Place and move pieces.
- Piece Movement Validation: Validates if pieces move according to their respective rules (e.g., bishop moves diagonally).
- Testing: Includes PHPUnit tests for the board and pieces, including movement and rules validation.