fiveinarow 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/fiveinarow.iml +51 -54
- data/.idea/workspace.xml +223 -197
- data/bin/fiveinarow +22 -0
- data/fiveinarow-0.1.1.gem +0 -0
- data/fiveinarow.gemspec +3 -2
- data/lib/fiveinarow.rb +11 -10
- data/lib/fiveinarow/board.rb +7 -6
- data/lib/fiveinarow/cell.rb +0 -1
- data/lib/fiveinarow/version.rb +1 -1
- metadata +20 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bb7f73aabb6e96c90d4f745fc678956eadf4cd3
|
4
|
+
data.tar.gz: d3d2cd0325e57b07dbb88c6186ac421fdf649bec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c33d8a49eed5a72ec55c83a731360cc1a913f9fa5051950ee2223421503eac8aa7a4b9322849f9e37be86d3dcf194a59481e2400d34f0cfe4eea9021452d37a
|
7
|
+
data.tar.gz: 47f17dc4637720361777bf8385a81072ead4b214dc9e00c61e47470df7f3b6090c039573430c802e3c61a4be229e30a51b6f3b6c6c1d692b7dd9fe83ef571656
|
data/.idea/fiveinarow.iml
CHANGED
@@ -29,25 +29,6 @@
|
|
29
29
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
30
30
|
<method />
|
31
31
|
</configuration>
|
32
|
-
<configuration default="false" name="fiveinarow (1)" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
33
|
-
<module name="fiveinarow" />
|
34
|
-
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
35
|
-
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib" />
|
36
|
-
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
37
|
-
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
38
|
-
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
39
|
-
<envs />
|
40
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
41
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
42
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
43
|
-
<COVERAGE_PATTERN ENABLED="true">
|
44
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
45
|
-
</COVERAGE_PATTERN>
|
46
|
-
</EXTENSION>
|
47
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/fiveinarow.rb" />
|
48
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
49
|
-
<method />
|
50
|
-
</configuration>
|
51
32
|
<configuration default="false" name="Run spec 'cell_spec': fiveinarow" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
52
33
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
53
34
|
<module name="fiveinarow" />
|
@@ -81,17 +62,14 @@
|
|
81
62
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
82
63
|
<method />
|
83
64
|
</configuration>
|
84
|
-
<configuration default="false" name="
|
85
|
-
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
65
|
+
<configuration default="false" name="spec_helper" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
86
66
|
<module name="fiveinarow" />
|
87
|
-
<
|
88
|
-
<
|
89
|
-
<
|
90
|
-
<
|
91
|
-
<
|
92
|
-
<envs
|
93
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
94
|
-
</envs>
|
67
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
68
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/test/spec" />
|
69
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
70
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
71
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
72
|
+
<envs />
|
95
73
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
96
74
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
97
75
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
@@ -99,25 +77,37 @@
|
|
99
77
|
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
100
78
|
</COVERAGE_PATTERN>
|
101
79
|
</EXTENSION>
|
102
|
-
<
|
103
|
-
<
|
104
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/{*_test,test_*}.rb" />
|
105
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
106
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
|
107
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
108
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
109
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
110
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
80
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/test/spec/spec_helper.rb" />
|
81
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
111
82
|
<method />
|
112
83
|
</configuration>
|
113
|
-
<configuration default="false" name="
|
114
|
-
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
84
|
+
<configuration default="false" name="fiveinarow (1)" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
115
85
|
<module name="fiveinarow" />
|
116
|
-
<
|
117
|
-
<
|
118
|
-
<
|
119
|
-
<
|
120
|
-
<
|
86
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
87
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/bin" />
|
88
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
89
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
90
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
91
|
+
<envs />
|
92
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
93
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
94
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
95
|
+
<COVERAGE_PATTERN ENABLED="true">
|
96
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
97
|
+
</COVERAGE_PATTERN>
|
98
|
+
</EXTENSION>
|
99
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/bin/fiveinarow" />
|
100
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
101
|
+
<method />
|
102
|
+
</configuration>
|
103
|
+
<configuration default="false" name="All specs in test: fiveinarow" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
104
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
105
|
+
<module name="fiveinarow" />
|
106
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
107
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$/test" />
|
108
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
109
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
110
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
121
111
|
<envs>
|
122
112
|
<env name="JRUBY_OPTS" value="-X+O" />
|
123
113
|
</envs>
|
@@ -128,15 +118,19 @@
|
|
128
118
|
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
129
119
|
</COVERAGE_PATTERN>
|
130
120
|
</EXTENSION>
|
131
|
-
<
|
132
|
-
<
|
133
|
-
<
|
134
|
-
<
|
135
|
-
<
|
136
|
-
<
|
137
|
-
<
|
138
|
-
<
|
139
|
-
<
|
121
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="$MODULE_DIR$/test" />
|
122
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
123
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
124
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
125
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
126
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
|
127
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
128
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
129
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
130
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
131
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
132
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
133
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
140
134
|
<method />
|
141
135
|
</configuration>
|
142
136
|
</component>
|
@@ -149,9 +143,12 @@
|
|
149
143
|
<orderEntry type="jdk" jdkName="RVM: ruby-2.2.1" jdkType="RUBY_SDK" />
|
150
144
|
<orderEntry type="sourceFolder" forTests="false" />
|
151
145
|
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.11.2, RVM: ruby-2.2.1) [gem]" level="application" />
|
146
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.2.1) [gem]" level="application" />
|
152
147
|
<orderEntry type="library" scope="PROVIDED" name="gosu (v0.10.5, RVM: ruby-2.2.1) [gem]" level="application" />
|
153
148
|
<orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.2.1) [gem]" level="application" />
|
154
149
|
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.4.1, RVM: ruby-2.2.1) [gem]" level="application" />
|
150
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.4.0, RVM: ruby-2.2.1) [gem]" level="application" />
|
151
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.4.0, RVM: ruby-2.2.1) [gem]" level="application" />
|
155
152
|
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.4.1, RVM: ruby-2.2.1) [gem]" level="application" />
|
156
153
|
</component>
|
157
154
|
</module>
|
data/.idea/workspace.xml
CHANGED
@@ -2,13 +2,16 @@
|
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
4
|
<list default="true" id="9c21da58-0921-4f3c-9ae6-f0ca52a10178" name="Default" comment="">
|
5
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/
|
6
|
-
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/test/spec/spec_helper.rb" />
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/fiveinarow" />
|
7
6
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/fiveinarow.iml" afterPath="$PROJECT_DIR$/.idea/fiveinarow.iml" />
|
8
7
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
9
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/CODE_OF_CONDUCT.md" afterPath="$PROJECT_DIR$/CODE_OF_CONDUCT.md" />
|
10
8
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/fiveinarow.gemspec" afterPath="$PROJECT_DIR$/fiveinarow.gemspec" />
|
9
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/fiveinarow.rb" afterPath="$PROJECT_DIR$/lib/fiveinarow.rb" />
|
10
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/fiveinarow/board.rb" afterPath="$PROJECT_DIR$/lib/fiveinarow/board.rb" />
|
11
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/fiveinarow/cell.rb" afterPath="$PROJECT_DIR$/lib/fiveinarow/cell.rb" />
|
11
12
|
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/fiveinarow/version.rb" afterPath="$PROJECT_DIR$/lib/fiveinarow/version.rb" />
|
13
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/test/spec/cell_spec.rb" afterPath="$PROJECT_DIR$/test/spec/cell_spec.rb" />
|
14
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/test/spec/spec_helper.rb" afterPath="$PROJECT_DIR$/test/spec/spec_helper.rb" />
|
12
15
|
</list>
|
13
16
|
<ignored path="fiveinarow.iws" />
|
14
17
|
<ignored path=".idea/workspace.xml" />
|
@@ -22,11 +25,13 @@
|
|
22
25
|
</component>
|
23
26
|
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
24
27
|
<component name="CoverageDataManager">
|
25
|
-
<SUITE FILE_PATH="coverage/fiveinarow@Run_spec__cell_spec___fiveinarow.coverage" NAME="Run spec 'cell_spec': fiveinarow Coverage Results" MODIFIED="
|
28
|
+
<SUITE FILE_PATH="coverage/fiveinarow@Run_spec__cell_spec___fiveinarow.coverage" NAME="Run spec 'cell_spec': fiveinarow Coverage Results" MODIFIED="1453645125597" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" MODULE_NAME="fiveinarow" />
|
26
29
|
<SUITE FILE_PATH="coverage/fiveinarow@All_tests_in_test__fiveinarow.coverage" NAME="All tests in test: fiveinarow Coverage Results" MODIFIED="1453642719868" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" MODULE_NAME="fiveinarow" />
|
27
|
-
<SUITE FILE_PATH="coverage/fiveinarow@fiveinarow__1_.coverage" NAME="fiveinarow (1) Coverage Results" MODIFIED="
|
28
|
-
<SUITE FILE_PATH="coverage/fiveinarow@fiveinarow.coverage" NAME="fiveinarow Coverage Results" MODIFIED="
|
29
|
-
<SUITE FILE_PATH="coverage/fiveinarow@
|
30
|
+
<SUITE FILE_PATH="coverage/fiveinarow@fiveinarow__1_.coverage" NAME="fiveinarow (1) Coverage Results" MODIFIED="1453712131045" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/bin" MODULE_NAME="fiveinarow" />
|
31
|
+
<SUITE FILE_PATH="coverage/fiveinarow@fiveinarow.coverage" NAME="fiveinarow Coverage Results" MODIFIED="1453647870002" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib" MODULE_NAME="fiveinarow" />
|
32
|
+
<SUITE FILE_PATH="coverage/fiveinarow@All_specs_in_test__fiveinarow.coverage" NAME="All specs in test: fiveinarow Coverage Results" MODIFIED="1453711697274" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" MODULE_NAME="fiveinarow" />
|
33
|
+
<SUITE FILE_PATH="coverage/fiveinarow@All_tests_in_spec__fiveinarow.coverage" NAME="All tests in spec: fiveinarow Coverage Results" MODIFIED="1453645079622" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test/spec" MODULE_NAME="fiveinarow" />
|
34
|
+
<SUITE FILE_PATH="coverage/fiveinarow@spec_helper.coverage" NAME="spec_helper Coverage Results" MODIFIED="1453645109854" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test/spec" MODULE_NAME="fiveinarow" />
|
30
35
|
</component>
|
31
36
|
<component name="CreatePatchCommitExecutor">
|
32
37
|
<option name="PATCH_PATH" value="" />
|
@@ -37,113 +42,101 @@
|
|
37
42
|
</component>
|
38
43
|
<component name="FileEditorManager">
|
39
44
|
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
40
|
-
<file leaf-file-name="
|
41
|
-
<entry file="file://$PROJECT_DIR$/
|
42
|
-
<provider selected="true" editor-type-id="
|
43
|
-
<state
|
44
|
-
<
|
45
|
-
|
46
|
-
<folding />
|
47
|
-
</first_editor>
|
48
|
-
<second_editor />
|
45
|
+
<file leaf-file-name="fiveinarow.rb" pinned="false" current-in-tab="true">
|
46
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow.rb">
|
47
|
+
<provider selected="true" editor-type-id="text-editor">
|
48
|
+
<state vertical-scroll-proportion="0.45560747">
|
49
|
+
<caret line="13" column="42" selection-start-line="13" selection-start-column="42" selection-end-line="13" selection-end-column="42" />
|
50
|
+
<folding />
|
49
51
|
</state>
|
50
52
|
</provider>
|
51
|
-
<provider editor-type-id="MultiMarkdownFxPreviewEditor">
|
52
|
-
<state />
|
53
|
-
</provider>
|
54
53
|
</entry>
|
55
54
|
</file>
|
56
|
-
<file leaf-file-name="
|
57
|
-
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/
|
55
|
+
<file leaf-file-name="generic_player.rb" pinned="false" current-in-tab="false">
|
56
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/generic_player.rb">
|
58
57
|
<provider selected="true" editor-type-id="text-editor">
|
59
58
|
<state vertical-scroll-proportion="0.0">
|
60
|
-
<caret line="
|
59
|
+
<caret line="7" column="3" selection-start-line="7" selection-start-column="3" selection-end-line="7" selection-end-column="3" />
|
61
60
|
<folding />
|
62
61
|
</state>
|
63
62
|
</provider>
|
64
63
|
</entry>
|
65
64
|
</file>
|
66
|
-
<file leaf-file-name="
|
67
|
-
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/
|
65
|
+
<file leaf-file-name="hotseat_player.rb" pinned="false" current-in-tab="false">
|
66
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/hotseat_player.rb">
|
68
67
|
<provider selected="true" editor-type-id="text-editor">
|
69
68
|
<state vertical-scroll-proportion="0.0">
|
70
|
-
<caret line="
|
69
|
+
<caret line="3" column="3" selection-start-line="3" selection-start-column="3" selection-end-line="3" selection-end-column="3" />
|
71
70
|
<folding />
|
72
71
|
</state>
|
73
72
|
</provider>
|
74
73
|
</entry>
|
75
74
|
</file>
|
76
|
-
<file leaf-file-name="
|
77
|
-
<entry file="file://$PROJECT_DIR$/
|
75
|
+
<file leaf-file-name="console" pinned="false" current-in-tab="false">
|
76
|
+
<entry file="file://$PROJECT_DIR$/bin/console">
|
78
77
|
<provider selected="true" editor-type-id="text-editor">
|
79
78
|
<state vertical-scroll-proportion="0.0">
|
80
|
-
<caret line="
|
79
|
+
<caret line="2" column="0" selection-start-line="2" selection-start-column="0" selection-end-line="2" selection-end-column="23" />
|
81
80
|
<folding />
|
82
81
|
</state>
|
83
82
|
</provider>
|
84
83
|
</entry>
|
85
84
|
</file>
|
86
|
-
<file leaf-file-name="
|
87
|
-
<entry file="file://$PROJECT_DIR$/
|
88
|
-
<provider selected="true" editor-type-id="
|
89
|
-
<state
|
90
|
-
<
|
91
|
-
|
92
|
-
<folding />
|
93
|
-
</first_editor>
|
94
|
-
<second_editor />
|
85
|
+
<file leaf-file-name="fiveinarow" pinned="false" current-in-tab="false">
|
86
|
+
<entry file="file://$PROJECT_DIR$/bin/fiveinarow">
|
87
|
+
<provider selected="true" editor-type-id="text-editor">
|
88
|
+
<state vertical-scroll-proportion="0.0">
|
89
|
+
<caret line="15" column="6" selection-start-line="15" selection-start-column="6" selection-end-line="15" selection-end-column="6" />
|
90
|
+
<folding />
|
95
91
|
</state>
|
96
92
|
</provider>
|
97
|
-
<provider editor-type-id="MultiMarkdownFxPreviewEditor">
|
98
|
-
<state />
|
99
|
-
</provider>
|
100
93
|
</entry>
|
101
94
|
</file>
|
102
|
-
<file leaf-file-name="
|
103
|
-
<entry file="file://$PROJECT_DIR$/
|
95
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
|
96
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/version.rb">
|
104
97
|
<provider selected="true" editor-type-id="text-editor">
|
105
98
|
<state vertical-scroll-proportion="0.0">
|
106
|
-
<caret line="
|
99
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
107
100
|
<folding />
|
108
101
|
</state>
|
109
102
|
</provider>
|
110
103
|
</entry>
|
111
104
|
</file>
|
112
|
-
<file leaf-file-name="cell_spec.rb" pinned="false" current-in-tab="
|
105
|
+
<file leaf-file-name="cell_spec.rb" pinned="false" current-in-tab="false">
|
113
106
|
<entry file="file://$PROJECT_DIR$/test/spec/cell_spec.rb">
|
114
107
|
<provider selected="true" editor-type-id="text-editor">
|
115
|
-
<state vertical-scroll-proportion="0.
|
116
|
-
<caret line="
|
108
|
+
<state vertical-scroll-proportion="0.0">
|
109
|
+
<caret line="20" column="3" selection-start-line="20" selection-start-column="3" selection-end-line="20" selection-end-column="3" />
|
117
110
|
<folding />
|
118
111
|
</state>
|
119
112
|
</provider>
|
120
113
|
</entry>
|
121
114
|
</file>
|
122
|
-
<file leaf-file-name="
|
123
|
-
<entry file="file://$PROJECT_DIR$/
|
115
|
+
<file leaf-file-name="board.rb" pinned="false" current-in-tab="false">
|
116
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/board.rb">
|
124
117
|
<provider selected="true" editor-type-id="text-editor">
|
125
118
|
<state vertical-scroll-proportion="0.0">
|
126
|
-
<caret line="
|
119
|
+
<caret line="10" column="0" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
|
127
120
|
<folding />
|
128
121
|
</state>
|
129
122
|
</provider>
|
130
123
|
</entry>
|
131
124
|
</file>
|
132
|
-
<file leaf-file-name="
|
133
|
-
<entry file="file://$PROJECT_DIR$/
|
125
|
+
<file leaf-file-name="fiveinarow.gemspec" pinned="false" current-in-tab="false">
|
126
|
+
<entry file="file://$PROJECT_DIR$/fiveinarow.gemspec">
|
134
127
|
<provider selected="true" editor-type-id="text-editor">
|
135
128
|
<state vertical-scroll-proportion="0.0">
|
136
|
-
<caret line="
|
129
|
+
<caret line="35" column="0" selection-start-line="35" selection-start-column="0" selection-end-line="35" selection-end-column="0" />
|
137
130
|
<folding />
|
138
131
|
</state>
|
139
132
|
</provider>
|
140
133
|
</entry>
|
141
134
|
</file>
|
142
|
-
<file leaf-file-name="
|
143
|
-
<entry file="file://$PROJECT_DIR$/
|
135
|
+
<file leaf-file-name="cell.rb" pinned="false" current-in-tab="false">
|
136
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/cell.rb">
|
144
137
|
<provider selected="true" editor-type-id="text-editor">
|
145
138
|
<state vertical-scroll-proportion="0.0">
|
146
|
-
<caret line="
|
139
|
+
<caret line="15" column="12" selection-start-line="15" selection-start-column="12" selection-end-line="15" selection-end-column="12" />
|
147
140
|
<folding />
|
148
141
|
</state>
|
149
142
|
</provider>
|
@@ -165,19 +158,20 @@
|
|
165
158
|
<component name="IdeDocumentHistory">
|
166
159
|
<option name="CHANGED_PATHS">
|
167
160
|
<list>
|
168
|
-
<option value="$PROJECT_DIR$/lib/fiveinarow/cell.rb" />
|
169
161
|
<option value="$PROJECT_DIR$/lib/fiveinarow/generic_player.rb" />
|
170
162
|
<option value="$PROJECT_DIR$/lib/fiveinarow/hotseat_player.rb" />
|
171
163
|
<option value="$PROJECT_DIR$/lib/fiveinarow/ai_player.rb" />
|
172
164
|
<option value="$PROJECT_DIR$/lib/fiveinarow/z_order.rb" />
|
173
|
-
<option value="$PROJECT_DIR$/lib/fiveinarow.rb" />
|
174
|
-
<option value="$PROJECT_DIR$/lib/fiveinarow/board.rb" />
|
175
165
|
<option value="$PROJECT_DIR$/README.md" />
|
176
|
-
<option value="$PROJECT_DIR$/lib/fiveinarow/version.rb" />
|
177
166
|
<option value="$PROJECT_DIR$/CODE_OF_CONDUCT.md" />
|
178
|
-
<option value="$PROJECT_DIR$/fiveinarow.gemspec" />
|
179
167
|
<option value="$PROJECT_DIR$/test/spec/spec_helper.rb" />
|
168
|
+
<option value="$PROJECT_DIR$/lib/fiveinarow/version.rb" />
|
169
|
+
<option value="$PROJECT_DIR$/lib/fiveinarow/cell.rb" />
|
180
170
|
<option value="$PROJECT_DIR$/test/spec/cell_spec.rb" />
|
171
|
+
<option value="$PROJECT_DIR$/bin/fiveinarow" />
|
172
|
+
<option value="$PROJECT_DIR$/lib/fiveinarow/board.rb" />
|
173
|
+
<option value="$PROJECT_DIR$/fiveinarow.gemspec" />
|
174
|
+
<option value="$PROJECT_DIR$/lib/fiveinarow.rb" />
|
181
175
|
</list>
|
182
176
|
</option>
|
183
177
|
</component>
|
@@ -285,6 +279,20 @@
|
|
285
279
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
286
280
|
</PATH_ELEMENT>
|
287
281
|
</PATH>
|
282
|
+
<PATH>
|
283
|
+
<PATH_ELEMENT>
|
284
|
+
<option name="myItemId" value="fiveinarow" />
|
285
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
286
|
+
</PATH_ELEMENT>
|
287
|
+
<PATH_ELEMENT>
|
288
|
+
<option name="myItemId" value="fiveinarow" />
|
289
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
290
|
+
</PATH_ELEMENT>
|
291
|
+
<PATH_ELEMENT>
|
292
|
+
<option name="myItemId" value="bin" />
|
293
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
294
|
+
</PATH_ELEMENT>
|
295
|
+
</PATH>
|
288
296
|
</subPane>
|
289
297
|
</pane>
|
290
298
|
<pane id="Scope" />
|
@@ -296,7 +304,7 @@
|
|
296
304
|
<property name="settings.editor.selected.configurable" value="preferences.keymap" />
|
297
305
|
<property name="settings.editor.splitter.proportion" value="0.2" />
|
298
306
|
</component>
|
299
|
-
<component name="RunManager" selected="Ruby.fiveinarow">
|
307
|
+
<component name="RunManager" selected="Ruby.fiveinarow (1)">
|
300
308
|
<configuration default="false" name="fiveinarow" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
301
309
|
<module name="fiveinarow" />
|
302
310
|
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -316,25 +324,6 @@
|
|
316
324
|
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
317
325
|
<method />
|
318
326
|
</configuration>
|
319
|
-
<configuration default="false" name="fiveinarow (1)" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
320
|
-
<module name="fiveinarow" />
|
321
|
-
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
322
|
-
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib" />
|
323
|
-
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
324
|
-
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
325
|
-
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
326
|
-
<envs />
|
327
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
328
|
-
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
329
|
-
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
330
|
-
<COVERAGE_PATTERN ENABLED="true">
|
331
|
-
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
332
|
-
</COVERAGE_PATTERN>
|
333
|
-
</EXTENSION>
|
334
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/fiveinarow.rb" />
|
335
|
-
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
336
|
-
<method />
|
337
|
-
</configuration>
|
338
327
|
<configuration default="false" name="Run spec 'cell_spec': fiveinarow" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
339
328
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
340
329
|
<module name="fiveinarow" />
|
@@ -368,17 +357,14 @@
|
|
368
357
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
369
358
|
<method />
|
370
359
|
</configuration>
|
371
|
-
<configuration default="false" name="
|
372
|
-
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
360
|
+
<configuration default="false" name="spec_helper" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
373
361
|
<module name="fiveinarow" />
|
374
|
-
<
|
375
|
-
<
|
376
|
-
<
|
377
|
-
<
|
378
|
-
<
|
379
|
-
<envs
|
380
|
-
<env name="JRUBY_OPTS" value="-X+O" />
|
381
|
-
</envs>
|
362
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
363
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/test/spec" />
|
364
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
365
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
366
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
367
|
+
<envs />
|
382
368
|
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
383
369
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
384
370
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
@@ -386,25 +372,37 @@
|
|
386
372
|
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
387
373
|
</COVERAGE_PATTERN>
|
388
374
|
</EXTENSION>
|
389
|
-
<
|
390
|
-
<
|
391
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/{*_test,test_*}.rb" />
|
392
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
393
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
|
394
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
395
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
396
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
397
|
-
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
375
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/test/spec/spec_helper.rb" />
|
376
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
398
377
|
<method />
|
399
378
|
</configuration>
|
400
|
-
<configuration default="false" name="
|
401
|
-
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
379
|
+
<configuration default="false" name="fiveinarow (1)" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
402
380
|
<module name="fiveinarow" />
|
403
|
-
<
|
404
|
-
<
|
405
|
-
<
|
406
|
-
<
|
407
|
-
<
|
381
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
382
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/bin" />
|
383
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
384
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
385
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
386
|
+
<envs />
|
387
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
388
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
389
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
390
|
+
<COVERAGE_PATTERN ENABLED="true">
|
391
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
392
|
+
</COVERAGE_PATTERN>
|
393
|
+
</EXTENSION>
|
394
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/bin/fiveinarow" />
|
395
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
396
|
+
<method />
|
397
|
+
</configuration>
|
398
|
+
<configuration default="false" name="All specs in test: fiveinarow" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
399
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
400
|
+
<module name="fiveinarow" />
|
401
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
402
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$/test" />
|
403
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
404
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
405
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
408
406
|
<envs>
|
409
407
|
<env name="JRUBY_OPTS" value="-X+O" />
|
410
408
|
</envs>
|
@@ -415,15 +413,19 @@
|
|
415
413
|
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
416
414
|
</COVERAGE_PATTERN>
|
417
415
|
</EXTENSION>
|
418
|
-
<
|
419
|
-
<
|
420
|
-
<
|
421
|
-
<
|
422
|
-
<
|
423
|
-
<
|
424
|
-
<
|
425
|
-
<
|
426
|
-
<
|
416
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="$MODULE_DIR$/test" />
|
417
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
418
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
419
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
420
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
421
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="ALL_IN_FOLDER" />
|
422
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
423
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
424
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
425
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
426
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
427
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
428
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
427
429
|
<method />
|
428
430
|
</configuration>
|
429
431
|
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
@@ -556,18 +558,18 @@
|
|
556
558
|
</configuration>
|
557
559
|
<list size="5">
|
558
560
|
<item index="0" class="java.lang.String" itemvalue="Ruby.fiveinarow" />
|
559
|
-
<item index="1" class="java.lang.String" itemvalue="
|
560
|
-
<item index="2" class="java.lang.String" itemvalue="
|
561
|
-
<item index="3" class="java.lang.String" itemvalue="
|
562
|
-
<item index="4" class="java.lang.String" itemvalue="
|
561
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.Run spec 'cell_spec': fiveinarow" />
|
562
|
+
<item index="2" class="java.lang.String" itemvalue="Ruby.spec_helper" />
|
563
|
+
<item index="3" class="java.lang.String" itemvalue="Ruby.fiveinarow (1)" />
|
564
|
+
<item index="4" class="java.lang.String" itemvalue="RSpec.All specs in test: fiveinarow" />
|
563
565
|
</list>
|
564
566
|
<recent_temporary>
|
565
567
|
<list size="5">
|
566
|
-
<item index="0" class="java.lang.String" itemvalue="Ruby.fiveinarow" />
|
567
|
-
<item index="1" class="java.lang.String" itemvalue="RSpec.
|
568
|
-
<item index="2" class="java.lang.String" itemvalue="
|
569
|
-
<item index="3" class="java.lang.String" itemvalue="
|
570
|
-
<item index="4" class="java.lang.String" itemvalue="Ruby.
|
568
|
+
<item index="0" class="java.lang.String" itemvalue="Ruby.fiveinarow (1)" />
|
569
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.All specs in test: fiveinarow" />
|
570
|
+
<item index="2" class="java.lang.String" itemvalue="Ruby.fiveinarow" />
|
571
|
+
<item index="3" class="java.lang.String" itemvalue="RSpec.Run spec 'cell_spec': fiveinarow" />
|
572
|
+
<item index="4" class="java.lang.String" itemvalue="Ruby.spec_helper" />
|
571
573
|
</list>
|
572
574
|
</recent_temporary>
|
573
575
|
</component>
|
@@ -585,34 +587,34 @@
|
|
585
587
|
<servers />
|
586
588
|
</component>
|
587
589
|
<component name="TestHistory">
|
590
|
+
<history-entry file="All_specs_in_test__fiveinarow - 2016.01.25 at 09h 48m 18s.xml">
|
591
|
+
<configuration name="All specs in test: fiveinarow" configurationId="RSpecRunConfigurationType" />
|
592
|
+
</history-entry>
|
588
593
|
<history-entry file="All_tests_in_spec__fiveinarow - 2016.01.24 at 14h 38m 38s.xml">
|
589
594
|
<configuration name="All tests in spec: fiveinarow" configurationId="TestUnitRunConfigurationType" />
|
590
595
|
</history-entry>
|
596
|
+
<history-entry file="All_tests_in_spec__fiveinarow - 2016.01.24 at 15h 18m 01s.xml">
|
597
|
+
<configuration name="All tests in spec: fiveinarow" configurationId="TestUnitRunConfigurationType" />
|
598
|
+
</history-entry>
|
591
599
|
<history-entry file="All_tests_in_test__fiveinarow - 2016.01.24 at 14h 38m 25s.xml">
|
592
600
|
<configuration name="All tests in test: fiveinarow" configurationId="TestUnitRunConfigurationType" />
|
593
601
|
</history-entry>
|
594
602
|
<history-entry file="All_tests_in_test__fiveinarow - 2016.01.24 at 14h 38m 41s.xml">
|
595
603
|
<configuration name="All tests in test: fiveinarow" configurationId="TestUnitRunConfigurationType" />
|
596
604
|
</history-entry>
|
597
|
-
<history-entry file="Run_spec__cell_spec___fiveinarow - 2016.01.24 at 14h
|
598
|
-
<configuration name="Run spec 'cell_spec': fiveinarow" configurationId="RSpecRunConfigurationType" />
|
599
|
-
</history-entry>
|
600
|
-
<history-entry file="Run_spec__cell_spec___fiveinarow - 2016.01.24 at 14h 31m 18s.xml">
|
601
|
-
<configuration name="Run spec 'cell_spec': fiveinarow" configurationId="RSpecRunConfigurationType" />
|
602
|
-
</history-entry>
|
603
|
-
<history-entry file="Run_spec__cell_spec___fiveinarow - 2016.01.24 at 14h 32m 54s.xml">
|
605
|
+
<history-entry file="Run_spec__cell_spec___fiveinarow - 2016.01.24 at 14h 34m 50s.xml">
|
604
606
|
<configuration name="Run spec 'cell_spec': fiveinarow" configurationId="RSpecRunConfigurationType" />
|
605
607
|
</history-entry>
|
606
|
-
<history-entry file="Run_spec__cell_spec___fiveinarow - 2016.01.24 at 14h
|
608
|
+
<history-entry file="Run_spec__cell_spec___fiveinarow - 2016.01.24 at 14h 38m 04s.xml">
|
607
609
|
<configuration name="Run spec 'cell_spec': fiveinarow" configurationId="RSpecRunConfigurationType" />
|
608
610
|
</history-entry>
|
609
|
-
<history-entry file="Run_spec__cell_spec___fiveinarow - 2016.01.24 at 14h
|
611
|
+
<history-entry file="Run_spec__cell_spec___fiveinarow - 2016.01.24 at 14h 38m 59s.xml">
|
610
612
|
<configuration name="Run spec 'cell_spec': fiveinarow" configurationId="RSpecRunConfigurationType" />
|
611
613
|
</history-entry>
|
612
|
-
<history-entry file="Run_spec__cell_spec___fiveinarow - 2016.01.24 at
|
614
|
+
<history-entry file="Run_spec__cell_spec___fiveinarow - 2016.01.24 at 15h 18m 06s.xml">
|
613
615
|
<configuration name="Run spec 'cell_spec': fiveinarow" configurationId="RSpecRunConfigurationType" />
|
614
616
|
</history-entry>
|
615
|
-
<history-entry file="Run_spec__cell_spec___fiveinarow - 2016.01.24 at
|
617
|
+
<history-entry file="Run_spec__cell_spec___fiveinarow - 2016.01.24 at 15h 18m 47s.xml">
|
616
618
|
<configuration name="Run spec 'cell_spec': fiveinarow" configurationId="RSpecRunConfigurationType" />
|
617
619
|
</history-entry>
|
618
620
|
</component>
|
@@ -625,10 +627,10 @@
|
|
625
627
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
626
628
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
627
629
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.14746544" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
628
|
-
<window_info id="Debug" active="
|
629
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
630
|
+
<window_info id="Debug" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.312596" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
631
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32791728" sideWeight="0.4969278" order="2" side_tool="false" content_ui="tabs" />
|
630
632
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
631
|
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
633
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32791728" sideWeight="0.5030722" order="7" side_tool="true" content_ui="tabs" />
|
632
634
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3293944" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
633
635
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
634
636
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
@@ -760,22 +762,6 @@
|
|
760
762
|
</state>
|
761
763
|
</provider>
|
762
764
|
</entry>
|
763
|
-
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/hotseat_player.rb">
|
764
|
-
<provider selected="true" editor-type-id="text-editor">
|
765
|
-
<state vertical-scroll-proportion="0.0">
|
766
|
-
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="33" />
|
767
|
-
<folding />
|
768
|
-
</state>
|
769
|
-
</provider>
|
770
|
-
</entry>
|
771
|
-
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/generic_player.rb">
|
772
|
-
<provider selected="true" editor-type-id="text-editor">
|
773
|
-
<state vertical-scroll-proportion="0.0">
|
774
|
-
<caret line="4" column="14" selection-start-line="4" selection-start-column="14" selection-end-line="4" selection-end-column="14" />
|
775
|
-
<folding />
|
776
|
-
</state>
|
777
|
-
</provider>
|
778
|
-
</entry>
|
779
765
|
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/z_order.rb">
|
780
766
|
<provider selected="true" editor-type-id="text-editor">
|
781
767
|
<state vertical-scroll-proportion="0.0">
|
@@ -784,30 +770,6 @@
|
|
784
770
|
</state>
|
785
771
|
</provider>
|
786
772
|
</entry>
|
787
|
-
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/ai_player.rb">
|
788
|
-
<provider selected="true" editor-type-id="text-editor">
|
789
|
-
<state vertical-scroll-proportion="0.0">
|
790
|
-
<caret line="88" column="25" selection-start-line="88" selection-start-column="25" selection-end-line="88" selection-end-column="25" />
|
791
|
-
<folding />
|
792
|
-
</state>
|
793
|
-
</provider>
|
794
|
-
</entry>
|
795
|
-
<entry file="file://$PROJECT_DIR$/lib/fiveinarow.rb">
|
796
|
-
<provider selected="true" editor-type-id="text-editor">
|
797
|
-
<state vertical-scroll-proportion="0.0">
|
798
|
-
<caret line="59" column="10" selection-start-line="59" selection-start-column="10" selection-end-line="59" selection-end-column="10" />
|
799
|
-
<folding />
|
800
|
-
</state>
|
801
|
-
</provider>
|
802
|
-
</entry>
|
803
|
-
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/board.rb">
|
804
|
-
<provider selected="true" editor-type-id="text-editor">
|
805
|
-
<state vertical-scroll-proportion="0.0">
|
806
|
-
<caret line="93" column="38" selection-start-line="93" selection-start-column="38" selection-end-line="93" selection-end-column="38" />
|
807
|
-
<folding />
|
808
|
-
</state>
|
809
|
-
</provider>
|
810
|
-
</entry>
|
811
773
|
<entry file="file://$PROJECT_DIR$/README.md">
|
812
774
|
<provider selected="true" editor-type-id="split-provider[text-editor;MultiMarkdownPreviewEditor]">
|
813
775
|
<state split_layout="FIRST">
|
@@ -828,14 +790,6 @@
|
|
828
790
|
</state>
|
829
791
|
</provider>
|
830
792
|
</entry>
|
831
|
-
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/version.rb">
|
832
|
-
<provider selected="true" editor-type-id="text-editor">
|
833
|
-
<state vertical-scroll-proportion="0.0">
|
834
|
-
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
835
|
-
<folding />
|
836
|
-
</state>
|
837
|
-
</provider>
|
838
|
-
</entry>
|
839
793
|
<entry file="file://$PROJECT_DIR$/CODE_OF_CONDUCT.md">
|
840
794
|
<provider selected="true" editor-type-id="split-provider[text-editor;MultiMarkdownPreviewEditor]">
|
841
795
|
<state split_layout="FIRST">
|
@@ -864,23 +818,31 @@
|
|
864
818
|
</state>
|
865
819
|
</provider>
|
866
820
|
</entry>
|
867
|
-
<entry file="file://$PROJECT_DIR$/
|
821
|
+
<entry file="file://$PROJECT_DIR$/Gemfile.lock">
|
868
822
|
<provider selected="true" editor-type-id="text-editor">
|
869
823
|
<state vertical-scroll-proportion="0.0">
|
870
|
-
<caret line="
|
824
|
+
<caret line="7" column="0" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
|
871
825
|
<folding />
|
872
826
|
</state>
|
873
827
|
</provider>
|
874
828
|
</entry>
|
875
|
-
<entry file="file://$PROJECT_DIR$/Gemfile
|
829
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
876
830
|
<provider selected="true" editor-type-id="text-editor">
|
877
831
|
<state vertical-scroll-proportion="0.0">
|
878
|
-
<caret line="
|
832
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
879
833
|
<folding />
|
880
834
|
</state>
|
881
835
|
</provider>
|
882
836
|
</entry>
|
883
|
-
<entry file="file://$PROJECT_DIR$/
|
837
|
+
<entry file="file://$PROJECT_DIR$/test/spec/spec_helper.rb">
|
838
|
+
<provider selected="true" editor-type-id="text-editor">
|
839
|
+
<state vertical-scroll-proportion="0.0">
|
840
|
+
<caret line="1" column="15" selection-start-line="1" selection-start-column="15" selection-end-line="1" selection-end-column="15" />
|
841
|
+
<folding />
|
842
|
+
</state>
|
843
|
+
</provider>
|
844
|
+
</entry>
|
845
|
+
<entry file="file://$PROJECT_DIR$/bin/setup">
|
884
846
|
<provider selected="true" editor-type-id="text-editor">
|
885
847
|
<state vertical-scroll-proportion="0.0">
|
886
848
|
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
@@ -888,26 +850,90 @@
|
|
888
850
|
</state>
|
889
851
|
</provider>
|
890
852
|
</entry>
|
891
|
-
<entry file="file://$PROJECT_DIR$/fiveinarow.
|
853
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/ai_player.rb">
|
892
854
|
<provider selected="true" editor-type-id="text-editor">
|
893
855
|
<state vertical-scroll-proportion="0.0">
|
894
|
-
<caret line="
|
856
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
895
857
|
<folding />
|
896
858
|
</state>
|
897
859
|
</provider>
|
898
860
|
</entry>
|
899
|
-
<entry file="file://$PROJECT_DIR$/
|
861
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/cell.rb">
|
862
|
+
<provider selected="true" editor-type-id="text-editor">
|
863
|
+
<state vertical-scroll-proportion="0.0">
|
864
|
+
<caret line="15" column="12" selection-start-line="15" selection-start-column="12" selection-end-line="15" selection-end-column="12" />
|
865
|
+
<folding />
|
866
|
+
</state>
|
867
|
+
</provider>
|
868
|
+
</entry>
|
869
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/generic_player.rb">
|
870
|
+
<provider selected="true" editor-type-id="text-editor">
|
871
|
+
<state vertical-scroll-proportion="0.0">
|
872
|
+
<caret line="7" column="3" selection-start-line="7" selection-start-column="3" selection-end-line="7" selection-end-column="3" />
|
873
|
+
<folding />
|
874
|
+
</state>
|
875
|
+
</provider>
|
876
|
+
</entry>
|
877
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/hotseat_player.rb">
|
878
|
+
<provider selected="true" editor-type-id="text-editor">
|
879
|
+
<state vertical-scroll-proportion="0.0">
|
880
|
+
<caret line="3" column="3" selection-start-line="3" selection-start-column="3" selection-end-line="3" selection-end-column="3" />
|
881
|
+
<folding />
|
882
|
+
</state>
|
883
|
+
</provider>
|
884
|
+
</entry>
|
885
|
+
<entry file="file://$PROJECT_DIR$/bin/console">
|
886
|
+
<provider selected="true" editor-type-id="text-editor">
|
887
|
+
<state vertical-scroll-proportion="0.0">
|
888
|
+
<caret line="2" column="0" selection-start-line="2" selection-start-column="0" selection-end-line="2" selection-end-column="23" />
|
889
|
+
<folding />
|
890
|
+
</state>
|
891
|
+
</provider>
|
892
|
+
</entry>
|
893
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/version.rb">
|
900
894
|
<provider selected="true" editor-type-id="text-editor">
|
901
895
|
<state vertical-scroll-proportion="0.0">
|
902
|
-
<caret line="1" column="
|
896
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
903
897
|
<folding />
|
904
898
|
</state>
|
905
899
|
</provider>
|
906
900
|
</entry>
|
907
901
|
<entry file="file://$PROJECT_DIR$/test/spec/cell_spec.rb">
|
908
902
|
<provider selected="true" editor-type-id="text-editor">
|
909
|
-
<state vertical-scroll-proportion="0.
|
910
|
-
<caret line="
|
903
|
+
<state vertical-scroll-proportion="0.0">
|
904
|
+
<caret line="20" column="3" selection-start-line="20" selection-start-column="3" selection-end-line="20" selection-end-column="3" />
|
905
|
+
<folding />
|
906
|
+
</state>
|
907
|
+
</provider>
|
908
|
+
</entry>
|
909
|
+
<entry file="file://$PROJECT_DIR$/bin/fiveinarow">
|
910
|
+
<provider selected="true" editor-type-id="text-editor">
|
911
|
+
<state vertical-scroll-proportion="0.0">
|
912
|
+
<caret line="15" column="6" selection-start-line="15" selection-start-column="6" selection-end-line="15" selection-end-column="6" />
|
913
|
+
<folding />
|
914
|
+
</state>
|
915
|
+
</provider>
|
916
|
+
</entry>
|
917
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow/board.rb">
|
918
|
+
<provider selected="true" editor-type-id="text-editor">
|
919
|
+
<state vertical-scroll-proportion="0.0">
|
920
|
+
<caret line="10" column="0" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
|
921
|
+
<folding />
|
922
|
+
</state>
|
923
|
+
</provider>
|
924
|
+
</entry>
|
925
|
+
<entry file="file://$PROJECT_DIR$/fiveinarow.gemspec">
|
926
|
+
<provider selected="true" editor-type-id="text-editor">
|
927
|
+
<state vertical-scroll-proportion="0.0">
|
928
|
+
<caret line="35" column="0" selection-start-line="35" selection-start-column="0" selection-end-line="35" selection-end-column="0" />
|
929
|
+
<folding />
|
930
|
+
</state>
|
931
|
+
</provider>
|
932
|
+
</entry>
|
933
|
+
<entry file="file://$PROJECT_DIR$/lib/fiveinarow.rb">
|
934
|
+
<provider selected="true" editor-type-id="text-editor">
|
935
|
+
<state vertical-scroll-proportion="0.45560747">
|
936
|
+
<caret line="13" column="42" selection-start-line="13" selection-start-column="42" selection-end-line="13" selection-end-column="42" />
|
911
937
|
<folding />
|
912
938
|
</state>
|
913
939
|
</provider>
|
data/bin/fiveinarow
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
|
5
|
+
root_dir = File.expand_path(File.join(
|
6
|
+
File.dirname(File.dirname(__FILE__)), '.'))
|
7
|
+
|
8
|
+
%w(
|
9
|
+
lib/fiveinarow/ai_player.rb
|
10
|
+
lib/fiveinarow/board.rb
|
11
|
+
lib/fiveinarow/cell.rb
|
12
|
+
lib/fiveinarow/generic_player.rb
|
13
|
+
lib/fiveinarow/hotseat_player.rb
|
14
|
+
lib/fiveinarow/version.rb
|
15
|
+
lib/fiveinarow/z_order.rb
|
16
|
+
lib/fiveinarow.rb
|
17
|
+
).each do |f|
|
18
|
+
#puts "requiring #{File.join(root_dir, f)}"
|
19
|
+
require File.join(root_dir, f)
|
20
|
+
end
|
21
|
+
|
22
|
+
Fiveinarow::Game.new(root_dir).show
|
Binary file
|
data/fiveinarow.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Tomáš Nesrovnal"]
|
10
10
|
spec.email = ["nesro@nesro.cz"]
|
11
11
|
|
12
|
-
spec.summary = %q{Five
|
13
|
-
spec.description = %q{Five
|
12
|
+
spec.summary = %q{Five in a row (Gomoku like board game)}
|
13
|
+
spec.description = %q{Five in a row is a classic board game. You need to make a line of five to win.}
|
14
14
|
spec.homepage = "https://github.com/nesro/fiveinarow"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
@@ -31,4 +31,5 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency "rake", "~> 10.0"
|
32
32
|
spec.add_development_dependency "gosu", "~> 0.10.5"
|
33
33
|
spec.add_development_dependency "rspec-core", "~> 3.4"
|
34
|
+
spec.add_development_dependency "rspec", "~> 0"
|
34
35
|
end
|
data/lib/fiveinarow.rb
CHANGED
@@ -7,16 +7,18 @@ require 'fiveinarow/z_order'
|
|
7
7
|
require 'rubygems'
|
8
8
|
require 'gosu'
|
9
9
|
|
10
|
+
# Main module
|
10
11
|
module Fiveinarow
|
11
12
|
class Game < Gosu::Window
|
12
13
|
|
14
|
+
# Whether is game or the end of a game
|
13
15
|
attr_accessor :state
|
14
16
|
|
15
|
-
def initialize
|
17
|
+
def initialize(root_dir)
|
16
18
|
super(800, 800, false)
|
17
19
|
self.caption = 'Five In A Row'
|
18
|
-
|
19
|
-
@board = Board.new(self, 22)
|
20
|
+
@root_dir = root_dir
|
21
|
+
@board = Board.new(self, 22, root_dir)
|
20
22
|
|
21
23
|
@player_a = HotseatPlayer.new(Cell::PLAYER_A)
|
22
24
|
@player_b = AIPlayer.new(Cell::PLAYER_B)
|
@@ -24,8 +26,11 @@ module Fiveinarow
|
|
24
26
|
@player_on_turn = @player_a
|
25
27
|
|
26
28
|
@font = Gosu::Font.new(60)
|
27
|
-
|
28
|
-
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
@background = Gosu::Image.new(self, File.join(root_dir, "lib/media/background_800_800.png"))
|
33
|
+
@the_end = Gosu::Image.new(self, File.join(root_dir, "lib/media/the_end_800_800.png"))
|
29
34
|
@last_milliseconds = 0
|
30
35
|
end
|
31
36
|
|
@@ -49,7 +54,7 @@ module Fiveinarow
|
|
49
54
|
|
50
55
|
# reset the game
|
51
56
|
if @state == :end && key == Gosu::MsLeft
|
52
|
-
@board = Board.new(self, 22)
|
57
|
+
@board = Board.new(self, 22, @root_dir)
|
53
58
|
@state = :game
|
54
59
|
return
|
55
60
|
end
|
@@ -94,8 +99,4 @@ module Fiveinarow
|
|
94
99
|
@last_milliseconds = current_time
|
95
100
|
end
|
96
101
|
end
|
97
|
-
|
98
|
-
game = Game.new
|
99
|
-
game.show
|
100
|
-
|
101
102
|
end
|
data/lib/fiveinarow/board.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require_relative 'cell'
|
2
|
+
require_relative '../fiveinarow'
|
2
3
|
|
3
4
|
require 'rubygems'
|
4
5
|
require 'gosu'
|
@@ -7,7 +8,7 @@ class Board
|
|
7
8
|
attr_accessor :size
|
8
9
|
attr_accessor :grid
|
9
10
|
|
10
|
-
def initialize(game, size)
|
11
|
+
def initialize(game, size, root_dir)
|
11
12
|
@game = game
|
12
13
|
@size = size
|
13
14
|
@grid = Array.new(size) { Array.new(size) }
|
@@ -20,11 +21,11 @@ class Board
|
|
20
21
|
|
21
22
|
@last_cell = false
|
22
23
|
|
23
|
-
@cell_empty = Gosu::Image.new(@game,
|
24
|
-
@cell_a = Gosu::Image.new(@game,
|
25
|
-
@cell_b = Gosu::Image.new(@game,
|
26
|
-
@cell_alpha = Gosu::Image.new(@game,
|
27
|
-
@cell_win = Gosu::Image.new(@game,
|
24
|
+
@cell_empty = Gosu::Image.new(@game, File.join(root_dir, "lib/media/cell_white_35_35.png"))
|
25
|
+
@cell_a = Gosu::Image.new(@game, File.join(root_dir, "lib/media/cell_x_35_35.png"))
|
26
|
+
@cell_b = Gosu::Image.new(@game, File.join(root_dir, "lib/media/cell_o_35_35.png"))
|
27
|
+
@cell_alpha = Gosu::Image.new(@game, File.join(root_dir, "lib/media/cell_alpha_35_35.png"))
|
28
|
+
@cell_win = Gosu::Image.new(@game, File.join(root_dir, "lib/media/cell_win_35_35.png"))
|
28
29
|
|
29
30
|
end
|
30
31
|
|
data/lib/fiveinarow/cell.rb
CHANGED
data/lib/fiveinarow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fiveinarow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomáš Nesrovnal
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,7 +66,21 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.4'
|
69
|
-
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
description: Five in a row is a classic board game. You need to make a line of five
|
70
84
|
to win.
|
71
85
|
email:
|
72
86
|
- nesro@nesro.cz
|
@@ -89,8 +103,10 @@ files:
|
|
89
103
|
- README.md
|
90
104
|
- Rakefile
|
91
105
|
- bin/console
|
106
|
+
- bin/fiveinarow
|
92
107
|
- bin/setup
|
93
108
|
- fiveinarow-0.1.0.gem
|
109
|
+
- fiveinarow-0.1.1.gem
|
94
110
|
- fiveinarow.gemspec
|
95
111
|
- lib/fiveinarow.rb
|
96
112
|
- lib/fiveinarow/ai_player.rb
|
@@ -131,5 +147,5 @@ rubyforge_project:
|
|
131
147
|
rubygems_version: 2.4.8
|
132
148
|
signing_key:
|
133
149
|
specification_version: 4
|
134
|
-
summary: Five
|
150
|
+
summary: Five in a row (Gomoku like board game)
|
135
151
|
test_files: []
|