femis_hangman 0.1.0 → 0.1.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/.coveralls.yml +1 -0
- data/Gemfile +1 -0
- data/README.md +36 -6
- data/bin/hangman +7 -0
- data/bin/resume +13 -0
- data/dictionary.txt +41211 -0
- data/femis_hangman.gemspec +4 -4
- data/lib/femis_hangman/game.rb +122 -0
- data/lib/femis_hangman/message.rb +114 -0
- data/lib/femis_hangman/router.rb +153 -0
- data/lib/femis_hangman/version.rb +1 -1
- data/lib/femis_hangman/word.rb +27 -0
- data/lib/femis_hangman.rb +6 -5
- data/saved_games.yaml +26 -0
- metadata +23 -7
- data/bin/console +0 -14
data/lib/femis_hangman.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
require
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
require 'femis_hangman/version'
|
2
|
+
require 'femis_hangman/message'
|
3
|
+
require 'femis_hangman/word'
|
4
|
+
require 'femis_hangman/game'
|
5
|
+
require 'YAML'
|
6
|
+
require 'femis_hangman/router'
|
data/saved_games.yaml
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
--- !ruby/object:FemisHangman::Game
|
2
|
+
word: fin-de-siecle
|
3
|
+
history: []
|
4
|
+
turns: 10
|
5
|
+
feedback: 2
|
6
|
+
status: quit
|
7
|
+
--- !ruby/object:FemisHangman::Game
|
8
|
+
word: fin-de-siecle
|
9
|
+
history:
|
10
|
+
- e
|
11
|
+
- r
|
12
|
+
- n
|
13
|
+
- s
|
14
|
+
- d
|
15
|
+
- y
|
16
|
+
turns: 7
|
17
|
+
feedback: 2
|
18
|
+
status: quit
|
19
|
+
--- !ruby/object:FemisHangman::Game
|
20
|
+
word: delegation
|
21
|
+
history:
|
22
|
+
- f
|
23
|
+
- q
|
24
|
+
turns: 7
|
25
|
+
feedback: 2
|
26
|
+
status: quit
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: femis_hangman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Femi Senjobi
|
8
8
|
autorequire:
|
9
|
-
bindir:
|
9
|
+
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,13 +52,22 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
-
description:
|
55
|
+
description: |-
|
56
|
+
This gem is an implementation of the hangman.rb game.
|
57
|
+
Attempt to guess the missing letters correctly.
|
58
|
+
You have a limited number of tries.
|
59
|
+
If you use up all your chances without getting the word correctly,
|
60
|
+
you will be hanged.
|
56
61
|
email:
|
57
62
|
- femi.senjobi@andela.com
|
58
|
-
executables:
|
63
|
+
executables:
|
64
|
+
- hangman
|
65
|
+
- resume
|
66
|
+
- setup
|
59
67
|
extensions: []
|
60
68
|
extra_rdoc_files: []
|
61
69
|
files:
|
70
|
+
- ".coveralls.yml"
|
62
71
|
- ".gitignore"
|
63
72
|
- ".rspec"
|
64
73
|
- ".travis.yml"
|
@@ -67,11 +76,18 @@ files:
|
|
67
76
|
- LICENSE.txt
|
68
77
|
- README.md
|
69
78
|
- Rakefile
|
70
|
-
- bin/
|
79
|
+
- bin/hangman
|
80
|
+
- bin/resume
|
71
81
|
- bin/setup
|
82
|
+
- dictionary.txt
|
72
83
|
- femis_hangman.gemspec
|
73
84
|
- lib/femis_hangman.rb
|
85
|
+
- lib/femis_hangman/game.rb
|
86
|
+
- lib/femis_hangman/message.rb
|
87
|
+
- lib/femis_hangman/router.rb
|
74
88
|
- lib/femis_hangman/version.rb
|
89
|
+
- lib/femis_hangman/word.rb
|
90
|
+
- saved_games.yaml
|
75
91
|
homepage: https://github.com/andela-fsenjobi/femis_hangman
|
76
92
|
licenses:
|
77
93
|
- MIT
|
@@ -96,5 +112,5 @@ rubyforge_project:
|
|
96
112
|
rubygems_version: 2.4.5.1
|
97
113
|
signing_key:
|
98
114
|
specification_version: 4
|
99
|
-
summary:
|
115
|
+
summary: It is a do or die affiar. Get the words right or you'll be hanged
|
100
116
|
test_files: []
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "femis_hangman"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|