software_challenge_client 19.0.1 → 19.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/RELEASES.md +4 -0
- data/lib/software_challenge_client/move.rb +2 -2
- data/lib/software_challenge_client/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3232c9c2d1bf49bfe5da0202f023d75349f6e9fa
|
4
|
+
data.tar.gz: 33b2f5f34e6e13271eeb672f61094368605f7392
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e2bccd74abe8298ba66420f9e77f23b7bd452cb90f9345b49f8c6d71de2ba9a2711abc6085dbe2304b1f1bada7b9d304c6def78d686c01f9272869b239a08ab
|
7
|
+
data.tar.gz: 8520b548a1e09bd4618eb50394f36d68fd78884128cec70f577a1b5bca9c20b468a4e9e955b963176f6a3dd567e5aa53f3002de922fbac873350c35b5c6dd314
|
data/README.md
CHANGED
@@ -139,8 +139,8 @@ which executes `bundle exec rake release` in a suitable docker container.
|
|
139
139
|
## Contributing
|
140
140
|
|
141
141
|
Bug reports and pull requests are welcome on GitHub at
|
142
|
-
https://github.com/CAU-Kiel-Tech-Inf/socha_ruby_client. This project
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
[Contributor Covenant](http://contributor-covenant.org)).
|
142
|
+
https://github.com/CAU-Kiel-Tech-Inf/socha_ruby_client. This project is intended
|
143
|
+
to be a safe, welcoming space for collaboration, and contributors are expected
|
144
|
+
to adhere to the [code of
|
145
|
+
conduct](https://github.com/CAU-Kiel-Tech-Inf/socha-client-ruby/blob/master/CODE_OF_CONDUCT.md)
|
146
|
+
(from [Contributor Covenant](http://contributor-covenant.org)).
|
data/RELEASES.md
CHANGED
@@ -53,13 +53,13 @@ class Move
|
|
53
53
|
# @param gamestate [GameState]
|
54
54
|
# @return [Boolean]
|
55
55
|
def valid?(gamestate)
|
56
|
-
GameRuleLogic.valid_move(self, gamestate.board)
|
56
|
+
GameRuleLogic.valid_move?(self, gamestate.board, gamestate.current_player_color)
|
57
57
|
end
|
58
58
|
|
59
59
|
# Führt den Zug in dem gegebenen Spielzustand aus. Sollte dabei gegen Spielregeln verstossen werden, wird eine InvalidMoveException geworfen.
|
60
60
|
# @param gamestate [GameState]
|
61
61
|
def perform!(gamestate)
|
62
|
-
if GameRuleLogic.valid_move(self, gamestate.board)
|
62
|
+
if GameRuleLogic.valid_move?(self, gamestate.board, gamestate.current_player_color)
|
63
63
|
type = gamestate.board.field(x, y).type
|
64
64
|
gamestate.board.change_field(x, y, FieldType::EMPTY)
|
65
65
|
target = GameRuleLogic.move_target(self, gamestate.board)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: software_challenge_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 19.0.
|
4
|
+
version: 19.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- 'kwollw '
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-12-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typesafe_enum
|
@@ -314,4 +314,3 @@ specification_version: 4
|
|
314
314
|
summary: This gem provides functions to build a client for the coding competition
|
315
315
|
Software-Challenge 2017.
|
316
316
|
test_files: []
|
317
|
-
has_rdoc:
|