diff options
Diffstat (limited to 'webapp/src/components')
-rw-r--r-- | webapp/src/components/game.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/src/components/game.rs b/webapp/src/components/game.rs index 9d45095..c590357 100644 --- a/webapp/src/components/game.rs +++ b/webapp/src/components/game.rs @@ -1,12 +1,13 @@ use crate::components::{Bidding, Hand, ShowBid, TrickInPlay, TricksPlayed}; use log::{error, info}; use protocol::bridge_engine::{ - deal, BiddingState, DealInPlay, DealInPlayResult, GameState, PlayState, Player, + BiddingState, DealInPlay, DealInPlayResult, GameState, PlayState, Player, }; +use rand::random; use yew::prelude::*; fn init_state() -> GameState { - GameState::new(deal(), Player::East) + GameState::new(random(), Player::East) } #[function_component(Game)] |