tttazures 0.0.0 → 0.0.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.
Files changed (4) hide show
  1. checksums.yaml +6 -14
  2. data/lib/ttt/human_player.rb +17 -0
  3. metadata +6 -6
  4. data/lib/hola.rb +0 -5
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NjhmMTM4NzhhZmJmNDRlZTNkODk4NTM0YjA5OTgxMjg5NzkyNTJkYw==
5
- data.tar.gz: !binary |-
6
- YTcyNGM3ODA5OWUwNDEyN2U1YmE4MTZiNzFmZmI2YWE5ODRlOTA0OQ==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- NzE5ZjdkMWEwZTE3MTM0ODI5OGFiYjIxY2I1ODc5NzU1Nzg5MGM4ZTIzNTA5
10
- NWQ2N2ZlZTRhZmFhZjMwNjJhM2RhOTUwYjI2OWRhZGE5NjQzNTZhY2Y0NTgw
11
- NTY0MDc2Njk0NmUyY2ZkM2UzZmE3OTAzZjc3NWRhZjhmM2U3ZGI=
12
- data.tar.gz: !binary |-
13
- ZTY4M2U3YmMwY2Y3MTc5MDM0NjAzYmYzNjFmOWFhNDI4ZjkzNmFlNThiY2I0
14
- MDEzOGUyMGU5MGVmODJiMTliZTc5YzQ0NmZjYmEyNmMxODI2MzAwZmUyOWVk
15
- YjQ4YmFmMGMxYWFjYTZiNjA1MmYxOTVmY2Y0N2YyOTI2MTAwMDY=
2
+ SHA1:
3
+ metadata.gz: 2b6a8f4a22ab2ebd7912e777a599d04ce1e27586
4
+ data.tar.gz: 8c0514ada37ce4333f78216be6f6e3ff99aab08e
5
+ SHA512:
6
+ metadata.gz: 6a152e775f26a539ac21536c30e68c2f2cf4a4a3356c173a42102ce31136434f246ee44dd8e08092abff615cea7b49de8e37f26b9cb265f95a021b9be5ca52e1
7
+ data.tar.gz: ad8f4f80a2b73ba5659608a08f69da9a78ca6d4319d3b1683f84724c37107d33c4f1bb94a26400cfc7fbae472f11df44aa96e21db050f4ae4cd2f1535f91fa1e
@@ -0,0 +1,17 @@
1
+ class HumanPlayer
2
+
3
+ attr_reader :player
4
+
5
+ def initialize player, console
6
+ @console = console
7
+ @player = player
8
+ end
9
+
10
+ def make_move board
11
+ valid_choice = false
12
+ while !valid_choice
13
+ choice = @console.query_user_for_choice(@player)
14
+ valid_choice = board.record_choice(choice, @player)
15
+ end
16
+ end
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tttazures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Quaranto
@@ -16,7 +16,7 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
- - lib/hola.rb
19
+ - lib/ttt/human_player.rb
20
20
  homepage: http://rubygems.org/gems/hola
21
21
  licenses: []
22
22
  metadata: {}
@@ -26,18 +26,18 @@ require_paths:
26
26
  - lib
27
27
  required_ruby_version: !ruby/object:Gem::Requirement
28
28
  requirements:
29
- - - ! '>='
29
+ - - '>='
30
30
  - !ruby/object:Gem::Version
31
31
  version: '0'
32
32
  required_rubygems_version: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ! '>='
34
+ - - '>='
35
35
  - !ruby/object:Gem::Version
36
36
  version: '0'
37
37
  requirements: []
38
38
  rubyforge_project:
39
- rubygems_version: 2.0.5
39
+ rubygems_version: 2.0.3
40
40
  signing_key:
41
41
  specification_version: 4
42
- summary: ttt
42
+ summary: tttazures
43
43
  test_files: []
data/lib/hola.rb DELETED
@@ -1,5 +0,0 @@
1
- class Hola
2
- def self.hi
3
- puts "Hello world!"
4
- end
5
- end