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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5dc4b552ff92003fb5d2747708da562ec2df08d3
4
- data.tar.gz: d8659a3848f772399f7e5ac01276906c2b54500c
3
+ metadata.gz: 3232c9c2d1bf49bfe5da0202f023d75349f6e9fa
4
+ data.tar.gz: 33b2f5f34e6e13271eeb672f61094368605f7392
5
5
  SHA512:
6
- metadata.gz: 95a8f931bd02f397a794be57b355c334d72995c3575b7f666806cee8b1053b8ca967b859c0329dfa90d31e5835b69465388c1833d3cf77a83b2ced7dc7813332
7
- data.tar.gz: 290d781e069b53c6a47d2610e45d150e1fdfe2e1c039880ceadad4da94ec1c9d3d8f5205aa901ef4fa3c970545f5ba0c535dff9190f0889f5728bc7889b29dc4
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
- is intended to be a safe, welcoming space for collaboration, and
144
- contributors are expected to adhere to the
145
- [code of conduct](CODE_OF_CONDUCT.md) (from
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)).
@@ -1,3 +1,7 @@
1
+ = 19.0.2
2
+
3
+ - fixed bug in Move#perform! (thanks to wollw!)
4
+
1
5
  = 19.0.1
2
6
 
3
7
  - fixed bug in swarm size calculation (thanks to wollw!)
@@ -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)
@@ -1,4 +1,4 @@
1
1
  # encoding: UTF-8
2
2
  module SoftwareChallengeClient
3
- VERSION = "19.0.1"
3
+ VERSION = "19.0.2"
4
4
  end
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.1
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-10-10 00:00:00.000000000 Z
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: