software_challenge_client 19.0.2 → 19.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/RELEASES.md +4 -0
- data/lib/software_challenge_client/move.rb +1 -1
- data/lib/software_challenge_client/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31343a4b0ae1acb5120f3308a804addb89721914
|
4
|
+
data.tar.gz: 56a8ed34d5df99c604e9cb05fe561983fd4925c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80738ed0b5d77e6ff1c93f461fee352477d2572a3825fdc7b01528cca6c36fc61b729470d69da6764bb7bef71ea732bdf7dc21561679672872d940e9f8d395c5
|
7
|
+
data.tar.gz: 6f349e9fd893ac2e2feeab7ca813dcd2bb3bec4005bf6ac93fd4ade073f48f867c6b0a8f3d6307b6d03e0369558ddd92f126878ae2c29f73a8860568b07e69c7
|
data/.rubocop.yml
CHANGED
@@ -6,3 +6,5 @@ AllCops:
|
|
6
6
|
#require: rubocop-rspec
|
7
7
|
Style/AsciiComments:
|
8
8
|
Enabled: false # we use german comments to document relevant methods for the pupils
|
9
|
+
Metrics/BlockLength:
|
10
|
+
ExcludedMethods: ['describe', 'context'] # RSpec uses a DSL where large blocks are okay, see https://stackoverflow.com/questions/40934345/rubocop-25-line-block-size-and-rspec-tests
|
data/RELEASES.md
CHANGED
@@ -61,8 +61,8 @@ class Move
|
|
61
61
|
def perform!(gamestate)
|
62
62
|
if GameRuleLogic.valid_move?(self, gamestate.board, gamestate.current_player_color)
|
63
63
|
type = gamestate.board.field(x, y).type
|
64
|
-
gamestate.board.change_field(x, y, FieldType::EMPTY)
|
65
64
|
target = GameRuleLogic.move_target(self, gamestate.board)
|
65
|
+
gamestate.board.change_field(x, y, FieldType::EMPTY)
|
66
66
|
gamestate.board.change_field(target.x, target.y, type)
|
67
67
|
else
|
68
68
|
raise InvalidMoveException.new('Invalid move', self)
|
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.3
|
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-12-
|
13
|
+
date: 2018-12-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typesafe_enum
|
@@ -314,3 +314,4 @@ 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:
|