chess-outpost Cursor Rules — Cursor Rules | Neura Market
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    CursorRuleschess-outpost Cursor Rules
    Back to Rules
    Frontend

    chess-outpost Cursor Rules

    pixelsmill April 15, 2026
    0 copies 0 downloads

    This is an Angular chess application with the following key features:

    Rule Content
    # Cursor Rules for Chess Outpost Project
    
    ## Project Context
    This is an Angular chess application with the following key features:
    - Multiplayer chess games with real-time synchronization
    - PGN analysis and navigation
    - Drag & drop piece movement (desktop & mobile)
    - Multiple board backgrounds (classic, heatmap, topographic)
    - Firebase backend for authentication and game state
    - Never use anti pattern setTimeout or setInterval, prefer timer from rxjs and only for animations, or short delays
    - Never run ng serve, ng build, npm run. It's my responsability. And hot reload is enabled.
    
    ## Code Standards
    - Use Angular 18+ with standalone components and signals
    - Prefer input() and output() over @Input()/@Output()
    - Use computed() for derived state and effect() for side effects
    - Always use TypeScript with strict typing
    - Follow reactive programming patterns with RxJS
    
    ## File Structure Rules
    - Components go in src/app/[component-name]/
    - Services go in src/app/services/
    - Shared components go in src/app/shared/
    - Page components go in src/app/pages/
    - Models/interfaces go in src/app/models/
    
    ## Chess-Specific Rules
    - Always use chess.js library for game logic validation
    - Position strings should always be FEN format
    - Piece coordinates use standard chess notation (a1-h8)
    - Board orientation: 'white' or 'black' for player perspective
    - All chess moves must be validated before execution
    
    ## Mobile Optimization
    - Always include touch events alongside mouse events for drag & drop
    - Use touch-action: none to prevent scroll conflicts
    - Test responsive behavior on mobile viewports
    - Consider finger size for touch targets (minimum 44px)
    
    ## Performance Guidelines
    - Use OnPush change detection when possible
    - Implement trackBy functions for *ngFor loops
    - Lazy load heavy components when appropriate
    - Optimize bundle size by avoiding unnecessary imports
    
    ## Testing Approach
    - Skip test files
    
    ## When Making Changes
    1. Always check that chess game rules are preserved
    2. Verify that both orientations (white/black) work correctly
    3. Test drag & drop on mobile devices
    4. Ensure real-time multiplayer sync still works
    5. Check that PGN analysis features remain functional
    
    ## Communication Style
    - Be precise about chess terminology
    - Explain the impact of changes on gameplay
    - Mention mobile compatibility when relevant
    - Use French for user-facing text and comments in French files 
    
    /**
     * Génère une clé situationnelle globale basée sur les avantages détectés
     * Format : "avantagesBlancs_vs_avantagesNoirs" ou juste les avantages dominants
     */
    getGlobalSituationKey(): string {
      const whiteAdvs = this.whiteAdvantages().split(', ').filter(a => a.trim() !== '');
      const blackAdvs = this.blackAdvantages().split(', ').filter(a => a.trim() !== '');
      
      // Aucun avantage significatif
      if (whiteAdvs.length === 0 && blackAdvs.length === 0) {
        return '';
      }
      
      // Seuls les noirs ont des avantages
      if (whiteAdvs.length === 0) {
        return blackAdvs.join('_');
      }
      
      // Seuls les blancs ont des avantages
      if (blackAdvs.length === 0) {
        return whiteAdvs.join('_');
      }
      
      // Les deux couleurs ont des avantages
      return `${whiteAdvs.join('_')}_vs_${blackAdvs.join('_')}`;
    }
    
    getAdviceKeyForSelectedColor(): string {
      return this.getGlobalSituationKey();
    }
    
    

    Tags

    reactangulartypescriptgo

    Comments

    More Rules

    View all
    Web Development

    Next.js 15 + TypeScript Cursor Rules

    Comprehensive .cursorrules file for Next.js 15 App Router projects with TypeScript, enforcing server components by default, proper use of "use client" directive, and App Router conventions.

    C
    Community
    Backend Development

    Python FastAPI Best Practices Rules

    Cursor rules for Python FastAPI projects enforcing async patterns, Pydantic v2 models, dependency injection, and proper error handling.

    C
    Community
    Frontend Development

    React + TypeScript Component Rules

    Rules for consistent React component development with TypeScript interfaces, proper hook patterns, and component composition.

    C
    Community
    AI/ML

    Cursor Agent Mode Configuration

    Rules optimizing Cursor Agent mode behavior including multi-file editing context, session management, and autonomous task completion patterns.

    C
    Cursor Team
    Frontend Development

    Tailwind CSS + shadcn/ui Rules

    Cursor rules for projects using Tailwind CSS with shadcn/ui component library, enforcing consistent utility class usage and component patterns.

    C
    Community
    Backend Development

    Go Backend Service Rules

    Rules for Go backend services enforcing idiomatic Go patterns, proper error handling, and clean architecture conventions.

    C
    Community

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.