summaryrefslogtreecommitdiffstats
path: root/src/client/games/blackjack.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/games/blackjack.rs')
-rw-r--r--src/client/games/blackjack.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client/games/blackjack.rs b/src/client/games/blackjack.rs
index d5f45b3..8fa5693 100644
--- a/src/client/games/blackjack.rs
+++ b/src/client/games/blackjack.rs
@@ -1,5 +1,5 @@
1use super::traits::{Game, GameState}; 1use super::traits::{Game, GameState};
2use crate::blackjack::{card_label, BlackjackState}; 2use crate::blackjack::{BlackjackState, card_label};
3 3
4pub const BLACKJACK_BOARD_LINES: usize = 6; 4pub const BLACKJACK_BOARD_LINES: usize = 6;
5 5
@@ -33,8 +33,8 @@ impl BlackjackGame {
33 33
34 fn result_text(result: &str, winnings: u64) -> String { 34 fn result_text(result: &str, winnings: u64) -> String {
35 match result { 35 match result {
36 "blackjack" => format!("BLACKJACK! Won {winnings} PLN"), 36 "blackjack" => format!("BLACKJACK! Won {winnings} Kr"),
37 "win" => format!("Win! Won {winnings} PLN"), 37 "win" => format!("Win! Won {winnings} Kr"),
38 "push" => "Push. Bet returned.".to_string(), 38 "push" => "Push. Bet returned.".to_string(),
39 "lose" => "Dealer wins.".to_string(), 39 "lose" => "Dealer wins.".to_string(),
40 "bust" => "Bust.".to_string(), 40 "bust" => "Bust.".to_string(),
@@ -65,7 +65,7 @@ impl Game for BlackjackGame {
65 .map(|hand| hand.bet) 65 .map(|hand| hand.bet)
66 .unwrap_or(state.bet_amount); 66 .unwrap_or(state.bet_amount);
67 return format!( 67 return format!(
68 "=== BLACKJACK ===\r\nBalance: {balance} PLN Bet: {bet} PLN\r\n\r\n\r\nERROR: {error}\r\n[Q] Quit" 68 "=== BLACKJACK ===\r\nBalance: {balance} Kr Bet: {bet} Kr\r\n\r\n\r\nERROR: {error}\r\n[Q] Quit"
69 ); 69 );
70 } 70 }
71 71
@@ -120,7 +120,7 @@ impl Game for BlackjackGame {
120 }; 120 };
121 121
122 format!( 122 format!(
123 "=== BLACKJACK ===\r\nBalance: {} PLN Bet: {} PLN\r\nDealer: {} {}\r\nYou: {} {}\r\n{}\r\n{}", 123 "=== BLACKJACK ===\r\nBalance: {} Kr Bet: {} Kr\r\nDealer: {} {}\r\nYou: {} {}\r\n{}\r\n{}",
124 balance, bet, dealer, dealer_total, player, player_total, text, controls 124 balance, bet, dealer, dealer_total, player, player_total, text, controls
125 ) 125 )
126 } 126 }