A powerful web-based tool for building achievement logic conditions with advanced expansion and optimization capabilities.
- Visual Logic Builder: Create conditions using intuitive dropdowns for flags, types, sizes, and values
- Real-time Validation: Input validation prevents invalid combinations
- Group Management: Link conditions together for batch operations
- Live Preview: See generated logic in real-time
- Bit Selection: Choose individual bits (Bit0-Bit7) or nibbles (Lower4/Upper4)
- Multiple Addresses: Select from multiple memory addresses
- Custom Groups: Create unlimited custom expansion groups
- Visual Interface: Easy-to-use bit selection panel
- Increment Support: Add arithmetic increments to memory addresses
- Hex/Decimal Input: Support for both hex and decimal values
- Per-line Configuration: Different increments for each line
- Smart Detection: Automatically identifies compressible bit patterns
- Add/Sub Logic: Properly handles Add Source (A:) and Sub Source (B:) flags
- Group Optimization: Reduces group count when compression is possible
- Interleaved Pattern: A+B+A+C pattern for maximum efficiency
- Accumulator Logic: Creates Delta and Mem versions with accumulators
- Flag Detection: Works with Add/Sub Source and And/Or Next flags
- Automatic Application: Applies to appropriate groups automatically
- Pattern Detection: Finds repetitive patterns in generated logic
- Memory Optimization: Uses Remember flags to eliminate duplication
- Intelligent Replacement: Replaces patterns with Recall calls
- Space Savings: Significant reduction in logic string size
- Enter Base Logic: Start with a base logic string or build from scratch
- Add Conditions: Use the visual builder to add conditions
- Configure Groups: Link related conditions together
- Expand: Click Expand to generate expanded logic
- Optimize: Enable optimization features for maximum efficiency
- Click Expand on any condition
- Select Customize for bit lines
- Choose bits and addresses in the customization panel
- Set the number of groups to generate
- Confirm to apply custom expansion
- Enable Bit-Compression toggle in expansion panel
- Only works with Bit lines (Bit0-Bit7) that have custom expansion
- Automatically compresses 5+ bits from the same address
- Applies proper Add/Sub flag logic
- Enable Delta/Mem Check toggle in expansion panel
- Works with Add/Sub Source (A:/B:) flags
- Creates accumulator versions of expanded logic
- Handles And/Or Next (N:/O:) flags appropriately
- Enable R/R Collapse toggle on main panel
- Click Generate Logic to apply optimization
- Automatically finds and compresses repetitive patterns
- Uses Remember/Recall flags for space savings
- I: (Add Address): Only allows Mem, Prior, Value, Recall types
- All other flags: Allow all types (Mem, Value, Delta, Prior, BCD, Float, Invert, Recall)
- Disabled for: Value=Value and Recall=Recall combinations
- Enabled for: Any combination with at least one memory type
- Memory Types: Require size selection (8-bit, Bit0-Bit7, etc.)
- Value/Recall: No size selection needed
- Only Bit lines: Works with Bit0-Bit7 sizes only
- Minimum 5 bits: Requires 5+ bits from same address
- A:/B: flags: Must have Add Source or Sub Source flags
- Non-Bit lines: Cannot have customizations or increments
- Last Line Priority: Uses last line in group for compression decisions
- Interleaved Pattern: A+B+A+C pattern for optimal results
- Delta/Mem: Uses last line flags for accumulator logic
- Minimum Pattern: 2+ lines repeating 3+ times
- Longest Pattern: Selects longest qualifying pattern
- Flag Replacement: Replaces last line flag with K:
- Recall Usage: Uses original flag + {recall} for replacements
- app.js: Main application logic and UI coordination
- compression.js: Bit compression algorithms
- delta-mem-check.js: Delta/Mem accumulator logic
- rr-optimization.js: Remember/Recall optimization
- expansion-system.js: Expansion management
- custom-panel-controller.js: Custom expansion UI
- html-renderer.js: UI rendering and updates
- validation.js: Input validation and normalization
- parsing.js: Logic string parsing
- core-constants.js: Core constants and mappings
- Input: User enters conditions via UI
- Validation: Input validation and normalization
- Expansion: Generate expanded logic with optimizations
- Optimization: Apply compression and R/R optimization
- Output: Generate final optimized logic string
- Modern Browsers: Chrome, Firefox, Safari, Edge
- ES6 Modules: Requires modern JavaScript support
- No Dependencies: Pure vanilla JavaScript implementation
- Bit Compression: Can reduce 56 lines to 4 lines (93% reduction)
- R/R Optimization: Can save hundreds of characters in repetitive logic
- Group Optimization: Reduces unnecessary duplication
- Memory Efficient: Modular architecture minimizes memory usage
- Thousands of Conditions: Handles large logic sets efficiently
- Complex Patterns: Processes complex bit patterns quickly
- Real-time Updates: Immediate feedback on changes
- Use Custom Expansion: For bit-level control and maximum compression
- Enable All Optimizations: Bit Compression + Delta/Mem + R/R
- Group Related Conditions: Link similar conditions together
- Use Appropriate Flags: Choose correct flags for intended behavior
- Check Console: Monitor optimization process and results
- Verify Output: Review generated logic for correctness
- Test Incrementally: Build logic step by step
- Use Validation: Let validation guide correct input
- Start Simple: Build basic structure first
- Add Complexity: Gradually add advanced features
- Test Each Step: Verify each addition works correctly
- Document Logic: Keep track of complex logic patterns
- Tab: Navigate between form fields
- Enter: Confirm actions in modals
- Escape: Cancel current operation
- Ctrl+C: Copy to clipboard (when focused on logic output)
For issues, questions, or feature requests, please refer to the console output for debugging information. The application provides detailed logging for all operations and optimizations.