summaryrefslogtreecommitdiff
path: root/webapp/src/components/game.rs
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/components/game.rs')
-rw-r--r--webapp/src/components/game.rs15
1 files changed, 13 insertions, 2 deletions
diff --git a/webapp/src/components/game.rs b/webapp/src/components/game.rs
index e893691..accdd33 100644
--- a/webapp/src/components/game.rs
+++ b/webapp/src/components/game.rs
@@ -2,7 +2,7 @@ use crate::bridge_engine::{self, Contract, Player, PlayingDeal, PlayingDealResul
use crate::card;
use crate::card::Deal;
use crate::card::Suit;
-use crate::components::{Bidding, Hand, ShowBid};
+use crate::components::{Bidding, Hand, ShowBid, TrickInPlay};
use log::{error, info};
use yew::prelude::*;
@@ -108,7 +108,18 @@ pub fn game() -> Html {
<Bidding {on_contract} dealer={dealer.clone()} />
}
}
- GameState::Play { .. } => html! { <p>{ "Time to play" }</p> },
+ GameState::Play {
+ playing_deal,
+ contract,
+ bidding,
+ } => {
+ html! {
+ <>
+ <p>{ "Time to play" }</p>
+ <TrickInPlay in_progress={ playing_deal.trick_in_play().clone() } />
+ </>
+ }
+ },
GameState::PassedOut { .. } => html! { <p>{ "Everyone passed" }</p> },
};