summaryrefslogtreecommitdiff
path: root/protocol/src/simple_bots.rs
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-12-03 17:25:32 -0500
committerKjetil Orbekk <kj@orbekk.com>2022-12-03 17:25:32 -0500
commit581e9ec21a85a3d2f908016c28d831e8022cb1f4 (patch)
treedc098241f07ff9c1cdc226de3fbc2e385c6240cb /protocol/src/simple_bots.rs
parente6933ac48848b598f870ff5a9d96a0336728620b (diff)
Change deal function to use random()
Diffstat (limited to 'protocol/src/simple_bots.rs')
-rw-r--r--protocol/src/simple_bots.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocol/src/simple_bots.rs b/protocol/src/simple_bots.rs
index 7997418..f5be424 100644
--- a/protocol/src/simple_bots.rs
+++ b/protocol/src/simple_bots.rs
@@ -16,7 +16,7 @@ mod tests {
use super::*;
use log::info;
use rand::random;
- use crate::bridge_engine::{deal, GameState, BiddingState, Bidding, BiddingStatePlayerView};
+ use crate::bridge_engine::{BiddingState, Bidding, BiddingStatePlayerView};
#[tokio::test]
async fn always_passing_bot_passes() {
@@ -25,7 +25,7 @@ mod tests {
let player_position = random();
let bidding_state = BiddingState {
dealer,
- deal: deal(),
+ deal: random(),
bidding: Bidding::new(dealer),
};
let player_view = BiddingStatePlayerView::from_bidding_state(&bidding_state, player_position);