diff options
Diffstat (limited to 'protocol/src/bot.rs')
-rw-r--r-- | protocol/src/bot.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocol/src/bot.rs b/protocol/src/bot.rs index cc676df..250731e 100644 --- a/protocol/src/bot.rs +++ b/protocol/src/bot.rs @@ -1,6 +1,6 @@ use async_trait::async_trait; -use crate::{bridge_engine::{BiddingStatePlayerView, Bid}, card::Card}; +use crate::{bridge_engine::{BiddingStatePlayerView, Bid, PlayStatePlayerView}, card::Card}; #[async_trait] pub trait BiddingBot { @@ -9,7 +9,7 @@ pub trait BiddingBot { #[async_trait] pub trait PlayingBot { - async fn play(&self) -> Card { - todo!() - } + // 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; } |