codebreaker2018 0.2.8 → 0.2.8.1
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 +4 -4
- data/Gemfile +2 -1
- data/README.md +4 -3
- data/lib/codebreaker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9b5f6b8e1050c33f08d73632c60bdba8995ed2834f66ed3097691cdbb9898571
|
|
4
|
+
data.tar.gz: d2a0cd5f5631e8603224faa8d37220cae687e99cf32627bc9adad4d4b3a05308
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f1d01661fec5db4fc560c4192e0696387fd60df5b2f307b2005afc81152804dffd402917d7d201d6feadce8b19cdb23ec262eb051bd1d4dc0ae1ccc600718d7c
|
|
7
|
+
data.tar.gz: 26f2f3f84b0fee804eab5caa603c69520af65c1ffb99d9dee890f19e12b24309401f1ea45c995e53f4aedd5b201fbaa36838982b8ba0a56dd1e614ddefa9ff3e
|
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Codebreaker is a logic game in which the code-breaker tries to break a secret co
|
|
|
7
7
|
Add this line to your application's Gemfile:
|
|
8
8
|
|
|
9
9
|
```ruby
|
|
10
|
-
gem '
|
|
10
|
+
gem 'codebreaker2018'
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
And then execute:
|
|
@@ -56,7 +56,7 @@ Codebreaker::Console.new
|
|
|
56
56
|
### Detail sample of Codebreaker usage ###
|
|
57
57
|
|
|
58
58
|
```ruby
|
|
59
|
-
#
|
|
59
|
+
# Initialize Game instance with block
|
|
60
60
|
game = Codebreaker::Game.new do |config|
|
|
61
61
|
config.player_name = 'Mike'
|
|
62
62
|
config.max_attempts = 5
|
|
@@ -65,7 +65,8 @@ game = Codebreaker::Game.new do |config|
|
|
|
65
65
|
config.lang = :en
|
|
66
66
|
end
|
|
67
67
|
|
|
68
|
-
# Alternative
|
|
68
|
+
# Alternative initialize Game instance with args, args sequence:
|
|
69
|
+
# :player_name, :max_attempts, :max_hints, :level, :lang
|
|
69
70
|
game = Codebreaker::Game.new('Mike', 5, 2, :middle, :en)
|
|
70
71
|
|
|
71
72
|
# Init Console instance with your game
|
data/lib/codebreaker/version.rb
CHANGED