codeguessing 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/codeguessing/console.rb +3 -3
- data/lib/codeguessing/game.rb +2 -0
- data/lib/codeguessing/scores.yml +7 -0
- data/lib/codeguessing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eace537f8a1bc10de61c91f95d5ca80d15d0f903
|
4
|
+
data.tar.gz: 8ab841471e4b0a56ef3d911f34d89102905d1c5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78f0b1b6a685d5d2f629910673444d5ec2fd89db56be2c26a13bd1929f76ece23914d6374b50121e4659ad6418de6042dca576f22bc6d8742c67fb31c5051c53
|
7
|
+
data.tar.gz: d88dd69659c158812a115880a3114cdaae044f08478542b4746472dc71d00692a5b1191d4097ec070dfc30c209ddbd6a484350e50287cb6cf10b982f26995151
|
data/lib/codeguessing/console.rb
CHANGED
@@ -16,8 +16,8 @@ module Codeguessing
|
|
16
16
|
@game = Game.new(opt)
|
17
17
|
end
|
18
18
|
|
19
|
-
def go(knowed =
|
20
|
-
rules
|
19
|
+
def go(knowed = true)
|
20
|
+
rules if knowed
|
21
21
|
puts "Attempt(s): #{@game.attempts} | Hint(s): #{@game.hint_count}"
|
22
22
|
case @game.win?
|
23
23
|
when true
|
@@ -97,7 +97,7 @@ module Codeguessing
|
|
97
97
|
puts 'Do you want start again? (Y/N)'
|
98
98
|
if confirm?
|
99
99
|
@game = Game.new
|
100
|
-
return go(
|
100
|
+
return go(false)
|
101
101
|
else
|
102
102
|
puts '-----------Scores----------'
|
103
103
|
p @scores
|
data/lib/codeguessing/game.rb
CHANGED
data/lib/codeguessing/scores.yml
CHANGED
data/lib/codeguessing/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codeguessing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bezrukavyi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|