codebreaker-rg-te 0.1.28 → 0.1.29
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c27b2af05d7910ef7d1ee2e91d1027e53ce79f8449f685f4c792261ddb9b234
|
4
|
+
data.tar.gz: 92885a0a0caf91ce47c627d9ec6c6928a602ccd514fcfb5085e281ff7202a190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0d52506565494a21b7c45683f6b9ed991f1eada9c832fe432af86aaa46ce59e02eeacba103997d29beb69d8a81b13fca95b97f472942f244d75356f48b51dd9
|
7
|
+
data.tar.gz: e90025d471424086276ff7dde3ebfe14fab3274edfdf1bd21c3191618f601cb6be38082f0718e7a31497614608830c1ce7543035f88ea05d413d70f3b514bae8
|
@@ -0,0 +1,25 @@
|
|
1
|
+
---
|
2
|
+
- :name: Player1
|
3
|
+
:level: easy
|
4
|
+
:level_num: 0
|
5
|
+
:attempts: 28
|
6
|
+
:attempts_used: 2
|
7
|
+
:hints: 3
|
8
|
+
:hints_used: 0
|
9
|
+
:game_date: 2019/01/27 12:55:55
|
10
|
+
- :name: Player2
|
11
|
+
:level: easy
|
12
|
+
:level_num: 0
|
13
|
+
:attempts: 28
|
14
|
+
:attempts_used: 2
|
15
|
+
:hints: 2
|
16
|
+
:hints_used: 1
|
17
|
+
:game_date: 2019/01/27 20:29:39
|
18
|
+
- :name: Player3
|
19
|
+
:level: hard
|
20
|
+
:level_num: 2
|
21
|
+
:attempts: 8
|
22
|
+
:attempts_used: 2
|
23
|
+
:hints: 0
|
24
|
+
:hints_used: 1
|
25
|
+
:game_date: 2019/01/27 20:30:07
|
@@ -1,7 +1,9 @@
|
|
1
1
|
module Codebreaker
|
2
2
|
class Statistics
|
3
|
-
|
4
|
-
|
3
|
+
DEFAULT_PATH_TO_FILE = "./lib/codebreaker/data/stat.yml".freeze
|
4
|
+
|
5
|
+
def initialize(path_to_file = DEFAULT_PATH_TO_FILE)
|
6
|
+
@storage = StorageInterceptor.new(path_to_file)
|
5
7
|
end
|
6
8
|
|
7
9
|
def stats
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module Codebreaker
|
2
2
|
class StorageInterceptor
|
3
|
-
DEFAULT_PATH_TO_FILE =
|
3
|
+
DEFAULT_PATH_TO_FILE = "./lib/codebreaker/data/stat.yml".freeze
|
4
4
|
|
5
5
|
def initialize(path_to_file = DEFAULT_PATH_TO_FILE)
|
6
6
|
@path_to_file = path_to_file.empty? ? DEFAULT_PATH_TO_FILE : path_to_file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codebreaker-rg-te
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugene Tereschenko
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- lib/codebreaker/autoload.rb
|
134
134
|
- lib/codebreaker/console.rb
|
135
135
|
- lib/codebreaker/data/help.yml
|
136
|
+
- lib/codebreaker/data/stat.yml
|
136
137
|
- lib/codebreaker/game.rb
|
137
138
|
- lib/codebreaker/localization.rb
|
138
139
|
- lib/codebreaker/statistics.rb
|