Skip to content

[FEATURE] Engine: Refractor pattern detection using entire board bit shift - #69

Draft
odkaz wants to merge 7 commits into
mainfrom
feature/pattern-bit
Draft

[FEATURE] Engine: Refractor pattern detection using entire board bit shift#69
odkaz wants to merge 7 commits into
mainfrom
feature/pattern-bit

Conversation

@odkaz

@odkaz odkaz commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

Refactor pattern detection from packed local lines to whole-board bitboard analysis.

Changes

  • replace line-based pattern scanning with directional bitboard propagation
  • add whole-board run detection utilities
  • add open / closed run classification on bitboards
  • add stable / unstable five classification
  • merge overlapping embedded five windows into single 5+ structures
  • add directional multi-shift helpers (forward_n / backward_n)
  • add pop_lsb utility for bitboard iteration
  • begin migrating evaluation and tactical detection to board-global masks

Notes

  • 5+ alignments are now treated as a single connected structure
  • stable overlines are detected if any embedded five is stable
  • pattern extraction now returns reusable bitboard masks instead of only scalar counts

@odkaz
odkaz requested a review from pulgamecanica May 26, 2026 21:15
@odkaz
odkaz force-pushed the feature/pattern-bit branch from 08be60a to c0b09cb Compare May 28, 2026 13:46
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