From 33452f55afcad603f72e054d56ad7848a3d09503 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 28 Oct 2026 23:24:08 +0100 Subject: v1.2.0: show the symbol paytable on the slots board --- src/client/games/slots.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/client') 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 @@ use super::traits::{Game, GamePhase, GameState}; +use crate::slots::{paytable_line, REELS, ROWS}; /// Height of the game board. It must never depend on the spin result. pub const SLOT_BOARD_LINES: usize = 9; -pub const LINES: usize = 5; -pub const REELS: usize = 5; -pub const ROWS: usize = 3; pub struct SlotsGame; @@ -106,13 +104,13 @@ impl Game for SlotsGame { let grid = self.render_grid(&reels, &winning); format!( - "=== 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", + "=== 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", state.bet_amount, - LINES, balance, grid[0], grid[1], grid[2], + paytable_line(), self.render_status(state), self.render_win_lines(state) ) -- cgit v1.2.3