How much is each piece worth to your AI? Higher = it fights harder to capture or protect it.
AI personality knobs. These kick in when no IF/THEN rule fires, and affect capture priority.
These variables are auto-injected into your Python code — use them directly.
# Board helpers:
board.get_legal_moves(color) # all legal moves
board.get_captures(color) # capturing moves only
board.is_in_check(color) # True/False
board.get_piece(square) # e.g. "e4" → piece or None
board.get_threatened_squares(color)
# Move properties:
move.to_square # e.g. "e4"
move.piece_type # "pawn","knight",etc.
move.captured_piece # piece type or None
# Injected from Values tab:
PIECE_VALUES # {"pawn":1,"knight":3,...}
STRATEGY_CONFIG # {"opening":..., "aggression_multiplier":...}
The AI wins this round.