tttazures 0.0.2 → 0.0.3
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
- metadata +3 -4
- data/lib/ttt/human_player.rb +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b23ab687c1bc799af2d0c5ab44a32cfce26e9c48
|
4
|
+
data.tar.gz: 034a77bb85997230f5eacec93841188b1a38beee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd4688d7a4845d56fe6b1734c0c00f82a9a123472c5bcb8352e24eca53e43ceb9bba167ab50ffab799e27309c4f4901b720bbd863fbd78e6430a938bf57153c6
|
7
|
+
data.tar.gz: 8c18bb18fae73f01afa0770b79607f74c90481cbd149745498cf15baee5ee1302d8834f08cc7e20096e32802e3014ad6ba4f146139556e3222ff81de4ab96c69
|
metadata
CHANGED
@@ -1,22 +1,21 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tttazures
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Zures
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2013-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Tic Tac Toe Game, 8th Light
|
14
14
|
email: azures@8thlight.com
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
18
|
-
files:
|
19
|
-
- lib/ttt/human_player.rb
|
18
|
+
files: []
|
20
19
|
homepage: http://rubygems.org/gems/tttazures
|
21
20
|
licenses: []
|
22
21
|
metadata: {}
|
data/lib/ttt/human_player.rb
DELETED
@@ -1,17 +0,0 @@
|
|
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
|