diff options
Diffstat (limited to '')
| -rw-r--r-- | src/client/games/slots.rs | 8 |
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 @@ | |||
| 1 | use super::traits::{Game, GamePhase, GameState}; | 1 | use super::traits::{Game, GamePhase, GameState}; |
| 2 | use 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. |
| 4 | pub const SLOT_BOARD_LINES: usize = 9; | 5 | pub const SLOT_BOARD_LINES: usize = 9; |
| 5 | pub const LINES: usize = 5; | ||
| 6 | pub const REELS: usize = 5; | ||
| 7 | pub const ROWS: usize = 3; | ||
| 8 | 6 | ||
| 9 | pub struct SlotsGame; | 7 | pub 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 | ) |
