How husnain-official/tabiya_2.0 works
Tabiya is a Python chess game combining a from-scratch rules engine, a minimax bot, and a Pygame interface. Players choose local two-player or bot play, interact with the board, and receive rendered game and end-state feedback; the manager coordinates moves and asynchronous bot search. The graph separates engine state, legal-move rules, evaluation, bot search, and UI responsibilities. Some detailed UI and engine internals are documented but not fully excerpted, so those links rely on README statements rather than unsampled implementation claims.
Main entry points: chess_engine.py Engine state · main.py Game manager · chess_bot.py Chess bot · board.py Board visuals
Components 16
Game application
- Game loop
Game_loop/main.py - Game manager
Game_loop/main.py - Game menu
Game_loop/main.py - Resource paths
resource_paths.py
Chess engine
- Engine state
Engine/chess_engine.py - Board state
Engine/chess_engine.py - Move rules
Engine/chess_engine.py - Move history
Engine/chess_engine.py - Game status
Engine/chess_engine.py - Position evaluation
Engine/chess_engine.py - Piece-square tables
Engine/resources.py
Bot search
- Chess bot
Engine/chess_bot.py
Pygame interface
- Board visuals
Front_end/board.py - Game overlays
Front_end/board.py - Game assets
Assets
Other components
- Player
Connections 25
- Player → Game loop: interacts with
README.md - Game loop → Game menu: shows
Game_loop/main.py - Game menu → Game manager: selects mode
README.md - Game loop → Game manager: polls search
Game_loop/main.py - Game manager → Engine state: creates
Game_loop/main.py - Game manager → Board visuals: creates
Game_loop/main.py - Game manager → Chess bot: starts search
Game_loop/main.py - Game manager → Engine state: applies bot move
Game_loop/main.py - Game manager → Engine state: handles player moves
Game_loop/main.py - Engine state → Board state: creates
Engine/chess_engine.py - Engine state → Move history: creates
Engine/chess_engine.py - Engine state → Move rules: creates
Engine/chess_engine.py - Move rules → Board state: queries
Engine/chess_engine.py - Engine state → Game status: detects outcomes
README.md - Engine state → Position evaluation: evaluates position
README.md - Position evaluation → Piece-square tables: uses tables
Engine/chess_engine.py - Chess bot → Engine state: searches positions
Engine/chess_bot.py - Chess bot → Position evaluation: scores positions
Engine/chess_bot.py - Chess bot → Move rules: gets legal moves
Engine/chess_bot.py - Game loop → Board visuals: renders game
Game_loop/main.py - Game loop → Game overlays: renders outcomes
Game_loop/main.py - Board visuals → Resource paths: resolves assets
Front_end/board.py - Game menu → Resource paths: resolves backgrounds
Game_loop/main.py - Resource paths → Game assets: locates files
resource_paths.py - Board visuals → Game overlays: draws overlays
Front_end/board.py