Skip to content

Conversation

StiliyanKushev
Copy link
Owner

Add three new example programs:

  • add_numbers.ku: Basic arithmetic and user input demonstration
  • sudoku.ku: Sudoku solver using backtracking algorithm
  • sudoku_game.ku: Interactive Sudoku game with terminal UI

These examples showcase array manipulation, control flow, user I/O, and interactive terminal applications in KU.

Stiliyan Iliyanov Kushev added 2 commits August 22, 2025 11:51
- add_numbers.ku: Simple program demonstrating basic arithmetic and user input
- sudoku.ku: Sudoku solver implementation
- sudoku_game.ku: Interactive Sudoku game with terminal UI

These examples showcase KU language features including:
- User input/output operations
- Array manipulation
- Control flow structures
- Terminal-based game interfaces
- .cursorrules: Main rules file with context-specific guidance
- .cursorrules-testing: Testing procedures and compiler testing guidelines
- .cursorrules-running: Compilation, execution, and runtime debugging rules
- .cursorrules-workflow: Repository workflow, contribution, and quality standards

These rules provide context-aware AI assistance for:
- Platform-specific development (Linux native vs macOS Docker)
- Proper testing procedures (compiler mode only, simulator deprecated)
- Memory management and syscall handling
- Code quality and contribution guidelines
@StiliyanKushev
Copy link
Owner Author

🤖 Added Cursor AI Rules for Enhanced Development Experience

I've added comprehensive .cursorrules files to provide context-aware AI assistance when working with the KU programming language:

📁 New Files Added:

🎯 .cursorrules (Main Rules)

  • Master configuration with context-specific guidance
  • Quick reference for essential commands and KU syntax
  • Critical guidelines and emergency procedures
  • Links to specialized context rules

🧪 .cursorrules-testing (Testing Context)

  • Compiler testing procedures (./test.sh -c)
  • Test structure and organization guidelines
  • Platform-specific testing (Linux/macOS via Docker)
  • Memory management testing patterns
  • CRITICAL: Emphasizes simulator deprecation - compiler mode only

🚀 .cursorrules-running (Execution Context)

  • Compilation workflow with ./kulang.sh and ./kulang-macos.sh
  • Platform differences (Linux native vs macOS Docker)
  • Memory management and syscall handling
  • Interactive application development guidelines
  • Runtime debugging and performance optimization

🔄 .cursorrules-workflow (Repository Context)

  • Git workflow and branching strategy
  • Code quality standards and file organization
  • Pull request and contribution guidelines
  • Platform compatibility requirements
  • Community and security considerations

🎯 Benefits:

  • Context-aware assistance: AI provides appropriate guidance based on current task
  • Platform-specific guidance: Proper handling of Linux vs macOS development
  • Quality assurance: Consistent coding standards and testing procedures
  • Knowledge preservation: Captures KU-specific development patterns and best practices
  • Onboarding: Helps new contributors understand project conventions

These rules will significantly improve the AI assistant's ability to help with KU development tasks! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant