- Type
- Game / Full-stack
- Built with
- PHP, Laravel 13, Vue 3
- Toolkit
- 8 technologies
- Code
- Public on GitHub ↗
Overview
A fully handwritten chess application that showcases custom architecture and game logic implementation.
This project demonstrates full-stack development with a separation of concerns between a Laravel-powered backend handling all chess rules and bot strategy, and a Vue 3 frontend providing an interactive board interface.
The application allows users to play chess against a locally running bot opponent, with the ability to choose their colour. The backend implements comprehensive chess rule validation (check, checkmate, stalemate, castling, en passant, and pawn promotion), while the frontend provides a responsive click-to-move interface with move history tracking. Currently in Phase 2, the project includes a captured pieces display and a material evaluation bar, with future phases planned for advanced bot strategy improvements.
Key Achievement: All game logic and bot algorithms were written from scratch without relying on AI-generated code, showcasing genuine problem-solving and architectural design skills.
Current Status
Phase 2 Released – Includes captured pieces display and material evaluation bar Phase 1 & 3 – In progress with upcoming enhancements to bot strategy including:
Strategy-aware evaluation incorporating center control, mobility, king safety, and pawn structure
Enhanced bot move selection with deeper lookahead capabilities
What Makes This Project Stand Out
Custom Architecture: Every line of chess logic is handwritten, demonstrating genuine understanding of game mechanics
Full-Stack Implementation: Combines a powerful PHP/Laravel backend with a modern Vue 3 frontend
Iterative Development: Structured in phases, showing roadmap thinking and planned improvements
Clean Separation of Concerns: Clear API contracts between frontend and backend for maintainability
The hard parts
What made it tricky.
Every project has a few problems that decide whether it works in real life. These were the ones here, and how we handled them.
-
01
Chess Rule Implementation
ChallengeImplementing complex chess rules correctly (castling conditions, en passant timing, check detection)
SolutionBuilt robust validation logic on the backend to ensure game state integrity, with comprehensive move validation before execution
-
02
Bot Move Generation
ChallengeCreating an intelligent bot that makes reasonable moves without external libraries
SolutionImplemented material-aware one-ply search algorithm with positional evaluation, with plans for deeper lookahead and multi-factor evaluation in future phases
-
03
Frontend-Backend Communication
ChallengeMaintaining game state synchronization between Vue frontend and Laravel API
SolutionDesigned RESTful API endpoints for game creation, move submission, history retrieval, and game reset
-
04
Game State Persistence
ChallengeProperly tracking game history and allowing resets
SolutionLeveraged Laravel's ORM and migrations for reliable database management
Under the hood
The stack.
- PHP
- Laravel 13
- Vue 3
- Vite
- Blade
- CSS
- TypeScript
- MySQL