between_the_sheets 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitignore +0 -0
- data/.rspec +0 -0
- data/.travis.yml +0 -0
- data/Gemfile +0 -0
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/between_the_sheets.gemspec +0 -0
- data/lib/between_the_sheets.rb +6 -2
- data/lib/between_the_sheets/application_exit.rb +0 -0
- data/lib/between_the_sheets/application_help.rb +0 -0
- data/lib/between_the_sheets/ask.rb +0 -0
- data/lib/between_the_sheets/card.rb +0 -0
- data/lib/between_the_sheets/game.rb +0 -0
- data/lib/between_the_sheets/game/constants.rb +0 -0
- data/lib/between_the_sheets/game/messages.rb +2 -2
- data/lib/between_the_sheets/game/rules/bust/consecutive.rb +0 -0
- data/lib/between_the_sheets/game/rules/bust/joker.rb +0 -0
- data/lib/between_the_sheets/game/rules/win/joker.rb +0 -0
- data/lib/between_the_sheets/game/rules/win/same_cards.rb +0 -0
- data/lib/between_the_sheets/game/screens.rb +0 -0
- data/lib/between_the_sheets/game_over.rb +0 -0
- data/lib/between_the_sheets/rules/bust/consecutive.rb +0 -0
- data/lib/between_the_sheets/rules/bust/joker.rb +0 -0
- data/lib/between_the_sheets/rules/win/joker.rb +0 -0
- data/lib/between_the_sheets/rules/win/same_cards.rb +0 -0
- data/lib/between_the_sheets/version.rb +1 -1
- data/lib/between_the_sheets/wager.rb +0 -0
- metadata +4 -4
- data/between_the_sheets-1.0.0.gem +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 8b38e668c72251eff41a1dfbda138e4258b6daf0
|
|
4
|
+
data.tar.gz: 7333916b316864837c1e55dd432af53d12a053d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63440f0703a200a1fd38093e3df37fc8558b2675ce4052e7780fb207e3fec1c28499fabe04c9cff2f740c4887ccfbe6057c8fcbd84e3b47c240044d908ad6d9d
|
|
7
|
+
data.tar.gz: 347ef943ebd00feac5b24f7f2996d791363d0bc33becbc314ef1076f37c534602be6dc4116965ea9af6d17bde99537bba1116e5e46f51efdcbc1e0797f31a350
|
data/.gitignore
CHANGED
|
File without changes
|
data/.rspec
CHANGED
|
File without changes
|
data/.travis.yml
CHANGED
|
File without changes
|
data/Gemfile
CHANGED
|
File without changes
|
data/LICENSE.txt
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
File without changes
|
data/Rakefile
CHANGED
|
File without changes
|
data/between_the_sheets.gemspec
CHANGED
|
File without changes
|
data/lib/between_the_sheets.rb
CHANGED
|
@@ -9,17 +9,21 @@ require_relative "between_the_sheets/wager"
|
|
|
9
9
|
require_relative "between_the_sheets/version"
|
|
10
10
|
|
|
11
11
|
module BetweenTheSheets
|
|
12
|
+
running = true
|
|
13
|
+
|
|
12
14
|
loop do
|
|
13
15
|
begin
|
|
16
|
+
raise ApplicationExit unless running
|
|
17
|
+
|
|
14
18
|
@game = Game.new(@jackpot || Game::STARTING_JACKPOT)
|
|
15
19
|
@game.execute
|
|
16
20
|
rescue GameOver
|
|
17
21
|
@jackpot = @game.jackpot
|
|
18
22
|
puts Game.message :game_over
|
|
19
|
-
|
|
23
|
+
running = Ask.print("Play again? ", match: /y|n/) == "y"
|
|
20
24
|
rescue ApplicationHelp
|
|
21
25
|
puts Game.message :help
|
|
22
|
-
rescue ApplicationExit
|
|
26
|
+
rescue ApplicationExit, SystemExit, Interrupt
|
|
23
27
|
puts Game.message :exit
|
|
24
28
|
break
|
|
25
29
|
rescue => e
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,8 +2,8 @@ module BetweenTheSheets
|
|
|
2
2
|
class Game
|
|
3
3
|
module Messages
|
|
4
4
|
MESSAGES = {
|
|
5
|
-
error: "
|
|
6
|
-
exit: "
|
|
5
|
+
error: "\nSorry, there was an error.".colorize(:orange),
|
|
6
|
+
exit: "\nGood bye.",
|
|
7
7
|
game_over: "GAME OVER".colorize(:red),
|
|
8
8
|
lose: "You LOSE!".colorize(:red),
|
|
9
9
|
win: "You WIN!".colorize(:green),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: between_the_sheets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Roerig
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-07-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: colorize
|
|
@@ -96,7 +96,6 @@ files:
|
|
|
96
96
|
- LICENSE.txt
|
|
97
97
|
- README.md
|
|
98
98
|
- Rakefile
|
|
99
|
-
- between_the_sheets-1.0.0.gem
|
|
100
99
|
- between_the_sheets.gemspec
|
|
101
100
|
- bin/console
|
|
102
101
|
- bin/setup
|
|
@@ -140,7 +139,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
140
139
|
- !ruby/object:Gem::Version
|
|
141
140
|
version: '0'
|
|
142
141
|
requirements: []
|
|
143
|
-
|
|
142
|
+
rubyforge_project:
|
|
143
|
+
rubygems_version: 2.6.12
|
|
144
144
|
signing_key:
|
|
145
145
|
specification_version: 4
|
|
146
146
|
summary: A simple card game I used to play at the bar.
|
|
Binary file
|