Sha256: 5983bd632454bcf4dd96b696ed6e6275b9342b382f65fbacea40b590d242caf9
Contents?: true
Size: 917 Bytes
Versions: 1
Compression:
Stored size: 917 Bytes
Contents
require "colorize" require_relative "between_the_sheets/application_exit" require_relative "between_the_sheets/application_help" require_relative "between_the_sheets/ask" require_relative "between_the_sheets/card" require_relative "between_the_sheets/game" require_relative "between_the_sheets/game_over" require_relative "between_the_sheets/wager" require_relative "between_the_sheets/version" module BetweenTheSheets loop do begin @game = Game.new(@jackpot || Game::STARTING_JACKPOT) @game.execute rescue GameOver @jackpot = @game.jackpot puts Game.message :game_over next if Ask.print("Play again? ", match: /y|n/) == "y" rescue ApplicationHelp puts Game.message :help rescue ApplicationExit puts Game.message :exit break rescue => e # TODO log e.message puts Game.message :error puts e.message break end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
between_the_sheets-1.0.2 | lib/between_the_sheets.rb |