software_challenge_client 22.1.0 → 22.1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb51cb43ad01dbd89c1201d2cfc724131e479c4046421f74f7c437c8a97572ea
|
4
|
+
data.tar.gz: 35209a8eee036071d32ad0d397eb0c79d91e3a99785846b2171867687fe048bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c363296bfad49e86c6b5394564e1460b50e09899ab673da822497e88b04b4236618767a1ca07342234be5017a9189410514864d249679700b05cfa92ad6676e1
|
7
|
+
data.tar.gz: c9bde7fc8db24b18b9c47e8ac5c0b2d60a3d75fa549b442c2e64bd9f9807ab17794d5958dceb3f12c1711821a3c90150402e03748a0e2168499b0bac312c3bcf
|
@@ -112,6 +112,11 @@ class GameRuleLogic
|
|
112
112
|
to_field.piece = from_field.piece
|
113
113
|
from_field.piece = nil
|
114
114
|
|
115
|
+
# Update position value of the moved piece
|
116
|
+
if !to_field.empty? && !to_field.piece.nil?
|
117
|
+
to_field.piece.position = Coordinates.new(to_field.coordinates.x, to_field.coordinates.y)
|
118
|
+
end
|
119
|
+
|
115
120
|
gamestate.turn += 1
|
116
121
|
gamestate.last_move = move
|
117
122
|
end
|
@@ -146,11 +146,6 @@ class GameState
|
|
146
146
|
Marshal.load(Marshal.dump(self))
|
147
147
|
end
|
148
148
|
|
149
|
-
# Wechselt den Spieler, der aktuell an der Reihe ist.
|
150
|
-
def switch_current_player
|
151
|
-
@current_player_color = other_player_color
|
152
|
-
end
|
153
|
-
|
154
149
|
# @return [Array<Field>] Alle Felder mit Blöcken des Spielers, der gerade an der Reihe ist.
|
155
150
|
def own_fields
|
156
151
|
board.fields_of_color(current_player.color)
|
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: 22.1.0
|
4
|
+
version: 22.1.0.1
|
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:
|
13
|
+
date: 2022-02-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: builder
|