sams_tic_tac_toe 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.rubocop.yml +18 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +13 -0
- data/Rakefile +6 -0
- data/bin/play_tic_tac_toe +60 -0
- data/lib/tic_tac_toe/errors/invalid_selection.rb +5 -0
- data/lib/tic_tac_toe/model/board.rb +71 -0
- data/lib/tic_tac_toe/model/board_setup.rb +30 -0
- data/lib/tic_tac_toe/model/game_state.rb +114 -0
- data/lib/tic_tac_toe/model/game_tree.rb +72 -0
- data/lib/tic_tac_toe/model/move.rb +20 -0
- data/lib/tic_tac_toe/model/move_strategy.rb +86 -0
- data/lib/tic_tac_toe/model/piece.rb +15 -0
- data/lib/tic_tac_toe/model/team.rb +29 -0
- data/lib/tic_tac_toe/model/team_collection.rb +25 -0
- data/lib/tic_tac_toe/model/teams_setup.rb +37 -0
- data/lib/tic_tac_toe/model/tile.rb +17 -0
- data/lib/tic_tac_toe/model/tile_collection.rb +165 -0
- data/lib/tic_tac_toe/presenter/board.rb +51 -0
- data/lib/tic_tac_toe/presenter/select_team.rb +21 -0
- data/lib/tic_tac_toe/utils/terminal.rb +19 -0
- data/lib/tic_tac_toe/version.rb +3 -0
- data/lib/tic_tac_toe/view/abstract/base.rb +11 -0
- data/lib/tic_tac_toe/view/board.rb +49 -0
- data/lib/tic_tac_toe/view/game_result.rb +19 -0
- data/lib/tic_tac_toe/view/select_move.rb +39 -0
- data/lib/tic_tac_toe/view/select_team.rb +39 -0
- data/lib/tic_tac_toe.rb +7 -0
- data/tic_tac_toe.gemspec +37 -0
- metadata +163 -0
metadata
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sams_tic_tac_toe
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sam Eckmeier
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-03-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '2.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: factory_bot
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 5.1.1
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 5.1.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 12.3.3
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 12.3.3
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.80.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.80.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: terminal-table
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.8'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.8'
|
97
|
+
description: ''
|
98
|
+
email:
|
99
|
+
- eckmeier41@gmail.com
|
100
|
+
executables:
|
101
|
+
- play_tic_tac_toe
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- ".gitignore"
|
106
|
+
- ".rspec"
|
107
|
+
- ".rubocop.yml"
|
108
|
+
- ".travis.yml"
|
109
|
+
- CODE_OF_CONDUCT.md
|
110
|
+
- Gemfile
|
111
|
+
- LICENSE.txt
|
112
|
+
- README.md
|
113
|
+
- Rakefile
|
114
|
+
- bin/play_tic_tac_toe
|
115
|
+
- lib/tic_tac_toe.rb
|
116
|
+
- lib/tic_tac_toe/errors/invalid_selection.rb
|
117
|
+
- lib/tic_tac_toe/model/board.rb
|
118
|
+
- lib/tic_tac_toe/model/board_setup.rb
|
119
|
+
- lib/tic_tac_toe/model/game_state.rb
|
120
|
+
- lib/tic_tac_toe/model/game_tree.rb
|
121
|
+
- lib/tic_tac_toe/model/move.rb
|
122
|
+
- lib/tic_tac_toe/model/move_strategy.rb
|
123
|
+
- lib/tic_tac_toe/model/piece.rb
|
124
|
+
- lib/tic_tac_toe/model/team.rb
|
125
|
+
- lib/tic_tac_toe/model/team_collection.rb
|
126
|
+
- lib/tic_tac_toe/model/teams_setup.rb
|
127
|
+
- lib/tic_tac_toe/model/tile.rb
|
128
|
+
- lib/tic_tac_toe/model/tile_collection.rb
|
129
|
+
- lib/tic_tac_toe/presenter/board.rb
|
130
|
+
- lib/tic_tac_toe/presenter/select_team.rb
|
131
|
+
- lib/tic_tac_toe/utils/terminal.rb
|
132
|
+
- lib/tic_tac_toe/version.rb
|
133
|
+
- lib/tic_tac_toe/view/abstract/base.rb
|
134
|
+
- lib/tic_tac_toe/view/board.rb
|
135
|
+
- lib/tic_tac_toe/view/game_result.rb
|
136
|
+
- lib/tic_tac_toe/view/select_move.rb
|
137
|
+
- lib/tic_tac_toe/view/select_team.rb
|
138
|
+
- tic_tac_toe.gemspec
|
139
|
+
homepage:
|
140
|
+
licenses:
|
141
|
+
- MIT
|
142
|
+
metadata:
|
143
|
+
allowed_push_host: https://rubygems.org
|
144
|
+
post_install_message:
|
145
|
+
rdoc_options: []
|
146
|
+
require_paths:
|
147
|
+
- lib
|
148
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
|
+
requirements:
|
155
|
+
- - ">="
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
requirements: []
|
159
|
+
rubygems_version: 3.1.2
|
160
|
+
signing_key:
|
161
|
+
specification_version: 4
|
162
|
+
summary: Simple, command line tic tac toe game
|
163
|
+
test_files: []
|