boggle_solver 0.0.4 → 0.0.5

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.
@@ -0,0 +1,4 @@
1
+ require 'rubygems'
2
+ require 'rubygems/package_task'
3
+ spec = eval(File.read('boggle_solver.gemspec'))
4
+ Gem::PackageTask.new(spec) do |pkg| end
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
  # Introduction
7
7
  Boggle Master consists of a 5x5 grid of letters. The goal of the game is to make as many words as possible from this grid by connecting neighboring letters. To generate a random puzzle the game uses 25 dice with letters on each side. The dice are shaken and each fall into a slot in the grid."
8
8
  s.requirements = "[ 'An installed dictionary (most Unix systems have one)']"
9
- s.version = "0.0.4"
9
+ s.version = "0.0.5"
10
10
  s.author = "Casey Robinson"
11
11
  s.email = "kc@rampantmonkey.com"
12
12
  s.homepage = "http://rampantmonkey.com"
@@ -113,6 +113,7 @@ module BoggleSolver
113
113
 
114
114
  @words.uniq!
115
115
  @words.sort_by!{|item| item.length}
116
+ @words = @words.drop_while{|w| w.length < 3}
116
117
  end
117
118
 
118
119
  def depth_first_search(offset=0)
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: boggle_solver
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4
5
+ version: 0.0.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Casey Robinson
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-15 00:00:00.000000000Z
12
+ date: 2012-05-26 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: ! 'Ruby program that employs graph theory to solve a word matrix puzzle
15
15
  (Boggle).
@@ -28,15 +28,13 @@ extensions: []
28
28
  extra_rdoc_files: []
29
29
  files:
30
30
  - boggle_solver.gemspec
31
+ - Rakefile
31
32
  - README.markdown
32
33
  - bin/boggle_solver
33
34
  - lib/boggle_solver/adjacency_matrix.rb
34
35
  - lib/boggle_solver/board.rb
35
36
  - lib/boggle_solver/options.rb
36
37
  - lib/boggle_solver/runner.rb
37
- - pkg/boggle_solver-0.0.1.gem
38
- - pkg/boggle_solver-0.0.2.gem
39
- - pkg/boggle_solver-0.0.3.gem
40
38
  - test/test_adjacency_matrix.rb
41
39
  - test/test_board.rb
42
40
  - test/test_options.rb
Binary file
Binary file
Binary file