Module: BetweenTheSheets::Game::Screens
- Included in:
- BetweenTheSheets::Game
- Defined in:
- lib/between_the_sheets/game/screens.rb
Instance Method Summary collapse
Instance Method Details
#intro_screen ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/between_the_sheets/game/screens.rb', line 4 def intro_screen if @credits <= Game::ANTE puts "You're out of credits." raise GameOver end puts Game. :banner puts "Round: #{@rounds} | Jackpot: #{@jackpot} | Ante: #{Game::ANTE} | Credits: #{@credits.to_s.colorize(:green)}" end |
#is_between_screen ⇒ Object
15 16 17 18 |
# File 'lib/between_the_sheets/game/screens.rb', line 15 def is_between_screen @play = Ask.print "Is the next card between #{@card1} and #{@card2}? ", match: /y|n/ end |
#transition_screen ⇒ Object
20 21 22 23 |
# File 'lib/between_the_sheets/game/screens.rb', line 20 def transition_screen Ask.print "Hit enter to deal again. " system ( Gem.win_platform? ? "cls" : "clear" ) end |