AI SummaryCopilot instructions for building a real-time multiplayer Battleships game using ASP.NET Core and SignalR, providing architecture guidelines and scope boundaries to keep AI-assisted development aligned with project goals.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "Battleships — Copilot Instructions" prompt rules to my project. Repository: https://github.com/Dejmenek/Battleships Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Classic Battleships reimagined as an online multiplayer game with real-time battles built with C#, ASP.NET and SignalR
Project Overview
Battleships is a web-based, real-time multiplayer implementation of the classic Battleship game. This repository represents the MVP version of the project, focused on correct gameplay, real-time synchronization, and a clean backend architecture. The backend is authoritative over all game state and rules. Real-time communication is handled via SignalR. These instructions guide AI-assisted code generation to stay aligned with the project’s architecture, scope, and technical decisions. ---
MVP Scope & Boundaries
• Implement classic Battleship rules only (10×10 board, standard ship set). • Support 2-player games only. • Focus on correctness, rule enforcement, and synchronization. • Avoid feature expansion beyond the defined MVP. • Do not introduce scalability optimizations beyond what is required for correctness. • Frontend behavior should not be assumed or hardcoded into backend logic. ---
Tech Stack (Authoritative)
• Backend: ASP.NET (Minimal APIs) • Real-time: SignalR • Persistence: Entity Framework Core + SQL Server • Validation: FluentValidation • Architecture: Clean Architecture + CQRS (without MediatR) • Frontend: Razor Pages (context only) • Containerization: Docker • Hosting: Azure Do not introduce alternative frameworks, libraries, or architectural patterns unless explicitly added to the project. ---
Solution & Project Structure
`text docs/ adr/ diagram/ src/ Battleships.API Battleships.Web Battleships.Application Battleships.Infrastructure Battleships.Shared Battleships.Domain tests/ Battleships.UnitTests Battleships.IntegrationTests Battleships.ArchitectureTests Battleships.EndTests `
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts