diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-12-21 08:10:38 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-12-21 08:10:38 -0500 |
commit | 10ecb9e30568bf20287b053a620252d7a80dbd6b (patch) | |
tree | c6a82f7cb4d24071234a1429dbb91815709052be /protocol/src/bot.rs | |
parent | 27f74d8c366be675e7ab64ca746496a66b3cf024 (diff) |
Add struct for the player view of a hand in play
Diffstat (limited to 'protocol/src/bot.rs')
-rw-r--r-- | protocol/src/bot.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/protocol/src/bot.rs b/protocol/src/bot.rs index 3bae7db..cc676df 100644 --- a/protocol/src/bot.rs +++ b/protocol/src/bot.rs @@ -1,8 +1,15 @@ use async_trait::async_trait; -use crate::bridge_engine::{BiddingStatePlayerView, Bid}; +use crate::{bridge_engine::{BiddingStatePlayerView, Bid}, card::Card}; #[async_trait] pub trait BiddingBot { async fn bid(&self, bidding: &BiddingStatePlayerView) -> Bid; } + +#[async_trait] +pub trait PlayingBot { + async fn play(&self) -> Card { + todo!() + } +} |