module BetweenTheSheets::Game::Screens

Public Instance Methods

intro_screen() click to toggle source
# 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.message :banner

  puts "Round: #{@rounds} | Jackpot: #{@jackpot} | Ante: #{Game::ANTE} | Credits: #{@credits.to_s.colorize(:green)}"
end
is_between_screen() click to toggle source
# 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() click to toggle source
# 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