summaryrefslogtreecommitdiff
path: root/webapp/src/bridge_engine.rs
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/src/bridge_engine.rs')
-rw-r--r--webapp/src/bridge_engine.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/src/bridge_engine.rs b/webapp/src/bridge_engine.rs
index 48c0fd2..873a2f0 100644
--- a/webapp/src/bridge_engine.rs
+++ b/webapp/src/bridge_engine.rs
@@ -1,4 +1,4 @@
-use crate::card;
+use crate::card::Card;
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
pub enum Player {
@@ -22,7 +22,7 @@ impl Player {
#[derive(PartialEq, Eq, Debug)]
pub struct Trick {
pub leader: Player,
- pub cards_played: Vec<card::Card>,
+ pub cards_played: Vec<Card>,
}
#[derive(PartialEq, Eq, Debug)]
@@ -46,7 +46,7 @@ impl Turn {
}
}
- pub fn play(mut self: Turn, card: card::Card) -> PlayResult {
+ pub fn play(mut self: Turn, card: Card) -> PlayResult {
self.in_progress.cards_played.push(card);
if self.in_progress.cards_played.len() >= 4 {
return PlayResult::Trick(self.in_progress);