catgame 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/catgame/version.rb +1 -1
- data/lib/levels/death.rb +1 -1
- data/lib/levels/feeding_room.rb +1 -1
- data/lib/levels/guest_room.rb +1 -1
- data/lib/levels/happy_end.rb +1 -1
- data/lib/levels/sleeping_room.rb +1 -1
- data/lib/levels/styling_room.rb +1 -1
- data/lib/levels/training_room.rb +1 -1
- data/lib/levels/washing_room.rb +1 -1
- metadata +6 -8
data/lib/catgame/version.rb
CHANGED
data/lib/levels/death.rb
CHANGED
data/lib/levels/feeding_room.rb
CHANGED
@@ -21,6 +21,7 @@ module Levels
|
|
21
21
|
return Levels::WashingRoom
|
22
22
|
when BAD_CHOICE
|
23
23
|
second_choice
|
24
|
+
return Levels::Death
|
24
25
|
else
|
25
26
|
invalid_input
|
26
27
|
end
|
@@ -56,7 +57,6 @@ module Levels
|
|
56
57
|
Oh man, the food from my grandmother wasn't fresh anymore
|
57
58
|
That's maybe the reason why Johnny don't move anymore.
|
58
59
|
PARAGRAPH
|
59
|
-
death
|
60
60
|
end
|
61
61
|
|
62
62
|
def invalid_input
|
data/lib/levels/guest_room.rb
CHANGED
@@ -21,6 +21,7 @@ module Levels
|
|
21
21
|
return Levels::SleepingRoom
|
22
22
|
when BAD_CHOICE
|
23
23
|
second_choice
|
24
|
+
return Levels::Death
|
24
25
|
else
|
25
26
|
invalid_input
|
26
27
|
end
|
@@ -61,7 +62,6 @@ module Levels
|
|
61
62
|
Poor Johnny. He was so bored, that he can't breath anymore.
|
62
63
|
Johnny never plays outside again.
|
63
64
|
PARAGRAPH
|
64
|
-
death
|
65
65
|
end
|
66
66
|
|
67
67
|
def invalid_input
|
data/lib/levels/happy_end.rb
CHANGED
@@ -21,6 +21,7 @@ module Levels
|
|
21
21
|
Process.exit(0)
|
22
22
|
when BAD_CHOICE
|
23
23
|
second_choice
|
24
|
+
return Levels::Death
|
24
25
|
else
|
25
26
|
invalid_input
|
26
27
|
end
|
@@ -62,7 +63,6 @@ module Levels
|
|
62
63
|
Johnny's heartache was big because he still miss his girlfriend.
|
63
64
|
He's heart decided to don't beat anmymore.
|
64
65
|
PARAGRAPH
|
65
|
-
death
|
66
66
|
end
|
67
67
|
def invalid_input
|
68
68
|
space
|
data/lib/levels/sleeping_room.rb
CHANGED
@@ -21,6 +21,7 @@ module Levels
|
|
21
21
|
return Levels::HappyEnd
|
22
22
|
when BAD_CHOICE
|
23
23
|
second_choice
|
24
|
+
return Levels::Death
|
24
25
|
else
|
25
26
|
invalid_input
|
26
27
|
end
|
@@ -64,7 +65,6 @@ module Levels
|
|
64
65
|
He's heart hurt so much that Johnny decied
|
65
66
|
to never wake up again.
|
66
67
|
PARAGRAPH
|
67
|
-
death
|
68
68
|
end
|
69
69
|
|
70
70
|
def invalid_input
|
data/lib/levels/styling_room.rb
CHANGED
@@ -21,6 +21,7 @@ module Levels
|
|
21
21
|
return Levels::GuestRoom
|
22
22
|
when BAD_CHOICE
|
23
23
|
second_choice
|
24
|
+
return Levels::Death
|
24
25
|
else
|
25
26
|
invalid_input
|
26
27
|
end
|
@@ -59,7 +60,6 @@ module Levels
|
|
59
60
|
Oh, no ! It was too cold for Johnny outside.
|
60
61
|
He is frozen and never mets your Friend.
|
61
62
|
PARAGRAPH
|
62
|
-
death
|
63
63
|
end
|
64
64
|
|
65
65
|
def invalid_input
|
data/lib/levels/training_room.rb
CHANGED
@@ -21,6 +21,7 @@ module Levels
|
|
21
21
|
return Levels::StylingRoom
|
22
22
|
when 10
|
23
23
|
second_choice(1)
|
24
|
+
return Levels::Death
|
24
25
|
else
|
25
26
|
invalid_input
|
26
27
|
end
|
@@ -79,7 +80,6 @@ module Levels
|
|
79
80
|
Shit happens. That was too much for Johnny.
|
80
81
|
Johnny never made a ##{i} Training."
|
81
82
|
PARAGRAPH
|
82
|
-
death
|
83
83
|
end
|
84
84
|
end
|
85
85
|
end
|
data/lib/levels/washing_room.rb
CHANGED
@@ -21,6 +21,7 @@ module Levels
|
|
21
21
|
return Levels::TrainingRoom
|
22
22
|
when BAD_CHOICE
|
23
23
|
second_choice
|
24
|
+
return Levels::Death
|
24
25
|
else
|
25
26
|
invalid_input
|
26
27
|
end
|
@@ -63,7 +64,6 @@ module Levels
|
|
63
64
|
you find Johnny in the bath tube.
|
64
65
|
The tube was too full for Johnny.
|
65
66
|
PARAGRAPH
|
66
|
-
death
|
67
67
|
end
|
68
68
|
|
69
69
|
def invalid_input
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: catgame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Franca Rast
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-09-05 00:00:00 Z
|
20
19
|
dependencies: []
|
21
20
|
|
22
21
|
description: "Play a game with a lovely cat in the terminal. "
|
@@ -48,7 +47,6 @@ files:
|
|
48
47
|
- lib/levels/training_room.rb
|
49
48
|
- lib/levels/washing_room.rb
|
50
49
|
- test/test_catgame.rb
|
51
|
-
has_rdoc: true
|
52
50
|
homepage: https://github.com/ryabrody
|
53
51
|
licenses: []
|
54
52
|
|
@@ -78,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
76
|
requirements: []
|
79
77
|
|
80
78
|
rubyforge_project: catgame
|
81
|
-
rubygems_version: 1.
|
79
|
+
rubygems_version: 1.8.6
|
82
80
|
signing_key:
|
83
81
|
specification_version: 3
|
84
82
|
summary: Fancy game for Cat-Fans
|