diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2022-11-27 16:45:07 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2022-11-27 17:23:11 -0500 |
commit | d8de16a7187d2a05fd043946cf4cb32449a5aa3b (patch) | |
tree | 6c1a212232203dbb6a9da48c192e10bef5d3b932 /protocol/src/bot.rs | |
parent | 854f247b6b7bf1106f31d7f23a326c0904d4f87e (diff) |
Add basic bot trait for bot bidding
Diffstat (limited to 'protocol/src/bot.rs')
-rw-r--r-- | protocol/src/bot.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocol/src/bot.rs b/protocol/src/bot.rs new file mode 100644 index 0000000..3bae7db --- /dev/null +++ b/protocol/src/bot.rs @@ -0,0 +1,8 @@ +use async_trait::async_trait; + +use crate::bridge_engine::{BiddingStatePlayerView, Bid}; + +#[async_trait] +pub trait BiddingBot { + async fn bid(&self, bidding: &BiddingStatePlayerView) -> Bid; +} |