summaryrefslogtreecommitdiffstats
path: root/src/client/games/slots.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/client/games/slots.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/client/games/slots.rs b/src/client/games/slots.rs
index c367fcb..7e59919 100644
--- a/src/client/games/slots.rs
+++ b/src/client/games/slots.rs
@@ -1,10 +1,8 @@
1use super::traits::{Game, GamePhase, GameState}; 1use super::traits::{Game, GamePhase, GameState};
2use crate::slots::{paytable_line, REELS, ROWS};
2 3
3/// Height of the game board. It must never depend on the spin result. 4/// Height of the game board. It must never depend on the spin result.
4pub const SLOT_BOARD_LINES: usize = 9; 5pub const SLOT_BOARD_LINES: usize = 9;
5pub const LINES: usize = 5;
6pub const REELS: usize = 5;
7pub const ROWS: usize = 3;
8 6
9pub struct SlotsGame; 7pub struct SlotsGame;
10 8
@@ -106,13 +104,13 @@ impl Game for SlotsGame {
106 let grid = self.render_grid(&reels, &winning); 104 let grid = self.render_grid(&reels, &winning);
107 105
108 format!( 106 format!(
109 "=== SLOTS ===\r\nBet: {} PLN Lines: {} Balance: {} PLN\r\n{}\r\n{}\r\n{}\r\n\r\n{}\r\n{}\r\n[+/-] Bet [SPACE] Spin [Q] Quit", 107 "=== SLOTS ===\r\nBet: {} PLN Balance: {} PLN\r\n{}\r\n{}\r\n{}\r\n{}\r\n{}\r\n{}\r\n[+/-] Bet [SPACE] Spin [Q] Quit",
110 state.bet_amount, 108 state.bet_amount,
111 LINES,
112 balance, 109 balance,
113 grid[0], 110 grid[0],
114 grid[1], 111 grid[1],
115 grid[2], 112 grid[2],
113 paytable_line(),
116 self.render_status(state), 114 self.render_status(state),
117 self.render_win_lines(state) 115 self.render_win_lines(state)
118 ) 116 )