blob: 250731e4dce0679f0f7f5bc83b0af2f852a8a60c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use async_trait::async_trait;
use crate::{bridge_engine::{BiddingStatePlayerView, Bid, PlayStatePlayerView}, card::Card};
#[async_trait]
pub trait BiddingBot {
async fn bid(&self, bidding: &BiddingStatePlayerView) -> Bid;
}
#[async_trait]
pub trait PlayingBot {
// TODO: May need a PlayStateBotView here to expose past cards played,
// to avoid the need for stateful bots.
async fn play(&self, play_state: &PlayStatePlayerView) -> Card;
}
|