How wiggly/functional-pokering works
Main Components
a. Core Components:
• Cards Engine (src/Cards.hs and src/Cards/Output.hs)
• Poker Logic (src/Poker.hs)
• Board Management (src/UnBoard.hs)
• Main Application Logic (src/Main.hs and src/ParallelMain.hs)
b. External Interfaces:
• Command Line Interface
• Terminal Output System
Architecture Pattern
a. Data Flow Layers:
Core Logic Layer (card handling, poker calculations)
[Command Line Interface]
• ↓
[Input Parser & Options Handler]
• ↓
[Deck Management System] ←→ [Random Number Generator]
• ↓
[Core Poker Engine]
• ↙ ↘
[Hand Evaluator] [Equity Calculator]
• ↓
[Output Formatter]
• ↓
[Terminal Display]
Important Elements to Highlight
a. Parallel Processing Capability:
• Parallel execution paths for equity calculations
• Thread management for performance optimization
b. Data Structures:
• Card representation
• Deck management
• Hand evaluation hierarchy
Key Relationships
• How the random number generator interfaces with deck shuffling
• Relationship between board state and equity calculations
• Demonstrate how parallel processing integrates with the main calculation engine
Technical Details
• Haskell-specific notations (pure functions vs. IO operations)
• Memory management considerations
• Performance optimization points
• Special symbols used for pure vs. impure functions
• Parallel processing indicators