Forza 4 Web Game Single Player is a modern browser-based Connect Four game built entirely with HTML5, CSS3, and JavaScript. Enjoy smooth animations, interactive gameplay, undo/reset features, and a smart AI opponent with three difficulty modes—Easy (for beginners), Medium (a solid challenge) and Hard (for true competition).
No installation is required. Simply serve the files via any HTTP/HTTPS server (e.g., using Apache) and open the index.html
file in your browser.
- Game Objective: Drop your discs into the grid to be the first to form a line of four (horizontally, vertically, or diagonally).
- Player Options:
- Select Color: Choose whether to play first (Red) or second (Yellow).
- Choose AI Difficulty: Pick between Easy, Medium, or Hard—the AI’s search depth adjusts accordingly.
- Set Game Time: (Optional) Adjust the time available per game.
- Gameplay: Click on a column to drop your disc. Enjoy smooth drop animations and interactive feedback.
- Undo/Reset: Use the Undo button to cancel the last move or Reset Game to start over.
- HTML5 – Structure of the web app.
- CSS3 – Styling and responsive design.
- JavaScript – Game logic, animations, and AI.
- Custom Connect Four Engine – Implements game rules and a minimax/alpha‑beta pruning AI.
- Bootstrap 5 – For modern and responsive UI components.
This project is released under the GPLv3 License.
Bocaletto Luca
GitHub • Official Site
Enjoy the game and feel free to report any issues or suggest improvements!