hanoi-jane 0.1.3 → 0.1.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 47d9df7d5b1ffc9aa528c0ba12d240f80cba1510
4
- data.tar.gz: 81ff470bb63ad572dbf2ee7ab13153f525840f10
3
+ metadata.gz: 332fd131e22d58d5814474ce82ec8e3dcf024e45
4
+ data.tar.gz: 826b3da67992715185f25fbaa9910433af4711d4
5
5
  SHA512:
6
- metadata.gz: 4da053bdfbc0609ecf648af02b3a0886eb41676048a0151698d89fb4454146498fd6364c385ce342c123e92802f991e12cab2de5021e4942da956fc2e52b3cbb
7
- data.tar.gz: e06a740452bf824d5c861954bf55fca93850932cd1be40d8dbd0cd6effc53a18185129545a0afdb8b8fd7d7d4ce121d8dc77c93ca3d2141326d8ed12386e605c
6
+ metadata.gz: f1309697bc6ec42d16e1a69d511d2452e83ee653bb9c0b65aca069b3bca49fb95610b1265ba5fc5419ae8eca40306bbde2ea31396c606d88b013446325b48e1f
7
+ data.tar.gz: f5b481d155f881aec7d09c8bb7b78ead832c3509a85d13e3561968bd2febc2aac121948975540c1b073b4d95e47f6aac3a8a68f689b855fe93ed63dacd581f87
data/README.md CHANGED
@@ -45,17 +45,17 @@ end
45
45
  which will give you:
46
46
 
47
47
  ```ruby
48
- {:stacks=>[[1, 0], [], []], :moves=>0, :flipped=>nil, :ternary=>'00'}
49
- {:stacks=>[[1], [0], []], :moves=>1, :flipped=>0, :ternary=>'01'}
50
- {:stacks=>[[1], [], [0]], :moves=>2, :flipped=>0, :ternary=>'02'}
51
- {:stacks=>[[], [1], [0]], :moves=>3, :flipped=>1, :ternary=>'10'}
52
- {:stacks=>[[], [1, 0], []], :moves=>4, :flipped=>0, :ternary=>'11'}
53
- {:stacks=>[[0], [1], []], :moves=>5, :flipped=>0, :ternary=>'12'}
54
- {:stacks=>[[0], [], [1]], :moves=>6, :flipped=>1, :ternary=>'20'}
55
- {:stacks=>[[], [0], [1]], :moves=>7, :flipped=>0, :ternary=>'21'}
56
- {:stacks=>[[], [], [1, 0]], :moves=>8, :flipped=>0, :ternary=>'22'}
48
+ {:stacks=>[[1, 0], [], []], :moves=>0, :moved=>nil, :ternary=>'00'}
49
+ {:stacks=>[[1], [0], []], :moves=>1, :moved=>0, :ternary=>'01'}
50
+ {:stacks=>[[1], [], [0]], :moves=>2, :moved=>0, :ternary=>'02'}
51
+ {:stacks=>[[], [1], [0]], :moves=>3, :moved=>1, :ternary=>'10'}
52
+ {:stacks=>[[], [1, 0], []], :moves=>4, :moved=>0, :ternary=>'11'}
53
+ {:stacks=>[[0], [1], []], :moves=>5, :moved=>0, :ternary=>'12'}
54
+ {:stacks=>[[0], [], [1]], :moves=>6, :moved=>1, :ternary=>'20'}
55
+ {:stacks=>[[], [0], [1]], :moves=>7, :moved=>0, :ternary=>'21'}
56
+ {:stacks=>[[], [], [1, 0]], :moves=>8, :moved=>0, :ternary=>'22'}
57
57
  ```
58
- where `flipped` is the disc that was moved last
58
+ where `moved` is the disc that was moved last
59
59
 
60
60
  ## pHAT
61
61
 
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ['sam.pikesley@gmail.com']
11
11
 
12
12
  spec.summary = %q{Solve the Towers of Hanoi}
13
- spec.description = %q{by counting in base 2 or 3}
13
+ spec.description = %q{Solve the Towers of Hanoi by counting in base 2 or 3}
14
14
  spec.homepage = 'http://sam.pikesley.org/projects/hanoi-jane/'
15
15
  spec.license = 'MIT'
16
16
 
@@ -31,7 +31,7 @@ module Hanoi
31
31
  stacks: @stacks,
32
32
  moves: @total,
33
33
  binary: rebased,
34
- flipped: @disc
34
+ moved: @disc
35
35
  }
36
36
  end
37
37
 
@@ -1,5 +1,5 @@
1
1
  module Hanoi
2
2
  module Jane
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanoi-jane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0.15'
125
- description: by counting in base 2 or 3
125
+ description: Solve the Towers of Hanoi by counting in base 2 or 3
126
126
  email:
127
127
  - sam.pikesley@gmail.com
128
128
  executables: