Connect Four – Blazor Web App 🎮
Автор: bisi toye
Загружено: 2025-11-27
Просмотров: 8
Описание:
A modern, interactive implementation of the classic Connect Four game, built entirely with Blazor Web App, C#, and CSS Grid.
This project features smooth animations, CPU gameplay, score persistence, and a clean UI.
⭐ Features
🎯 Core Gameplay
Classic Connect Four rules
7 columns × 6 rows board
Win detection (horizontal, vertical, diagonal)
Highlighting of winning slots with glow animation
Error handling for invalid moves (full column, game ended)
🤖 Single-Player CPU Mode
Optional Play vs Computer checkbox
Simple AI chooses a valid random column
Short delay to simulate thinking
CPU plays only when it’s Player 2's turn
🎨 Customizable Colors
Board color, Player 1, and Player 2 colors set through component parameters
Colors automatically applied to CSS using variables
📊 Score Tracking
Persistent wins and ties for:
Player 1
Player 2
Ties
Scores stored using localStorage
“Reset Game” and “Reset Scores” buttons
⚡ Smooth UI & Animations
Animated chip dropping
CSS Grid board rendering
Glow animation for winning pieces
Responsive layout for desktop/tablet
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: