From 10ecb9e30568bf20287b053a620252d7a80dbd6b Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Wed, 21 Dec 2022 08:10:38 -0500 Subject: Add struct for the player view of a hand in play --- protocol/src/bot.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'protocol/src/bot.rs') 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!() + } +} -- cgit v1.2.3