Connect4 Showcase
The Pixel Sage
0:00 / 0:00
Connect4 Showcase
8 просмотров · 13 дней назад
The Pixel Sage
24 подписчика
8 просмотров · 13 дней назад
Completed Connect 4 game, course introduction to Artificial Intelligence
Game link:
https://play.unity.com/api/v1/games/g...
GitHub Repo:
https://github.com/Shihab-cr/Connect4...
Used Minimax and AlphaBetaPruning algorithms to calculate best moves across the board
Used Strategy pattern to switch between algorithms based on chosen game mode
Used observer pattern to update board state upon chip spawning and upon finding a winning chip placement
Used the protective proxy pattern to protect the boardStateManager from being constantly called by subjects while chips are staying within the cell colliders
Credits to:
@solvern
https://sketchfab.com/Solvern,
owner of the Connect 4 board asset.
and to
@SohilaEbrahim3
https://github.com/SohilaEbrahim3
for programming the AI algorithms and handling the heuristic function