//! The [`Strategy`] trait: a decision procedure for one seat
use crateView;
use Card;
/// A decision procedure for one seat of Hearts
///
/// Every method receives a [`View`] restricted to the information the seat
/// may legally see. Methods take `&mut self` so strategies can keep state —
/// an internal random number generator, an opponent model — and the trait is
/// object-safe, so the driver works with `&mut dyn Strategy`.
///
/// A strategy never applies its decisions itself; the [`Table`] driver
/// validates and applies them, rejecting illegal choices as
/// [`EngineError::IllegalAction`].
///
/// [`Table`]: crate::Table
/// [`EngineError::IllegalAction`]: crate::EngineError::IllegalAction