tcg_ai 0.1.0

Pokemon TCG game engine AI controllers
Documentation
1
2
3
4
5
6
7
8
use tcg_core::{Action, GameView, Prompt};

/// Option-A AI interface: consumes only the player's `GameView` (+ prompt) and emits actions.
pub trait AiController {
    fn propose_prompt_response(&mut self, view: &GameView, prompt: &Prompt) -> Vec<Action>;
    fn propose_free_actions(&mut self, view: &GameView) -> Vec<Action>;
}